summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Improve times (#21901)Juan Carlos2023-05-241-12/+21
| | | | | * . * Improve times
* js -r defines nodejs & program result undeclared if unavailable (#21849)metagn2023-05-242-7/+9
| | | | | | | | | | | * js -r defines nodejs & program result undefined if unavailable fixes #16985, fixes #16074 * fix * add changelog too * minor word change
* fix #21251 Compiler SIGSEGV when using SharedTable (#21876)Bung2023-05-233-8/+7
| | | fix #21251
* Weekday parse/format (replacement) (#21857)Carlo Capocasa2023-05-211-30/+110
| | | | | * parsing capability for iso week year * remove outdated test
* Update threadpool.nim with correct link to typedthreads module (#21865)noah edward hall2023-05-191-1/+1
|
* tasks that support return values (#21859)Andreas Rumpf2023-05-171-25/+35
| | | tasks.nim: Code cleanups and support expressions that produce a value
* fixes #21847; let `parseFloat` behave like `strtod` (#21854)ringabout2023-05-171-1/+3
|
* isolation spec update; WIP (#21843)Andreas Rumpf2023-05-141-3/+3
| | | | | | | | | | | * isolation spec update; WIP * wip * docs update, WIP * progress * Update doc/manual.md
* improve `wasMoved` hooks; allow reset to use the overridden `wasMoved` hook ↵ringabout2023-05-121-4/+9
| | | | | | | (#21831) * improve `wasMoved` hooks * Because `wasMoved` is lifted
* add getDataDir to std/appdirs.nim (#21754)Ecorous2023-05-121-0/+17
| | | | | | | | | | | * add getDataDir to std/appdirs.nim * reuse `osappdirs.getDataDir` * Update lib/std/appdirs.nim --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Add `minmax` to comparisons (#21820)Matt Wilson2023-05-121-0/+9
| | | | | | | | | | | | | | * Add `minmax` to sequtils This adds a `minmax` proc to complement `min` and `max`; it computes both results in a single pass for efficiency. * Update lib/pure/collections/sequtils.nim * Add minmax note to changelog. --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* just set CallNodes = nnkCallKinds, follows up #21829 (#21833)metagn2023-05-111-2/+1
| | | These sets are now equal
* Add nnkHiddenCallConv to nnkCallKinds (#21781) (#21829)Matt Wilson2023-05-111-1/+3
|
* adds documentation for `=wasMoved` and `=dup` hooks and small fixes (#21827)ringabout2023-05-111-1/+1
| | | | | | | | | | | * adds documentation for `=wasMoved` and `=dup` hooks and small fixes * Update doc/destructors.md * Update doc/destructors.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-117-20/+20
| | | | | * clean up SOME pending/xxx/issue link comments * great
* make `reset` use the `=destroy` and `wasMoved` pair (#21821)ringabout2023-05-111-1/+9
| | | | | | | | | | | | | * make reset use the `=destroy` and `waMoved` pair * fixes a space * fixes `shrink` instead * tiny fix * fixes vm * suppress the annotations since it breaks some important packages
* make ORC threadlocal, take two (#21818)Andreas Rumpf2023-05-101-6/+6
| | | | | * ORC: make rootsThreshold thread local [backport] * fixes the regression
* fix #9423 followup #17594: distinct generics now work in VM (#21816)ringabout2023-05-102-13/+2
| | | | | | | | | * fix #9423 distinct generics now work in vm * fixes cpp tests --------- Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix nimrtl and nimhcr on arc/orc (#21814)metagn2023-05-094-10/+14
| | | | | | | | | | | * fix/workaround for nimrtl and nimhcr on arc/orc fixes #21803 * try fix clang, debug linux failure * just make duplicated procs not rtl * actual fix for duplicated procs
* Improve and refactor cellseqs_v2 in Nim standard library (#21796)Jordan Gillard2023-05-091-13/+10
| | | | | | | | | | | * Refactor and optimize cellseqs_v2 in Nim standard library * Extract resizing logic into a separate 'resize' procedure for better readability and separation of concerns * Implement realloc for non-threaded cases to improve memory operations efficiency * Use ',' instead of ';' between parameters in 'add' procedure for consistency with other Nim code * Respond to Araq's feedback: Refactor resize function to use reallocShared This commit replaces the usage of allocShared and deallocShared with reallocShared to optimize memory allocation and deallocation while resizing the CellSeq.
* Windows: use __declspec(thread) TLS implementation, it is MUCH faster… ↵Andreas Rumpf2023-05-081-1/+7
| | | | | | | | | (#21810) * Windows: use __declspec(thread) TLS implementation, it is MUCH faster than _Thread_local [backport] * Update lib/nimbase.h * better fix
* adds an experimental `mm:atomicArc` switch (#21798)ringabout2023-05-081-9/+24
|
* 🚀 Enhancing CellSeq for Better Readability and Maintainability (#21797)Jordan Gillard2023-05-071-8/+11
| | | | | | Refactor and improve readability of CellSeq in system directory * Use half-open range in the contains procedure for better readability and to avoid potential off-by-one errors * Extract resizing logic from add procedure into a separate resize procedure for better code readability and separation of concerns
* revert #21799 and #21802 which don't pass the tests (#21804)ringabout2023-05-071-5/+5
| | | | | | | | | * Revert "ORC: make rootsThreshold thread local [backport] (#21799)" This reverts commit b74d49c037734079765770426d0f5c79dee6cf87. * Revert "fixes #21752 [backport] (#21802)" This reverts commit d0c62fa169f3970653ce0d5bbd16e123efb24251.
* implement `=dup` hook eliminating `wasMoved` and `=copy` pairs (#21586)ringabout2023-05-062-0/+10
| | | | | | | | | | | | | | | | | | | * import `=dup` hook eliminating `wasMoved` and `=copy` pairs * add dup * add a test for dup * fixes documentation * fixes signature * resolve comments * fixes tests * fixes tests * clean up
* ORC: make rootsThreshold thread local [backport] (#21799)Andreas Rumpf2023-05-061-5/+5
|
* fixes #21792; enable checks for sum, prod, cumsummed and cumsum (#21793)ringabout2023-05-051-60/+63
| | | | | | | * enable checks for sum, prod, cumsummed and cumsum * fixes #21792 * add test cases
* build documentation for `checksums/md5` and `checksums/sha1` (#21791)ringabout2023-05-042-2/+2
| | | | | * build documentation for md5 and sha1 * fixes documentation reference
* fixes #21780 [backport:1.6] (#21785)Andreas Rumpf2023-05-041-4/+4
| | | | | * fixes #21780 [backport:1.6] * complete patch
* line info for strformat + fix issue with typed templates (#21761)metagn2023-05-021-8/+22
| | | | | * line info in strformat * also fix #20381
* fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702)ringabout2023-05-023-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move sha1, md5 to nimble packages * boot the compiler * fixes tests * build the documentation * fixes docs * lol, I forgot koch.nim * add `nimHasChecksums` define * clone checksums but maybe copying is better * bump nimble hash * use ChecksumsStableCommit * fixes tests * deprecate them * fixes paths * fixes koch
* fixes #20144; fixes asyncnet ssl on bsds (#21763)ringabout2023-05-011-2/+5
| | | fixes asyncnet on bsds
* fix build on haiku (#21752)Al Hoang2023-04-292-2/+2
| | | * missing maxDescriptors
* closes #21745 (#21746)ringabout2023-04-281-1/+0
|
* fix iterator equality + add test for proc equality + fix sameType (#21707)metagn2023-04-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * fix iterator equality + add test also for procs fixes #21706 * all targets * and isNil and repr * separate overloads, fix sameType * more restricted sameType? * merge overloads again?? * remove sametype change for now * fix sameType anyway (CI failure was not related) --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Documented path substitution by compiler (#21662)Raynei2023-04-211-0/+1
| | | Document compiler path substitution (nim-lang#19928)
* refact: Remove assertion effect hiding workaround (#21472)quantimnot2023-04-211-6/+1
| | | | | | | | refact: Remove asseertion effect hiding workaround There was a code comment to remove after bootstrapping with `nim >= 1.4.0`. Co-authored-by: quantimnot <quantimnot@users.noreply.github.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Fix json.to for float fields that are not present (#21695)Yardanico2023-04-211-1/+1
|
* static link pthread correctly (#21693)ringabout2023-04-201-2/+0
|
* Fixed `window.find` return (#21621)Thiago2023-04-191-1/+1
| | | https://developer.mozilla.org/en-US/docs/Web/API/Window/find
* fixes nightlies regression (#21689)ringabout2023-04-191-2/+1
| | | | | | | | | | | | * fixes nightlies regression ref https://github.com/nim-lang/Nim/pull/21659 ref https://github.com/nim-lang/nightlies/actions/runs/4727252660/jobs/8387899690 > /home/runner/work/nightlies/nightlies/nim-1.9.3/lib/std/sysrand.nim(198, 12) Error: cannot evaluate at compile time: EINTR Because EINTR is not a const on i386 * Update lib/std/sysrand.nim
* fix #20997 (#21165)Bung2023-04-191-4/+2
| | | | | * fix #20997 * use ptr UncheckedArray[uint8] instead
* Fix RST/Markdown false heading detection (#21685)Andrey Makarov2023-04-181-13/+17
|
* warn on set types bigger than max size, default to 0..255 for int literals ↵metagn2023-04-173-9/+9
| | | | | | | | | | | | | | | | | | | (#21659) * test implicitly huge set types refs https://github.com/nim-lang/RFCs/issues/298 * oh my god * boot at least * don't error, fix remaining issues, no 2 len arrays * fix runnable example * test assuming 0..255 for int literal * test refactor, add changelog, test
* fixes #20155; repr range with distinct types is broken in ORC (#21682)ringabout2023-04-171-2/+10
| | | fixes #20155; repr range with distinct types is broken with ORC
* fixes #18146; fixes #19372; disable tlsEmulation on windows; static link ↵ringabout2023-04-141-0/+4
| | | | | | | pthreads with mingw (#21668) * fixes #18146; disable tlsEmulation on windows; static link libwinthreads DLL * whatever
* int64/uint64 as bigint in JS (#21613)metagn2023-04-1111-44/+69
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* `proc` typeclass accounts for `iterator`, call conventions + `nil` fix + ↵metagn2023-04-112-31/+22
| | | | | | | | | | | | | document typeclass AST (#21629) * test fix #16546 #16548 + another issue * please don't tell me other packages do this * fix CI + test typeclass callconv pragma * better logic in parser * docs and changelog
* Fix option lists with additional indentation in Markdown (#21633)Andrey Makarov2023-04-111-1/+3
| | | | | | | | This is more Markdown-ish way to fix issue #21055, then PR #21625. It does not enable RST definition lists, instead it makes adding additional indentation (less than 4) right after a paragraph be ignored, as it's done for all block elements in Markdown. (In this case this tenet is applied to option lists that are not part of CommonMark spec by themselves).
* fixes #21638; `fromJson` should support empty objects (#21641)ringabout2023-04-111-11/+16
| | | | | * fixes #21638; `fromJson` should supports empty objects * complete the logic