summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* followup of #22568 (#22690)Amjad Ben Hedhili2023-09-141-24/+17
|
* Make capacity work with refc [backport] (#22697)Amjad Ben Hedhili2023-09-133-11/+26
| | | followup of #19771.
* Remove some unnecessary initialization in `seq` operations (#22677)Amjad Ben Hedhili2023-09-101-7/+35
| | | | | | | | | | | | * `PrepareSeqAdd` * `add` * `setLen` * `grow` Merge after #21842. --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Make `newSeqOfCap` not initialize memory. (#21842)Amjad Ben Hedhili2023-09-092-2/+11
| | | | | | | It's used in `newSeqUninitialized`. --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* fixes #22664; guard against potential seqs self assignments (#22671)ringabout2023-09-081-0/+6
| | | fixes #22664
* Remove some unnecessary initialization in string operations (#22579)Amjad Ben Hedhili2023-09-071-37/+61
| | | | | | | | * `prepareAdd` * `toNimStr` * `setLengthStrV2` * `NimAsgnStrV2` * `prepareMutation` * Some cleanups
* newStringOfCap now won't initialize all elements anymore (#22568)ringabout2023-08-281-2/+3
| | | newStringOfCap nows won't initialize all elements anymore
* Markdown code blocks migration part 9 (#22506)Amjad Ben Hedhili2023-08-192-13/+13
| | | | | * Markdown code blocks migration part 9 * fix [skip ci]
* Fix `seq.capacity` (#22488)Amjad Ben Hedhili2023-08-171-2/+2
|
* fixes #22481; fixes `card` undefined misalignment behavior (#22484)ringabout2023-08-151-1/+3
| | | | | | | | | * fixes `card` undefined misalignment behavior * Update lib/system/sets.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Markdown code blocks migration part 8 (#22478)Andrey Makarov2023-08-155-47/+51
|
* clean up `gc:arc` or `gc:orc` in docs and in error messages (#22408)ringabout2023-08-083-9/+9
| | | | | * clean up gc:arc/orc in docs * in error messages
* Revert adding generic `V: Ordinal` parameter to `succ`, `pred`, `inc`, `dec` ↵konsumlamm2023-08-061-5/+5
| | | | | | | (#22328) * Use `int` in `digitsutils`, `dragonbox`, `schubfach` * Fix error message
* Make `repr(HSlice)` always available (#22332)konsumlamm2023-08-041-10/+0
| | | Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* bump the devel version to 211 (#22356)ringabout2023-08-011-3/+3
|
* fixes #22262; fixes `-d:useMalloc` broken with `--mm:none` and `--threads ↵ringabout2023-08-011-1/+1
| | | | | | | on` (#22355) * fixes #22262; -d:useMalloc broken with --mm:none and threads on * fixes
* remove thread duplicated code (#22348)Bung2023-07-311-5/+0
|
* fixes #22256; fixes GC_disableOrc overflow (#22257)ringabout2023-07-111-1/+1
|
* Rename `seq.add` parameter to be consistent with `refc` (#22244)Solitude2023-07-101-2/+2
|
* Fix #21401 (#22232)Juan Carlos2023-07-071-0/+8
|
* uint arithmetic for pointers (#22159)Jacek Sieka2023-06-272-2/+2
| | | | | | | pointers are not signed and arithmetic may correctly cross int.max threshold this PR only fixes 2 occurances - there are plenty however in the std lib
* rm zero-extension and uint conversions deprecated since 0.19.9 (#22151)tersec2023-06-251-56/+0
|
* added new experimental API isUniqueRef (#21812)Andreas Rumpf2023-06-161-0/+12
| | | | | * added new experimental API isUniqueRef * typo
* bump NimVersion to 1.9.5 (#22112)Miran2023-06-161-1/+1
|
* small fixes for atomicArc (#22017)ringabout2023-06-062-3/+3
| | | | | * small fixes for atomicArc * Update lib/system/arc.nim
* lift the `=dup` hook (#21903)ringabout2023-06-021-4/+0
| | | | | | * fixes tests again * remove helper functions * fixes closures, owned refs * final cleanup
* fixes fieldDefect loses enum type info in ORC; consistent with VM and refc ↵ringabout2023-05-291-0/+4
| | | | | (#21954) fixes fieldDefect loses enum type info in ORC
* Remove GC (#21904)Juan Carlos2023-05-251-749/+0
| | | | | * . * Remove GC v2
* fixes #21847; let `parseFloat` behave like `strtod` (#21854)ringabout2023-05-171-1/+3
|
* make ORC threadlocal, take two (#21818)Andreas Rumpf2023-05-101-6/+6
| | | | | * ORC: make rootsThreshold thread local [backport] * fixes the regression
* fix nimrtl and nimhcr on arc/orc (#21814)metagn2023-05-093-4/+4
| | | | | | | | | | | * 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.
* 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-061-0/+4
| | | | | | | | | | | | | | | | | | | * 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 #21780 [backport:1.6] (#21785)Andreas Rumpf2023-05-041-4/+4
| | | | | * fixes #21780 [backport:1.6] * complete patch
* fix iterator equality + add test for proc equality + fix sameType (#21707)metagn2023-04-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * 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)
* fix #20997 (#21165)Bung2023-04-191-4/+2
| | | | | * fix #20997 * use ptr UncheckedArray[uint8] instead
* warn on set types bigger than max size, default to 0..255 for int literals ↵metagn2023-04-171-2/+2
| | | | | | | | | | | | | | | | | | | (#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
* int64/uint64 as bigint in JS (#21613)metagn2023-04-113-23/+23
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* fix #20972 fixes invalid and UB codegen case object transitions for both ↵ringabout2023-04-041-3/+5
| | | | | refc and ORC [backport] (#21611) fix #20972 fixes invalid and UB codegen case object transitions for refc and ORC
* make --exceptions:quirky work with C++ (#21581)Andreas Rumpf2023-03-312-4/+6
| | | | | * make --exceptions:quirky work with C++ * make tests green again
* bump NimVersion to 1.9.3 (#21587)Miran2023-03-301-1/+1
|
* don't access void* out of alignment in refc GC to avoid UB (#21560)tersec2023-03-221-1/+0
|
* Add check for nimMaxJeap on occupied memory + allocation size (#21521)Regis Caillaud2023-03-201-11/+20
| | | | | | | | | | | * fix nimMAxHeap checks * move check to alloc pages * remove debug trace * Fix bad indentation How the hell did that pass through CI ?
* fixes #21393 and misc style changes (#21419)Andreas Rumpf2023-02-242-2/+3
| | | | | | | | | * fixes #21393 and misc style changes * progress --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>