summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* testament --megatest:off now makes tests non-joinable so that they all run ↵Timothee Cour2021-09-032-2/+2
| | | | (#18787)
* fixes #18494 (#18783)Andreas Rumpf2021-09-021-8/+34
|
* fixes #16325 [backport:1.4] (#18784)Andreas Rumpf2021-09-022-2/+21
|
* sequtils now support strict effect tracking (#18782)Andreas Rumpf2021-09-022-9/+19
|
* Fix initrand to avoid random number sequences overlapping (#18744)Tomohiro2021-09-024-20/+95
| | | | | | | | | | | | | | | | | | | | | | | * Fix initrand to avoid random number sequences overlapping * Minor fix * Fix compile error on js backend * Disable new test for js backend * Minor fix * tempfiles module uses random.initRand() * Remove unused module import from lib/std/tempfiles.nim * Initialize baseState in initRand() * Run tests/stdlib/trandom.nim from tests/test_nimscript.nims * baseState is initialized only with sysrand.urandom and quit if failed * Add comments
* strict effects (#18777)Andreas Rumpf2021-09-0235-203/+482
| | | | | | | | | | | | | | | | | * fixes #17369 * megatest is green for --cpu:arm64 * docgen output includes more tags/raises * implemented 'effectsOf' * algorithm.nim: uses new effectsOf annotation * closes #18376 * closes #17475 * closes #13905 * allow effectsOf: [a, b] * added a test case * parameters that are not ours cannot be declared as .effectsOf * documentation * manual: added the 'sort' example * bootstrap with the new better options
* fix #9778 (pairs iterator calling a helper proc with tuple return type will ↵flywind2021-09-022-11/+300
| | | | | | | | | | | cut the iterator yield into half) (#18767) * test someSymFromImportTable * Update compiler/lookups.nim * test nkTupleConstr * use isConstExpr * add tests * add comments and todo * use todo
* add Apple Silicon to supporting platforms (#18772)flywind2021-08-311-1/+1
| | | | | | | | | * add Apple Silicon to supporting platforms * Update readme.md Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* [minor]break loops after a candidate is added to seqs (#18770)flywind2021-08-311-7/+9
| | | | | | | | | * [minor]break loops when added * Update compiler/lookups.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #15150 (#18730)konsumlamm2021-08-311-1/+2
|
* move PNode.comment to a side channel, reducing memory usage during ↵Timothee Cour2021-08-293-27/+67
| | | | | | | | | | | | | | | | | compilation by a factor 1.25x (#18760) * move PNode.comment so a side channel, reducing memory usage * fix a bug * fixup * use sfHasComment to speedup comment lookups * fix for IC * Update compiler/parser.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Remove `Covariance` section from the experimental manual (#18688)konsumlamm2021-08-291-101/+63
| | | | | | | * Remove `Covariance` section * Add blank lines after `.. code-block::` * Fix CI?
* add missing docs (#18758)flywind2021-08-291-0/+1
|
* followup #18759: make compiler build cleanly with 0 warnings/hints (#18764)Timothee Cour2021-08-282-4/+4
|
* more minor bootstrapping cleanups (#18759)Miran2021-08-283-5/+0
|
* [minor] break loops if it is ambiguous (#18745)flywind2021-08-271-6/+7
| | | | | | | | | * [minor] break loops if it is ambiguous * Update compiler/lookups.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Implement RFC-413 (#18749)Juan Carlos2021-08-264-5/+8
| | | | | | | | | | | | | | | | | | | | | | * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * https://github.com/nim-lang/Nim/pull/18749#discussion_r696320995 * Update lib/js/dom_extensions.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/js/dom_extensions.nim * https://github.com/nim-lang/Nim/pull/18749#discussion_r696913310 Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* followup #18711 grammar_nanny now reports unused non-terminals (#18746)Timothee Cour2021-08-261-1/+5
| | | | | | | * followup #18711 cleanup unused grammar rules * make tools/grammar_nanny.nim report unused terminals * revert removal of some grammar comments
* fixes #14511 [backport:1.4] (#18732)Dankr4d2021-08-252-11/+64
| | | | | | | | | | | | | | | | | | | | | | | | | * fixes #14511 [backport:1.4] Signed-off-by: Dankr4d <dude569@freenet.de> * Replaced fix with code from alaviss, for better readability, with small changes. Signed-off-by: Dankr4d <dude569@freenet.de> * - Specified output in test. Signed-off-by: Dankr4d <dude569@freenet.de> * Replaced case in nnkRecCase with a simpler version, which just adds the last son. Signed-off-by: Dankr4d <dude569@freenet.de> * Update tests/macros/t14511.nim * Update tests/macros/t14511.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix RFC #341: dot-like operators are now parsed with same precedence as `.` ↵Timothee Cour2021-08-257-5/+74
| | | | | | | | | | | | | | | | | | | | | (#18711) * fix RFC #341: dot-like operators are now parsed with same precedence as `.` * fixup * [skip ci] address comment in changelog * address comment * update grammmar * add manual entry * fixup * -d:nimPreviewDotLikeOps * address comment to unblock PR: move nimPreviewDotLikeOps out of config/config.nims
* [minor]use `addInt` and `addFloat` (#18733)flywind2021-08-241-2/+2
| | | | | | | * unify int and uint * back * minor
* get rid of the warnings during bootstrapping (#18741)Miran2021-08-244-5/+5
| | | | | * fix bootstrapping hints and warnings * revert removals in ccgtypes
* make deprecated message better (#18737)flywind2021-08-231-1/+1
|
* fix a typo (#18736)flywind2021-08-231-1/+1
|
* Fix #18718 (#18731)konsumlamm2021-08-232-47/+59
| | | Update tests
* Implement RFC-391 (#18585)Juan Carlos2021-08-223-109/+107
|
* fix #17898(randomPathName called twice in a row can return the same string ↵flywind2021-08-221-3/+17
| | | | | | | on windows) (#18729) * close #17898 * no need to consider js
* replace wrt with proper word (#18724)flywind2021-08-225-6/+8
| | | | | * what does wrt mean? * clarify
* fix deprecated example (#18721)flywind2021-08-212-11/+27
|
* add testcase for overloadable_enums (#18722)flywind2021-08-211-0/+29
| | | | | * add testcase for overloadable_enums * link
* [docs]fix an item missing (#18717)flywind2021-08-201-0/+1
|
* sigmatch: support optional params with last block arg(s) (#18631)Timothee Cour2021-08-202-1/+94
| | | | | | | * sigmatch: support optional params with last block arg * add tests * works with multiple block args * cleanup * address comment
* fix #18627(Program segfaults with ARC when using openArray[string]) (#18713)flywind2021-08-192-1/+25
| | | | | | | * fix #18627 * add testcase * rename * another * remove tyVarargs
* fix a typo (#18715)flywind2021-08-191-1/+1
|
* Add ceilDiv to math (#18596)Tomohiro2021-08-193-0/+94
| | | | | | * Use assert in runnableExamples and improve boundary check * Add more tests for ceilDiv * Fix comment in ceilDiv * Calling ceilDiv with int type T such like sizeof(T) > 8 is error
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-1912-187/+163
| | | | | | | | * improvements to $(SomeInteger) and addInt * remove mIntToStr, mInt64ToStr * improvements * fix tests/pragmas/tinjectstmt.nim; the diff is harmless, cgen code is identical with -d:danger or debug mode * rm tests/system/tstrmantle.nim * revert compiler/jsgen.nim for -d:nimVersion140
* allow building 1.4.0 from devel (#18708)Timothee Cour2021-08-186-7/+29
| | | | | * allow building 1.4.0 from devel * changelog
* [wip]better hint message for JS (#18704)flywind2021-08-181-10/+21
| | | | | * better hint message for JS * both
* asynchttpserver: ipv6 support (#18706)Emery Hemingway2021-08-182-7/+8
| | | Fix #18705
* fix #18702(fix `parseutils.parseFloat`) (#18703) [backport:1.0]flywind2021-08-162-6/+16
| | | | | * fix #18702 * Apply suggestions from code review
* cross compilation targetting windows now supports `nim r`: `nim r -d:mingw ↵Timothee Cour2021-08-163-5/+20
| | | | | | | | | main` (#18682) * cross compilation targetting windows now supports `nim r`: `nim r -d:mingw main` * quoteShell * address comment: remove `conf.getConfigVar("nimrun.exe")`
* Documentation only, Terminal (#18696)Juan Carlos2021-08-141-1/+15
| | | Add simple progress bar example to terminal module
* fix #18692 AsyncHttpServer was hanging because client.close was not called ↵Timothee Cour2021-08-141-1/+3
| | | | (#18693)
* manual: minor improvements (#18687)Andreas Rumpf2021-08-131-12/+9
|
* properly fix #10053 ; `FieldDefect` msg now shows discriminant value + ↵Timothee Cour2021-08-1318-43/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lineinfo, in all backends (c,vm,js) (#11955) * fix #10053 FieldError for vm * fixup * FieldError now also shows runtime value of discriminant * fix field error reporting in vm * also report culprit line info in err msg * fix errors for newruntime 2 * fix for js * fixup * PRTEMP4 * works * works * works perfect * refactor * std/private/repr_impl * suppport --gc:arc * cleanup * refactor * simplify * simplify * simplify * fixup * move out compiler.vmgen.genCustom * fixup * fixup * add tests * revert compiler/debugutils.nim * simplify reprDiscriminant * fixup * lib/std/private/repr_impl.nim -> lib/system/repr_impl.nim * try to fix D20210812T165220 * honor --declaredlocs * control toFileLineCol via --declaredlocs
* initial fix for compiling Nim on Zephyr RTOS (issue #18684) (#18685)Jaremy Creechley2021-08-131-1/+2
| | | | | * initial fix for compiling Nim on Zephyr RTOS (issue #18684) Co-authored-by: Jaremy J. Creechley <jaremy.creechley@wavebaselabs.com>
* don't use space after proc names (#18681)flywind2021-08-121-2/+2
|
* fix a sqlite bug (#18669)flywind2021-08-123-11/+47
|
* fix #18670 quoteShellCommand, quoteShell, quoteShellWindows on windows (#18671)Timothee Cour2021-08-122-6/+18
|
* fixes #18643 [backport:1.0] (#18678)Andreas Rumpf2021-08-122-1/+12
|