summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* make --gc:arc --exceptions:quirky work again [backport:1.4] (#16583)Andreas Rumpf2021-01-042-10/+20
| | | | | * make --gc:arc --exceptions:quirky work again [backport:1.4] * fixes #16404 [backport:1.4]
* fix #16499 (#16514)flywind2021-01-041-10/+14
|
* make the docs of arithmetics better (#16510)flywind2020-12-301-126/+107
| | | | | | | | | | | | | | | | | * fix * Update lib/system/arithmetics.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix #16502 (#16512)flywind2020-12-301-1/+1
|
* fix printing negative zero in JS backend (#16505)flywind2020-12-291-1/+3
|
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-47/+60
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix nim js cmp fails at CT (#16473)flywind2020-12-271-1/+6
|
* Avoid creating a holey array in makeNimstrLit for JS target (#16461)Jonah Snider2020-12-271-3/+2
| | | | * Avoid creating a holey array in makeNimstrLit * Use array index instead of push
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-214-14/+14
|
* Make 'echo' raise IOErrors when appropriate (#16367)Matt Haggard2020-12-181-8/+16
| | | | | | | | | | | | | | | * Make 'echo' raise IOError when fwrite/fflush fail * Fix fwrite return value comparison * Add test for echo raising error and don't fail to release locks in echo * Fix exitcode expectation * Make 'echo' raise IOError on Windows if it fails * Add nimLegacyEchoNoRaise for prior no-IOError echo behavior * Use checkErrMaybe template
* fixes #16365 [backport] (#16381)Andreas Rumpf2020-12-171-6/+7
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-142-13/+13
| | | | | * Fix broken links in docs * Fix rand HSlice links
* Fix #14259 #15621 (#16322) [backport:1.4]rockcavera2020-12-121-4/+11
| | | | | | | | | | | | | | | | | * IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix #14259 #15621 fix #14259 #15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix partially #13115 (now works for cpp; but still fails for js on openbsd) ↵Timothee Cour2020-12-111-10/+22
| | | | | | (#16167) * fix partially #13115 properly (works for c,js,cpp,vm; still fails for js on openbsd) * address comment: also test with -d:danger, -d:debug
* clean up old codes (#16284)flywind2020-12-091-144/+101
| | | | | | | * clean up old codes * fix docs and links * clean
* [docs minor] remove unicode in docs comments (#16267)flywind2020-12-061-2/+2
|
* ORC: make the adaptive strategy the default in order to fight memory ↵Andreas Rumpf2020-12-051-6/+13
| | | | | | | consumption (#16250) * ORC: make the adaptive strategy the default in order to fight memory consumption * added missing test case
* fixes #16214 [backport] (#16252)Andreas Rumpf2020-12-042-8/+8
|
* cleanup docs and tests (#16235)flywind2020-12-031-1/+1
| | | | | * js module also uses runnableExamples * cleanup docs and tests
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-031-1/+3
|
* better setops docs (#16236)flywind2020-12-031-70/+62
| | | | | | | | | | | | | | | | | * js module also uses runnableExamples * better setops docs * Update lib/system/setops.nim * better * Update lib/system/setops.nim * Update lib/system/setops.nim * better * better
* Fix typo and improve grammar for clamps noteClyybber2020-12-021-1/+1
|
* small style changes and clarify clamp (#16228)flywind2020-12-021-6/+8
| | | | | | | | | | | | | | | * [docs minor]better comparisons docs * switch from PRNG to random module * apply suggestions * not compile * Revert "switch from PRNG to random module" This reverts commit 83b4d8946d7d677edac43b7675c41e230ba4e382. * small style changes and clarify clamp
* [docs minor] better comparisons docs (#16201)flywind2020-12-021-90/+89
|
* ORC: API extensions (#16126)Andreas Rumpf2020-12-011-14/+45
| | | | | * ORC: API extensions * ORC: exploit a common special case
* better addInt (#16160)flywind2020-12-011-15/+81
| | | | | | * better addint * Update lib/system/strmantle.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix #13115 (#15930)flywind2020-11-272-10/+20
| | | | | * fix #13115 * fix testament
* add simple writeStackTrace for JS backend (#16016)flywind2020-11-241-0/+5
| | | | | | | * add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-192-2/+4
|
* ORC: prepare for another patent-pending optimization (#15996)Andreas Rumpf2020-11-183-25/+51
| | | | | | | | | | | | | | | | | * ORC: prepare for another patent-pending optimization * bugfix * '=copy' for refs can take a cyclic parameter for more ORC optimizations * ORC: exploit the common 'it = it.next' pattern * can't hurt to check for nil * use an algorithm that is not obviously broken * restore the test case * final cleanups for --gc:orc
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-9/+10
| | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Correct all eggs (#15906)Miran2020-11-102-2/+2
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* micro improvements (#15849)Andreas Rumpf2020-11-051-1/+2
|
* fix #15663 (#15839) [backport:1.4]flywind2020-11-051-0/+7
|
* fix deprecated messages regarding high (#15832)flywind2020-11-032-2/+2
|
* Make newObjUninit proc to adhere to its name (#15764)Antonis Geralis2020-10-281-2/+2
| | | Co-authored-by: b3liever <b3liever@yandex.com>
* ARC now capable of custom extra alignment. Ref, closure and seq support. ↵cooldome2020-10-286-43/+110
| | | | (#15697)
* explicit ID generation for easier IC (#15559)Andreas Rumpf2020-10-251-1/+1
| | | | | | | | | | | | | | | | | * refactoring: idents don't need inheritance * refactoring: adding an IdGenerator (part 1) * refactoring: adding an IdGenerator (part 2) * refactoring: adding an IdGenerator (part 3) * refactoring: adding an IdGenerator (part 4) * refactoring: adding an IdGenerator (part 5) * refactoring: adding an IdGenerator (part 5) * IdGenerator must be a ref type; hello world works again * make bootstrapping work again * progress: add back the 'exactReplica' ideas * added back the missing exactReplica hacks * make tcompilerapi work again * make important packages green * attempt to fix the build for 32 bit machines (probably need a better solution here)
* Fixes compilation for --os:any + --exception:setjmp (#15626)Dominik Picheta2020-10-201-1/+1
|
* $(uint|uint64) now works with nimscript (#15644)Timothee Cour2020-10-203-22/+20
| | | | | * $(uint|uint64) now works with nimscript * fixup
* Fix compilation error for regions and memory profiling (#15641) (#15656)RecruitMain7072020-10-201-0/+3
| | | Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com>
* arc allocation method aligned (#15588)cooldome2020-10-198-33/+69
| | | | | * progress * fix typo
* fix rlock compilation failure (#15584)shirleyquirk2020-10-151-2/+2
| | | | | | | | | | | * change SysLockType_Reentrant fix edge case where using SysLockType_Reentrant doesn't trigger an #include pthread.h * syslocktype_reentrant now a var * remove nodecl to remove empty system_syslocks.c * let is better than var. in reality SysLockType = enum, maybe that would be a better fix
* ORC: API extensions for 1.4 (#15581)Andreas Rumpf2020-10-151-5/+22
|
* ORC: critical bugfix for the cycle analyser, introduce -d:nimStressOrc for ↵Andreas Rumpf2020-10-142-19/+32
| | | | easier stress testing (#15572)
* Clean out jssys (#15442)Juan Carlos2020-10-011-6/+0
|
* Dont assert on setstacksize result in iOS (#15427) [backport:1.2]Yuriy Glukhov2020-09-291-1/+4
|
* cleanup lib/system/stacktraces.nim; refs #15416 (#15418)Andreas Rumpf2020-09-281-1/+1
|
* finish the stacktraces.nim implementation [backport:1.2] (#15393)Andreas Rumpf2020-09-231-6/+6
|
* deinitLock (#15383)flywind2020-09-221-0/+2
| | | | | * deinitLock * minor