summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* added float32 schubfach algorithm; wip (#18155)Andreas Rumpf2021-06-031-1/+5
| | | | | * added float32 schubfach algorithm; wip * fixes #18418
* fix #16993, #18054, #17835 runnableExamples now works with templates and ↵Timothee Cour2021-06-021-4/+8
| | | | nested templates (#18082)
* refactoring: removed empty withBracketExpr template (#18152)Andreas Rumpf2021-06-022-14/+6
|
* fixes #18059 (#18140)Andreas Rumpf2021-06-022-3/+45
| | | | * fixes #18059
* use dragonbox algorithm; alternative to #18008 (#18139)Andreas Rumpf2021-06-011-0/+2
| | | | | * use dragonbox algorithm; alternative to #18008 * removed unsafe code
* docs: Latex generation improvements (#18141)Andrey Makarov2021-06-011-1/+1
| | | | | | | * docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
* Fixes #5034 illformed AST from getImpl with proc returning value (#17976)Dylan Modesitt2021-05-311-4/+21
| | | | | * Fixes 5034 * address comments
* fix #18113 (#18124)Saem Ghani2021-05-311-2/+6
|
* Fixes #17849 (#18055) [backport:1.2]Yuriy Glukhov2021-05-301-0/+6
| | | | | | * Fixes #17849 * Update compiler/closureiters.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) ↵Timothee Cour2021-05-262-3/+3
| | | | (#18085)
* Error message minor (#18021)Juan Carlos2021-05-222-2/+2
| | | | | | | * Update compiler/semtypes.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* jsgen improve spacing (#18048)Juan Carlos2021-05-202-32/+32
| | | | * Fix inconsistent spacings in generated JS of jsgen
* config system: special case -d:release and -d:danger [backport:1.4] (#18051)Andreas Rumpf2021-05-202-5/+17
|
* fixes #17943 (#18045)Andreas Rumpf2021-05-191-0/+3
| | | | | | | | | | | * fixes #17943 * IC: test 'nim check --ic:on' for the full Nim compiler * Update testament/testament.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] (#18040)Andreas Rumpf2021-05-181-1/+6
| | | | * ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] * Update tests/arc/tnewseq_legacy.nim
* Disable performance hints by default (verbosity 1) (#18024)Clyybber2021-05-161-1/+1
|
* more informative error msg for undeclared field (`A(badfield: 1)` and ↵Timothee Cour2021-05-162-3/+15
| | | | `a.badfield = expr`) (#17777)
* Rework DFA traversal (#18016)Clyybber2021-05-161-118/+108
| | | | | | | | | * enable using dbg: without a context * Optimally joining first write/last read analysis * Add test for #18002 * potLastReads -> potentialLastReads
* docgen: escape special characters in titles (#18014)Andrey Makarov2021-05-151-2/+3
|
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-146-39/+39
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* ORC: progress (#18000)Andreas Rumpf2021-05-128-17/+26
| | | | | | | | | * ORC: progress * ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic * progress * minor style changes
* ORC: improvements (#17993)Andreas Rumpf2021-05-126-12/+18
| | | | * ORC: improvements * ORC: fix .acyclic annotation for ref objects
* ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ↵Andreas Rumpf2021-05-112-8/+12
| | | | (#17991)
* feature: the compiler can warn when you use the implicit 'result' variable ↵Andreas Rumpf2021-05-103-2/+7
| | | | | (#17988) [backport:1.2] * implements #17855
* since we have now so many virtual registers, reduce memory consumption for ↵Andreas Rumpf2021-05-103-50/+48
| | | | the register allocator (#17985)
* fixes #17675 (#17981)Andreas Rumpf2021-05-091-1/+1
|
* treetab: tiny cleanup (#17929)Clyybber2021-05-091-6/+4
| | | | | | | | | | | | | * treetab: tiny cleanup * Another tiny thing * Explicitly move n Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Typo Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* ORC: cursor inference bugfix (#17973)Andreas Rumpf2021-05-081-2/+2
| | | | | * fixed a .cursor inference bug * added a test case
* fix #17941: UnusedImport works for var/let/const/type invoked inside a ↵Timothee Cour2021-05-081-0/+3
| | | | | | | generic (#17942) * fix #17941: UnusedImport works for var/let/const/type invoked inside a generic * fixup
* add astmsgs; add `declared in` msg for usage lint errors (#17961)Timothee Cour2021-05-087-31/+34
| | | | | | | | | * add astmsgs; add `declared in` msg for usage lint errors * fix test * fix tests/tools/tlinter.nim * std prefix
* fixes #15848 [backport:1.2] (#17959)Andreas Rumpf2021-05-073-2/+4
|
* tiny cleanup (#17957)Andreas Rumpf2021-05-071-3/+1
| | | | | * tiny cleanup * I'm not British
* minor cleanups (#17948)Andreas Rumpf2021-05-062-4/+0
|
* docgen: get rid of ropes (#17939)Andrey Makarov2021-05-051-190/+146
|
* IC: codegen: fix (#17931)Andreas Rumpf2021-05-041-1/+3
|
* mention -d:nimLegacyConvEnumEnum in error msg (#17928)Timothee Cour2021-05-031-0/+2
|
* treetab: minor code cleanups (#17927)Andreas Rumpf2021-05-031-6/+6
|
* system.nim cleanup some exported constants which should never have be… ↵Andreas Rumpf2021-05-012-4/+3
| | | | | | (#17909) * system.nim cleanup some exported constants which should never have been exported
* bring back std/ prefix within compiler and ensure it works in bootstrap + ↵Timothee Cour2021-04-302-9/+9
| | | | | | | | | | | | | bsd (#17902) * [WIP] bring back std/ prefix within compiler and ensure it works in bootstrap + bsd * refs https://github.com/nim-lang/Nim/pull/16282#discussion_r616846863 * sounds very similar to https://github.com/nim-lang/Nim/pull/14291 * more: vmops * update tools/ci_generate.nim * auto-generate freebsd.yml as well, to avoid duplication with openbsd.yml * cleanup * undo temporary CI removal
* close #16646; `since` now works with bootstrap nim post csources_v1 (#17895)Timothee Cour2021-04-301-2/+2
| | | | | | | * revive #16627 now that csources_v1 was merged * use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683 * fix test and improve rendering of a rst warning
* Small parser loop fix (#17904)Clyybber2021-04-301-0/+1
| | | | * Fix loop on error with nim check in semiStmtList * Add test
* more strict RST inline markup parsing (#17827)Andrey Makarov2021-04-291-2/+5
| | | | | * more strict RST inline markup parsing * add test for unexpected bonus * introduce `roPreferMarkdown`
* fix #17853 (ascii message separator broke json nim dump) (#17887)Timothee Cour2021-04-293-2/+4
|
* externalToLink: use quoteShell to avoid issues with spaces in paths for ↵Timothee Cour2021-04-291-13/+9
| | | | {.link.} pragmas (#17875)
* Implement https://forum.nim-lang.org/t/7848#50018 (#17874)c-blake2021-04-292-7/+9
| | | | | | | | | | | | | | | | | | | | * Implement https://forum.nim-lang.org/t/7848#50018 with just the same `SuccessX` hint category, build mode on a separate, final line, and no change to how the mode is spelled for -d:release/-d:danger. * Change to add a new BuildMode hint category and keep testament in sync as per comment. * Add "--hint:buildmode:off" to `defaultHintsOff`. * Remove as requested. * As requested for tests clean up. * Address code review. * Address code review. * Mirror db456423116a9b19666f551f4d38aded3964c2e2
* Fix #17712 (#17873)Clyybber2021-04-271-3/+4
|
* Remove confusing <//> (#17830)flywind2021-04-261-4/+1
|
* fix #17836 (typed macro isNil for proc params) (#17841)Saem Ghani2021-04-252-2/+6
| | | thanks @alaviss for the test
* `--usenimcache` (implied by `nim r main`) now caches some compile options to ↵Timothee Cour2021-04-253-40/+43
| | | | | | | | | | | avoid recompiling when project was previously compiled with such options. (#17829) * `--usenimcache` (implied by `nim r main`) now caches some compile options to avoid recompiling when project was previously compiled with such options. * works * add test * changelog * use std/with
* add colon (#17834)flywind2021-04-243-3/+3
|