summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #12311 (#16578)flywind2021-01-041-4/+7
|
* fix #8412 (#16563)flywind2021-01-031-6/+12
| | | | | | | | | | | | | | | | | * Revert "Make config processing order test more robust" This reverts commit cf714c129f7dd598863d1cc588e685df2438c658. * enable tmath tests * fix #8412 * Revert "enable tmath tests" This reverts commit 293b63f57ef71e6c43b9faf24883c998c40a9484. * add tests * fix
* fix #16494 (#16513)flywind2021-01-011-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #16494 * fix * fix * fix * fix * fix * fix performance * add comments * improve performance * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-0/+2
| | | | | | | | | | | | | * 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-8/+2
|
* mark abs as inline (#16432)flywind2020-12-221-5/+5
|
* misc cleanups (#16383)Timothee Cour2020-12-181-3/+3
|
* refactorings to prepare the compiler for IC (#15935)Andreas Rumpf2020-12-171-1/+1
| | | | | | | | | | | | | | * added ic specific Nim code; WIP * make the symbol import mechanism lazy; WIP * ensure that modules can be imported multiple times * ambiguity checking * handle converters and TR macros properly * make 'enum' test category green again * special logic for semi-pure enums * makes nimsuggest tests green again * fixes nimdata * makes nimpy green again * makes more important packages work
* disabled sink openArray[T] for adding to seqs (#16352) [backport:1.4]lqdev2020-12-141-1/+1
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-12/+12
| | | | | * Fix broken links in docs * Fix rand HSlice links
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-031-1/+1
|
* ref #16054 undefine some stuff in JS backend (#16070)flywind2020-11-261-45/+46
|
* inc and dec are atomic in JS backend (#16129)flywind2020-11-251-1/+1
|
* add simple writeStackTrace for JS backend (#16016)flywind2020-11-241-1/+1
| | | | | | | * 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-191-0/+3
|
* make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-121-0/+1
| | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-1/+2
| | | | | | | * 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>
* change NimVersion to 1.5.1narimiran2020-10-161-2/+2
|
* fix #15405. deepcopy arc (#15410)cooldome2020-10-011-0/+3
| | | | | | | * fix #15405 * fix tests * deepcopy for ARC has to be enabled via --deepcopy:on Co-authored-by: Araq <rumpf_a@web.de>
* cleanup lib/system/stacktraces.nim; refs #15416 (#15418)Andreas Rumpf2020-09-281-6/+0
|
* fixes #14983 (#15320)Andreas Rumpf2020-09-251-18/+45
| | | | | | | | | * fixes #14983 * allow bootstrapping with 0.20 * added a test case for the new system.add with a sink parameter * make npeg green again
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-0/+6
| | | | | | | | | | | | | | | | | * 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>
* bump NimVersion to 1.3.7narimiran2020-09-181-1/+1
|
* Revert "Introduce explicit copy (#15330)" (#15346)Andreas Rumpf2020-09-161-5/+0
| | | This reverts commit a3e9cc52343a54cadc7b77b783e1c8b6ba2b327f.
* Introduce explicit copy (#15330)cooldome2020-09-161-0/+5
|
* allow old styled RTTI for arc/orc (#15331)Andreas Rumpf2020-09-161-30/+29
|
* deprecate `high(value)` and `low(value)` (#15283)Miran2020-09-091-6/+8
|
* fixes system.add for strict funcs (#15259)Andreas Rumpf2020-09-031-18/+20
| | | | | * fixes system.add for strict funcs * fixes #15248
* Fix #5691 (#15158)Clyybber2020-08-271-18/+23
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* more renamingsAraq2020-07-271-3/+3
|
* fix #14475; unittest.require now works with `nim c`; require and check now ↵Timothee Cour2020-07-141-5/+2
| | | | | | | | | | | | | works with -d:nodejs (#14676) * fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-2/+5
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-161-5/+4
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-3/+8
| | | | * runnableExamples "-b:cpp -r:off": code
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-151-2/+2
| | | | | | | This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
* Improve nimeval, changes some defaults (#14351)PMunch2020-05-151-1/+1
| | | | | | | | | | * Improve nimeval, changes some defaults This improves nimeval to make it easier to use NimScript as an embedded scripting languages. It does change some of the defaults, so in case anything used the old version and depended on the old behaviour these would have to be changed. * Remove dependency on nimhcr for nimscript
* `osproc.execCmdEx` now takes an optional `input` for stdin, `env`, ↵Timothee Cour2020-05-131-1/+2
| | | | | | | workingDir (#14211) * `osproc.execCmdEx` now takes an optional `input` for stdin * execCmdEx now also takes an optional ``workingDir` and `env`
* fixes #13881Andreas Rumpf2020-05-121-2/+2
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-081-1/+1
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* Clarify JS cstring len (#14184)hlaaftana2020-05-051-6/+7
|
* fix #14217 (#14218)cooldome2020-05-051-1/+1
| | | | | * fix #14217 Co-authored-by: cooldome <ariabushenko@bk.ru>
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-2/+4
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-6/+6
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* `$` now works for unsigned intergers with `nim js` (#14122)Timothee Cour2020-04-271-4/+5
| | | | * $(unsigned) now works for js * move NimMajor+friends closer to NimVersion according as per reviewer feedback
* since now takes an optional patch, eg: `since: (1, 3, 1)` (#14124)Timothee Cour2020-04-261-1/+5
| | | add tests for tinclrtl
* forward type alignment information to seqs (#12430)Arne Döring2020-04-191-2/+10
|
* bump devel version to 1.3.1narimiran2020-04-031-1/+1
|
* stacktraces can now show custom runtime msgs per frame (#13351)Timothee Cour2020-03-301-16/+20
| | | | | | | | * stacktraces can now show custom runtime msgs * improve tests/stdlib/tstackframes.nim * fix test for --gc:arc * test --stacktraceMsgs:on and --stacktraceMsgs:off * --stacktracemsgs:off by default
* arc optimizations (#13325)Andreas Rumpf2020-03-181-8/+1
| | | | | * scope based destructors * handle 'or' and 'and' expressions properly, see the new test arc/tcontrolflow.nim * make this branch mergable, logic is disabled for now
* catchable defects (#13626)Andreas Rumpf2020-03-121-1/+4
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly