summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* 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
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-223-25/+108
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* async: removed the 'unown' references, async never worked with --newruntime ↵Andreas Rumpf2020-09-201-3/+4
| | | | anyway and --newruntime is dead (#15374)
* arc: =deepcopy fixesAraq2020-09-201-5/+14
|
* ORC and stdlib optimizations (#15362)Andreas Rumpf2020-09-193-23/+27
|
* fix coro proc crash for stack problem when run long enough than a GC cycle ↵yatsen12020-09-181-0/+6
| | | | | | (#7612) (#11410) Co-authored-by: drswinghead <drswinghead@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* more ORC bugfixes (#15355)Andreas Rumpf2020-09-182-8/+35
| | | | | * introduced --define:nimArcIds * ORC: bugfixes
* allow old styled RTTI for arc/orc (#15331)Andreas Rumpf2020-09-1610-103/+190
|
* fixes #15076 (#15329)Andreas Rumpf2020-09-151-5/+18
|
* fixes a critical ORC bug, refs #15076 (#15323)Andreas Rumpf2020-09-141-35/+29
|
* Fix c_malloc inside syslocks.nim to take size_t (#15268) [backport]shirleyquirk2020-09-051-3/+3
| | | | * update c_malloc's to csize_t
* fixes #15210 [backport:1.2] (#15237)Andreas Rumpf2020-08-311-0/+3
| | | | | * fixes #15210 [backport:1.2] * use patched version of bigints library