Timothee Cour
df17cf5e9e
misc cleanups ( #16383 )
2020-12-18 08:53:43 +01:00
Andreas Rumpf
979148e863
refactorings to prepare the compiler for IC ( #15935 )
...
* 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
2020-12-17 08:01:36 +01:00
Timothee Cour
2728711dd3
fix #16248 forward --lib to runnableExamples ( #16350 )
2020-12-14 17:49:39 +01:00
RSDuck
b6443c96a0
fix #16334 ( #16335 )
...
* fix #16334
* rename isstdout -> isStdout
* separate lastMsgWasDot for stdout and stderr
* simplify logic
2020-12-14 13:28:03 +01:00
Timothee Cour
4850f9b596
fix #16265 ; fix #13999 (HCR on OSX); cgen now does not line wrap string litterals ( #16329 )
...
* fix #16265 : cgen now does not line wrap string litterals which, in combination with other hacks, caused a really obscure looking bug
* fix #13999 ; nimhcr_integration.nim now works for osx
* try to make appveyor CI disappear
* disable openbsd + add diagnostic for openbsd
* enable for openbsd
* PTEMP
* re-disable openbsd
2020-12-14 11:17:24 +01:00
Timothee Cour
f344a70412
fix #16150 improve type mismatch errors ( #16152 )
...
* fix #16150 improve type mismatch errors
* allow -d:nimLegacyTypeMismatch
* address comment
2020-12-09 16:19:39 +01:00
flywind
9ce2f87a0a
clean up old codes ( #16284 )
...
* clean up old codes
* fix docs and links
* clean
2020-12-09 12:18:32 +01:00
Miran
40255f6721
put both funcs and procs under the same section in the documentation ( #16301 )
...
* both funcs and procs are under the same section in the documentation
* update the test
2020-12-09 10:56:28 +01:00
Andreas Rumpf
94bb816de3
OSX: support for M1 [backport:1.0] ( #16279 )
2020-12-07 10:50:30 +01:00
flywind
1e320bc8c5
[docs minor]space for code-block ( #16266 )
...
* [docs minor]space for code-block
* correct more errors
* to runnableExamples
* add newline
2020-12-06 09:54:32 +01:00
Andreas Rumpf
8178388a78
fixes #16249 [backport:1.4] ( #16251 )
2020-12-05 00:36:06 +01:00
Alf-André Walla
545c406cbe
Add 32-bit RISC-V support ( #16231 )
2020-12-03 17:33:42 +01:00
Timothee Cour
c731f7ab14
fixes #15939 , fixes #15464 , fixes #16169 , fixes #16226 VM now supports addr(mystring[ind]) (index + index assignment) ( #15987 )
...
* fix #15939 , fix #15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc
* cleanups
* cstring tests
* add test for bug #15464
* improve test coverage
2020-12-03 16:55:43 +01:00
Miran
c0b76ef3cb
fix #16164 , render doc comments ( #16230 )
...
* fix #16164 , render doc comments
* add a test
2020-12-02 15:36:08 +01:00
ihlec
5c23ba7545
fixed article duplication typos ( #16216 )
2020-12-02 09:15:29 +01:00
Timothee Cour
84f2ad3068
add test for --eval; fix a minor bug ( #16224 )
2020-12-01 21:09:08 -08:00
Andreas Rumpf
2e4b6b94e6
Revert "fix #16185 ( #16195 )" ( #16197 )
...
This reverts commit bb4b27a2ca .
2020-11-30 23:36:38 +01:00
cooldome
bb4b27a2ca
fix #16185 ( #16195 )
...
* fix #16185
* fix test
* fix comment
* fix comment
* better approach
2020-11-30 18:45:37 +01:00
Timothee Cour
52829fc8d1
cmdline: improve command processing ( #16056 )
2020-11-26 15:55:56 -08:00
Andreas Rumpf
9f1c5f64c5
fixes #16119 [backport:1.4] ( #16149 )
2020-11-26 22:16:43 +00:00
Timothee Cour
13b1b19a83
remove all mentions of doc2, jsondoc2 (except 1 mentioning the alias) ( #15683 )
2020-11-26 11:54:18 -08:00
Andreas Rumpf
cf516713d0
fixes https://github.com/status-im/nimbus-eth2/issues/1549 ( #16146 )
...
* fixes https://github.com/status-im/nimbus-eth2/issues/1549 [backport:1.4]
* test fixup
2020-11-26 19:05:21 +01:00
cooldome
2f1a9eadd7
More on #16110 ( #16130 )
...
* fix #16110
* refs #16110
* fix comment
* Trigger build
* use shallowCopy for efficiency
2020-11-26 13:44:06 +00:00
cooldome
8c12d3e29d
fix #16120 ( #16145 )
2020-11-26 14:37:34 +01:00
Andreas Rumpf
da753c6a2e
fixes #15076 ( #16143 )
...
* fixes #15076
* heapqueue: optimized for ARC
* added another test case [backport:1.4]
* code cleanup
2020-11-26 10:24:52 +01:00
Timothee Cour
3e7077ac7d
fix #14339 , #13511 , #14420 : fixes limited VM support for addr ( #16002 )
...
* fix #14339 : fixes limited VM support for addr
* strengthen test
* reference bug #16003
* also fixes #13511
* also fixes #14420
2020-11-25 20:48:10 +01:00
flywind
57bd64582c
move tests under the compiler directory to testament ( #16096 )
2020-11-25 07:48:27 +01:00
flywind
3fed85437b
ref #16054 remove typed array ( #16077 )
2020-11-24 19:30:17 +01:00
Andreas Rumpf
d306a04466
fixes #16069 ; [backport:1.2] [backport:1.4] ( #16115 )
...
* fixes #16069 ; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4]
* make tests green again
2020-11-24 16:09:00 +01:00
cooldome
1d14b2c9e6
fix #16110 ( #16117 )
2020-11-24 15:49:14 +01:00
Miran
9a86198ed5
fix export links in the documentation ( #16114 ) [backport:1.4]
...
* fix export links in the documentation
* fix `len` problem
2020-11-24 14:26:52 +01:00
Andrey R (cooldome)
baae8ef38f
Revert "fix #16110 "
...
This reverts commit 2bab2a2cd8 .
2020-11-24 12:10:43 +00:00
Andrey R (cooldome)
2bab2a2cd8
fix #16110
2020-11-24 11:58:02 +00:00
flywind
6a37c0682a
ast minor ( #16079 )
2020-11-22 20:01:17 +00:00
Andreas Rumpf
d9038ed792
fixes #15671 [backport:1.4] ( #15690 )
...
* fixes #15671 [backport:1.4]
* progress
2020-11-20 18:14:15 +01:00
cooldome
fcb2ec4ed6
fix #15958 ( #15970 ) [backport:1.4]
...
* fix #15958
* also cover openArray and VarArgs
* more tests
* cover even more types
* cover even more types
* Trigger build
* Trigger build
* cover sets passed as arrays
2020-11-20 14:58:16 +01:00
Clyybber
07ad608fb2
Retain backwards compatibility after #16057 ( #16068 )
...
* Retain backwards compatibility
* Fix typo
2020-11-20 14:11:41 +01:00
Timothee Cour
7815ed69d4
rename loadConfigsAndRunMainCommand => loadConfigsAndProcessCmdLine, reflect reality ( #16057 )
2020-11-20 10:51:14 +01:00
Andreas Rumpf
1efd11e266
fixes #15942 [backport:1.2] [backport:1.4] ( #16051 )
2020-11-19 13:42:16 +01:00
cooldome
acf8316e50
Disallow nil dereference at compile time ( #16032 )
...
* bring back the semfold of nil
* remove space
* fix test
* proc type can't be dereferenced
* disallow nil dereference at compile time
* changelog
2020-11-18 23:30:28 +01:00
Timothee Cour
557dcfd87d
fix #16033 nim js --gc:arc works and ignores --gc:arc ( #16036 )
2020-11-18 23:28:52 +01:00
Andreas Rumpf
b9eb91cbb5
ORC: prepare for another patent-pending optimization ( #15996 )
...
* ORC: prepare for another patent-pending optimization
* bugfix
* '=copy' for refs can take a cyclic parameter for more ORC optimizations
* ORC: exploit the common 'it = it.next' pattern
* can't hurt to check for nil
* use an algorithm that is not obviously broken
* restore the test case
* final cleanups for --gc:orc
2020-11-18 22:31:06 +01:00
cooldome
87d3e5331a
Semfold for nil cast ( #16030 )
...
* bring back the semfold of nil
* remove space
* fix test
* proc type can't be dereferenced
2020-11-18 17:19:57 +00:00
flywind
581bcfe290
fix #6497 ( #16027 )
...
* fix #6497
* add testcase for #16027
2020-11-18 07:56:31 +00:00
flywind
e6e1e9574d
combine PR#16009 and PR#16012 ( #16024 )
...
* fix #15623
* add testcase for #15623
* add testcase
* combine #16009
* support casting nil to NilableTypes in VM
2020-11-18 08:28:05 +01:00
flywind
0869d2a477
fix #15972 ( #15994 )
...
* fix #15972
* add testcase
* more
2020-11-18 00:14:14 +00:00
Andrey R (cooldome)
632af8afad
Revert "follow #16009 VM supports cast nil to ptr ( #16012 )"
...
This reverts commit fec19c980e .
2020-11-17 18:54:33 +00:00
Andrey R (cooldome)
1663ad77e3
Revert "fix #15623 ( #16009 )"
...
This reverts commit 0f7f159a35 .
2020-11-17 18:54:14 +00:00
flywind
0f7f159a35
fix #15623 ( #16009 )
...
* fix #15623
* add testcase for #15623
* fix
* add testcase
2020-11-17 17:05:20 +00:00
flywind
fec19c980e
follow #16009 VM supports cast nil to ptr ( #16012 )
...
* follow #16009 VM supports cast nil to ptr
* more testcase
2020-11-17 10:47:01 +00:00