summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250)Jaremy Creechley2020-08-312-4/+10
| | | | | | | | | | | | | | | | | | | * Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) Adding FreeRTOS/LwIP to compiler: * adding freertos option * dyncalls for freertos * add freertos to posix os list * adding lwip option Setting up networking FreeRTOS/LwIP Port: * setting up lwip network for freertos * fixing posix / networking for freertos * disable setInheritable for freerots * using lwip for net control items * Fix builds by ignoring lib/posix/posix_freertos_consts.nim similar to lib/posix/posix_other_consts.nim
* gc_regions: cleanup & fixes for deallocation (#11920)alaviss2020-08-171-5/+4
| | | | | | | | | * gc_regions: withRegion nows return the modified MemRegion * gc_regions: make withScratchRegion dealloc correctly * tests/gc: add tregionleak test This test checks if memory within regions are freed properly.
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-281-0/+3
| | | | code compatibility (#15105)
* more renamingsAraq2020-07-271-0/+0
|
* code cleanupAraq2020-07-273-209/+1
|
* Fix #2408 - add -d:globalSymbols (#14904)genotrance2020-07-211-1/+4
|
* readLine: Unicode support for Windows console (#14782)Andreas Rumpf2020-07-201-0/+62
|\ | | | | | | | | | | | | | | | | | | | | | | * readLine: Unicode support for Windows console When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8. * readLine: Remove recursive imports * readLine: Fix issues with --gc:arc **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Fix issues with --gc:arcktamp2020-06-261-6/+11
| | | | | | | | **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Remove recursive importsktamp2020-06-251-10/+31
| |
| * readLine: Unicode support for Windows consolektamp2020-06-231-0/+36
| | | | | | When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8.
* | io: fix SetHandleInformation signature to match Windows' (#15017)alaviss2020-07-201-2/+7
| | | | | | | | | | | | | | * io: fix SetHandleInformation signature to match Windows' Fixes #14980 * rename Handle -> IoHandle because system.nim is a mess