summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* this ensures libp2p continues to compile [backport] (#18908)Andreas Rumpf2021-09-272-5/+16
|
* fix wrong name (rnimsyn => renderer; pnimsyn => parser; scanner => lexer) ↵flywind2021-09-254-6/+6
| | | | | | | (#18895) * fix wrong module name * rephrase more word
* closes #18690; make view types stricter [backport] (#18891)Andreas Rumpf2021-09-241-4/+2
| | | | | * closes #18690 * don't allow capturing of view types [backport]
* [backport] arc: improve compile time of (nested) loops (#18890)Clyybber2021-09-241-3/+8
|
* ported Nim to proprietary CrossOS [backport] (#18889)Andreas Rumpf2021-09-243-3/+10
|
* correct effect tracking for .borrowed procs [backport] (#18882)Andreas Rumpf2021-09-236-10/+18
| | | | | | | | | | | * correct effect tracking for .borrowed procs [backport] * progress * fix error message in a test * correctly fix it Co-authored-by: narimiran <narimiran@disroot.org>
* closes #16132 [backport] (#18880)Andreas Rumpf2021-09-221-5/+8
| | | | | * closes #16132 [backport] * fixes #16132 [backport]
* fixes #18856 [backport] (#18879)Andreas Rumpf2021-09-221-1/+1
|
* fixes #18863 [backport] (#18871)Andreas Rumpf2021-09-202-4/+5
|
* fixes #18847 [backport] (#18870)Andreas Rumpf2021-09-201-2/+3
|
* semtypinst: don't wrap type nodes from expressions in static[T] (#18860)alaviss2021-09-171-1/+1
|
* Fixed borrowing dot from aliases (#18854)Jason Beetham2021-09-161-2/+2
|
* fix #10128 (#18852)flywind2021-09-141-3/+3
|
* Dotborrow now works with generic distincts (#18848)Jason Beetham2021-09-142-3/+4
|
* Fixed #18838 (#18841) [backport]Jason Beetham2021-09-131-1/+5
|
* Generic pointer procs now error if no types supplied (#18832)Jason Beetham2021-09-112-2/+2
| | | | | | | * more precise logic for pointer procs * added test for generic pointer procs * Fixed generic getting bracket expr if erroring
* Fixed type inference for 'set` and 'tuple' (#18827)Jason Beetham2021-09-111-1/+2
| | | | | | | * improved built in typeclass inference * Smarter logic to fit node * Forgot the untyped check
* Fix subranges of distinct types (#18816) [backport]Jason Beetham2021-09-071-1/+1
|
* Fixes implicit and explicit generics in procedures (#18808)Jason Beetham2021-09-061-5/+23
| | | | | | | | | | | * Fixes implicit and explicit generics * moved block logic into 'maybeInstantiateGeneric' * Added more tests * Update compiler/semexprs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #12642 (#18811)Andreas Rumpf2021-09-063-2/+10
| | | | | | | | | | | | | | | | | | | * fixes #12642 * update important packages; refs #18804 * fixes #18805; refs #18806 * fixes a regression * Update testament/categories.nim Co-authored-by: flywind <xzsflywind@gmail.com> * progress * progress Co-authored-by: flywind <xzsflywind@gmail.com>
* '[]' can now be used for iterators (#18814)Jason Beetham2021-09-061-1/+1
|
* fixes #14165, fixes #18739, fix the second example of #6269 (#18812)Andreas Rumpf2021-09-061-4/+7
|
* Fix recursive generic typed defs (#18809)Jason Beetham2021-09-061-1/+1
|
* formal grammar updates [backport:1.2] (#18803)Andreas Rumpf2021-09-041-27/+23
|
* unicode operator bugfixes (#18802)Andreas Rumpf2021-09-041-46/+60
|
* fixes #16246 (#18800)Andreas Rumpf2021-09-043-2/+11
|
* fix for js strict mode (#18799)Sven Keller2021-09-041-1/+1
| | | | | | | | * Assignments, which would accidentally create global variables, instead throw an error in strict mode * Assignment to a getter-only property Co-authored-by: Sven Keller <s.keller@cortona.de>
* we need something better than warningAsError for effect handling viol… ↵Andreas Rumpf2021-09-041-2/+2
| | | | | | (#18796) * we need something better than warningAsError for effect handling violations
* implements https://github.com/nim-lang/RFCs/issues/407 (#18793)Andreas Rumpf2021-09-037-20/+59
|
* implemented Unicode operators (#18789)Andreas Rumpf2021-09-032-7/+76
| | | | | | | | | | | | | | | * implemented Unicode operators; refs https://github.com/nim-lang/RFCs/issues/388 * bugfix * better test * arguably more elegant implementation * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* remove unnecessary if statement (#18792)flywind2021-09-031-6/+6
|
* fixes #18769 (#18790)Andreas Rumpf2021-09-031-1/+7
|
* fixes #18786 (#18788)Andreas Rumpf2021-09-031-6/+5
|
* fixes #16325 [backport:1.4] (#18784)Andreas Rumpf2021-09-021-2/+1
|
* strict effects (#18777)Andreas Rumpf2021-09-0216-54/+164
| | | | | | | | | | | | | | | | | * 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-021-11/+44
| | | | | | | | | | | 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
* [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>
* 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>
* 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>
* fix RFC #341: dot-like operators are now parsed with same precedence as `.` ↵Timothee Cour2021-08-252-5/+31
| | | | | | | | | | | | | | | | | | | | | (#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
* fix a typo (#18736)flywind2021-08-231-1/+1
|
* replace wrt with proper word (#18724)flywind2021-08-223-3/+3
| | | | | * what does wrt mean? * clarify
* sigmatch: support optional params with last block arg(s) (#18631)Timothee Cour2021-08-201-1/+13
| | | | | | | * 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-191-1/+1
| | | | | | | * fix #18627 * add testcase * rename * another * remove tyVarargs
* fix a typo (#18715)flywind2021-08-191-1/+1
|
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-191-4/+4
| | | | | | | | * 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