summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-171-3/+6
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-164-5/+5
|
* Remove obsolete code from osalloc (#13158)Ico Doornekamp2020-01-161-10/+0
|
* ARC: misc bugfixes (#13156)Andreas Rumpf2020-01-151-1/+1
| | | | | | | | * fixes #13102 * closes #13149 * ARC: fixes a move optimizer bug (there are more left regarding array and tuple indexing) * proper fix; fixes #12957 * fixes yet another case object '=' code generation problem
* System cleanup, part 2 (#13155)Miran2020-01-158-0/+1671
| | | | | | | | * create basic_types, arithmetics, exceptions, comparisons * create setops.nim * create memalloc.nim * create gc_interface.nim * create iterators_1.nim
* Added 'ansic' os support for minimal (embedded) targets (#13088)Ico Doornekamp2020-01-154-68/+73
| | | | | | | | * os:any implementation * os:asny: omit flock/funlock calls in echoBinSafe * Disabled default "unhandled expection" reporting for `--os:any` to reduce code size. Added unhandledExceptionHook instead which can be used to get a notification from Nim and handle it from the application.
* VM FFI: write(stderr, msg) and fprintf(cstderr, msg) now work at CT (#13083)Timothee Cour2020-01-122-5/+16
|
* more arc features (#13098)Andreas Rumpf2020-01-101-0/+170
| | | | | * config update * ARC now supports 'repr' and 'new' with finalizers is supported
* [backport] system/io.nim fix wrong documentation comment [ci skip]narimiran2020-01-101-2/+2
|
* typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get ↵Timothee Cour2020-01-101-0/+2
| | | | | | (#13064)
* fixes #13070Araq2020-01-101-2/+2
|
* take the one good idea from --os:standalone and enable it via ↵Andreas Rumpf2020-01-092-8/+8
| | | | -d:StandaloneHeapSize (#13077)
* reprjs: style changesAraq2020-01-051-12/+12
|
* fixes #13013, reverts previous changes to readLines() (#13036) [backport]cooldome2020-01-051-3/+5
| | | | | | | * Revert "remove default argument for readLines (#12807) [backport]" This reverts commit c949b81efdeb08b38224e1678ad140b7b7663b15.
* fixes #13032Araq2020-01-042-6/+6
|
* remove default argument for readLines (#12807) [backport]cooldome2020-01-021-3/+3
|
* --exception:goto switch for deterministic exception handling (#12977)Andreas Rumpf2020-01-013-98/+120
| | | | | This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior. Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
* fixes #12965 (#12991)Andreas Rumpf2019-12-311-10/+11
|
* c_fflush() the rawWrite() buffer (#12987)Ștefan Talpalaru2019-12-301-0/+4
| | | | | | Stack traces on an unbuffered stderr get out of sync with line-buffered stdout - usually on Windows terminals or CI logs. This fixes it by calling C's fflush() on the output buffer in the procedure used for printing stack traces.
* generic stack trace overriding mechanism (#12922)Ștefan Talpalaru2019-12-291-10/+33
| | | | | | | | | | | | | | | | * libbacktrace support * switch to a generic stack trace overriding mechanism When "nimStackTraceOverride" is defined, once of the imported modules can register its own procedure to replace the default stack trace generation by calling `registerStackTraceOverride(myOwnProc)`. Tested with `./koch boot -d:release --debugger:native -d:nimStackTraceOverride --import:libbacktrace` for the compiler itself and `./bin/nim c -r -f --stacktrace:off --debugger:native -d:nimStackTraceOverride --import:libbacktrace foo.nim` for an external program. * make the StackTraceOverrideProc {.noinline.}
* minor refactoringsAndreas Rumpf2019-12-271-9/+9
|
* ARC: default to a shared heap with --threads:onAraq2019-12-242-0/+10
|
* ported channels to ARCAraq2019-12-241-120/+142
|
* fix error in assertions document (#12925) [backport]flywind2019-12-181-1/+1
|
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-177-2/+762
| | | | | | | | | | | | | * first implementation of the =trace and =dispose hooks for the cycle collector * a cycle collector for ARC: progress * manual: the .acyclic pragma is a thing once again * gcbench: adaptations for --gc:arc * enable valgrind tests for the strutils tests * testament: better valgrind support * ARC refactoring: growable jumpstacks * ARC cycle detector: non-recursive algorithm * moved and renamed core/ files back to system/ * refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
* NaN floatFormat with clang_cl (#12910)cooldome2019-12-171-2/+2
| | | | | | * clang_cl nan floatFormat * format
* Better clang_cl support (#12896)cooldome2019-12-131-5/+6
|
* ARC related bugfixes and refactorings (#12781)Andreas Rumpf2019-12-051-8/+56
|
* more fixes for --cpu:avr [backport] (#12748)Andreas Rumpf2019-11-274-5/+8
|
* ARC: ported the GC tests over to --gc:arcAraq2019-11-261-0/+9
|
* csize_t changes: pinToCpu didn't compile (#12725)Mamy Ratsimbazafy2019-11-251-1/+1
|
* make tests green againAndreas Rumpf2019-11-131-2/+2
|
* gc:arc: support GC_ref/unref for ref TAraq2019-11-131-2/+2
|
* Fix #12135 and #12109 (#12137)Euan2019-11-111-0/+7
| | | | | | * Fix #12135 and fix #12109 - fix OpenBSD type defs * Fix Mode definition as in #12132
* Fix crash in terminate handler (#12572) [backport]Volodymyr Lashko2019-11-071-0/+6
| | | | | | | | | | | | | | | | * fix undefined behavior in terminate handler * fix failing unit test * Revert "fix failing unit test" This reverts commit 0e5e385fbf972d53909347e246a2e9b018fe9906. * Revert "fix undefined behavior in terminate handler" This reverts commit 2b582871f1981492838cc70d30e8c0e00ab8c9a9. * do not throw inside terminate handler with msvc < 1923
* fix #12597 (#12604)Arne Döring2019-11-071-4/+4
|
* added 'since' template for further stdlib additionsAndreas Rumpf2019-11-072-1/+5
|
* [backport] fix #12395 (#12590)Miran2019-11-041-3/+3
| | | | | 'countBits32' is now fixed in the same way that 'countBits64' was already patched earlier (by adding 'u32 where needed).
* introduce csize_t instead of fixing csize (#12497)Arne Döring2019-10-316-30/+30
|
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-304-6/+6
|
* Improve Math.Trunc code emit on JS, had weird whitespaces and indents (#12549)Juan Carlos2019-10-301-10/+10
|
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-303-5/+5
|
* proof that refcounting can handle Nim's async (#12533)Andreas Rumpf2019-10-281-1/+8
|
* fix deprecation warnings related to Int128 (#12474)Miran2019-10-281-1/+1
| | | | | | | | * semfold: fix deprecation warnings related to Int128 * semmagic: fix deprecation warnings related to Int128 * system/io: remove unneeded conversion of TaintedString to itself
* minor improvementsAndreas Rumpf2019-10-271-1/+2
|
* Fix word wrappingJjp1372019-10-221-4/+5
|
* Fix many broken linksJjp1372019-10-222-4/+4
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* first implementation of the new --seqsv2 switchAraq2019-10-204-5/+5
|
* Revert "Fixes #12187 (#12321)" (#12447)Andreas Rumpf2019-10-184-35/+11
| | | This reverts commit 00c31e87660d9db813871f5aa23661bf6b9bbdcb.
* Fixes #12286 - require explicit disabling of boehm interior pointer checking ↵genotrance2019-10-111-1/+3
| | | | (#12406) [backport]