Araq
87f0d534d6
fixes #12488 [backport]
2019-11-28 23:00:34 +01:00
Araq
2dea920379
ARC: implemented a simple cycle detector
2019-11-28 23:00:34 +01:00
Clyybber
7e747d11c6
Cosmetic compiler cleanup ( #12718 )
...
* Cleanup compiler code base
* Unify add calls
* Unify len invocations
* Unify range operators
* Fix oversight
* Remove {.procvar.} pragma
* initCandidate -> newCandidate where reasonable
* Unify safeLen calls
2019-11-28 17:13:04 +01:00
PMunch
b662842bd0
Fix for 16 bit platforms ( #12760 ) [backend]
...
This fixes some tiny issues with using Nim on 16-bit platforms. Not
entirely sure why the AVR chip I was compiling for with "cpu = avr" was
detected as 16-bit, but that's probably another issue..
2019-11-28 17:11:56 +01:00
genotrance
010067f3cc
Substitute $nimbleDir in --path flags ( #12750 )
2019-11-28 13:58:38 +01:00
Andreas Rumpf
abe07eb75d
VM: improvements for var T/addr ( #12667 ); fixes #12489
2019-11-28 09:56:02 +01:00
Araq
d4cae118dc
fixes a flaky test for the realtime GC
2019-11-28 09:33:01 +01:00
3n-k1
0944b0f441
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687 . ( #12754 )
2019-11-28 08:32:11 +01:00
Brian Wignall
a7aeabb9d2
[backport] Fix spelling typos ( #12755 )
2019-11-28 08:30:55 +01:00
Andreas Rumpf
fd85a5ae05
more fixes for --cpu:avr [backport] ( #12748 )
2019-11-27 16:24:21 +01:00
Araq
80b508d337
test suite: rename tests containing 'fail' for easier search in logs
2019-11-26 16:04:28 +01:00
Araq
72237e2bcf
ARC: ported the GC tests over to --gc:arc
2019-11-26 16:04:28 +01:00
Miran
879801c639
increase the timeout for 'tasyncclosestall' ( #12744 )
...
This test is very flaky, this change might help reducing the
number of failings (usually solved by restarting the test suite).
Refs https://github.com/nim-lang/Nim/pull/12694#issuecomment-557583790
2019-11-26 14:12:15 +01:00
Timothee Cour
dfe5d115fb
fixes #12663 staticRead now creates a dependency for rebuilds ( #12731 ) [backport]
...
* fix #12663 staticRead
* address comments
2019-11-25 14:44:13 +01:00
Arne Döring
04614a30bd
fix in tests/js/tconsole ( #12709 )
2019-11-25 10:30:22 +01:00
Andy Davidoff
bd8f49cbd3
replace some runtime repr in stdlib for gc:arc ( #12716 )
2019-11-25 10:13:30 +01:00
tauplus
8debf79837
fix typo in the manual ( #12723 )
2019-11-25 10:08:22 +01:00
tauplus
bfad0056ab
Fix wrong section hierarchy in the manual ( #12724 ) [backport]
2019-11-25 10:06:54 +01:00
Mamy Ratsimbazafy
1f7871ea1c
csize_t changes: pinToCpu didn't compile ( #12725 )
2019-11-25 08:42:19 +01:00
narimiran
015bec6254
Revert "ARC: another critical bugfix; temporary tuples we introduce for tuple unpackaging are not owning the data"
...
This reverts commit 8b2f8f5430 .
2019-11-24 09:50:52 +01:00
Araq
8b2f8f5430
ARC: another critical bugfix; temporary tuples we introduce for tuple unpackaging are not owning the data
2019-11-22 21:41:45 +01:00
Arne Döring
2acf74d458
delete list comprehension ( #12392 )
...
The `lc` macro is now part of `graveyard` repository.
2019-11-22 19:57:43 +01:00
Araq
c85e266d1d
ARC: yet another silly bugfix
2019-11-22 17:18:11 +01:00
Jack Tang
f0c5d99924
index out of bounds exception when data is empty ( #12428 )
2019-11-22 15:37:59 +01:00
b3liever
5bb6c67a45
add collect macro ( #12708 )
...
* add collect macro
* Add to changelog
2019-11-22 14:40:50 +01:00
Andreas Rumpf
e5478b32a8
fixes #11863 multipart data need $ ( #12707 )
...
* fixes #11863
* improved the code; refs #12412
2019-11-22 14:21:03 +01:00
Andreas Rumpf
64e8f050e1
implemented a new localPassc pragma ( #12706 )
2019-11-22 14:20:15 +01:00
Juan Carlos
c0eeea4f3c
Improve head comment on JS ( #12548 )
...
* Improve comment on JSGen, replace 12+ concatenations by 1 multiline string
* Peer review feedbacks https://github.com/nim-lang/Nim/pull/12548#discussion_r340051147
2019-11-22 11:37:30 +01:00
Andreas Rumpf
f7ba7c711a
added the --asm command line option for inspection of the produced assember code ( #12699 )
2019-11-21 22:53:51 +01:00
Araq
135774d92b
thavlak.nim: more idiomatic code
2019-11-21 20:01:43 +01:00
Araq
d45a736cc8
more thavlak.nim improvements
2019-11-21 16:06:04 +01:00
Araq
f07774d064
more thavlak.nim improvements
2019-11-21 16:03:44 +01:00
Araq
48eed1f522
thavlak.nim test: improved the code style
2019-11-21 15:34:45 +01:00
Jjp137
1b2c1bc64a
Remove a stray file ( #12697 )
2019-11-21 11:19:54 +01:00
Andreas Rumpf
78e02d174d
fixes #12670 [backport] ( #12693 )
2019-11-20 19:08:16 +01:00
Andreas Rumpf
c98e0e22ad
conversions to unsigned numbers are not checked anymore; implements /… ( #12688 ) [backport]
...
* conversions to unsigned numbers are not checked anymore; implements / fixes https://github.com/nim-lang/RFCs/issues/175
* change the spec yet again to be less consistent but to make more sense; updated the changelog
2019-11-20 17:08:43 +01:00
Andreas Rumpf
85ffcd80c0
more arc improvements ( #12690 )
...
* ARC: bugfix for =destroy for inherited objects
* added code useful for debugging
2019-11-20 14:34:05 +01:00
c-blake
a88004114d
Discussion both in ( #12678 )
...
https://github.com/nim-lang/Nim/pull/12600
and in
https://forum.nim-lang.org/t/5499
indicates that everyone is happy/happier with ``pop``.
This just renames the brand new ``take``s to ``pop`` and installs inline
aliases/wrappers to preserve ``Table.take`` and ``TableRef.take``.
Update apis.rst to try to maintain consistency of remove-and-return procs.
2019-11-20 08:39:45 +01:00
Andreas Rumpf
56a00da34a
fixes #12612 [backport] ( #12681 )
2019-11-19 12:09:36 +01:00
Arne Döring
03fa9a9041
fix regression in align ( #12680 )
...
* fix regression in align
* add test typesym without type
2019-11-19 09:58:47 +01:00
Andreas Rumpf
5278cf80eb
ARC: closure bugfixes ( #12677 )
...
* ARC: closure bugfixes
* progress
* ARC closures: create =hooks for captured parameters
* ARC: always destroy constructions like tuples, arrays properly, even in edge cases
* fixes a regression
2019-11-18 12:33:44 +01:00
Dominik Picheta
bab5351d43
Fixes ambiguity errors when evaluating Nimble files. ( #12674 ) [backport]
...
When trying to evaluate a Nimble file which imports a Nim module
I was getting the following errors for some reason:
```
/Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: ()
```
2019-11-18 09:26:06 +01:00
Andreas Rumpf
223e65e529
attempt to add valgrind support to the CIs and testament ( #12646 )
...
* attempt to add valgrind support to the CIs and testament
* valgrind (currently) works only on 64-bit Linux
2019-11-18 09:10:48 +01:00
Andreas Rumpf
58f3e07b1a
fixes and changes the recently introduced 'alignas' to be 'align' ( #12666 )
...
* fixes and changes the recently introduced 'alignas' to be 'align'
* more improvements
2019-11-15 20:24:14 +01:00
Juan Carlos
9c46526cfa
Fix htmlgen html lang ( #12668 ) [backport]
...
* Fix HTMLGen enable lang on html tag
2019-11-15 20:23:03 +01:00
Gampol T
83b7656c0e
fixes #12319 - change exception handling for finish.exe ( #12413 )
...
* documented behaviour of recv on bufferd socket
* fixes #12319- check exception using errorCode
2019-11-15 13:28:55 +01:00
Andreas Rumpf
76179cbec2
ARC: fixes leaking new() statement ( #12665 )
2019-11-15 12:38:11 +01:00
Miran
107b40f097
remove two asserts in int128.nim ( #12648 ) [backport]
...
Before this PR, `tests/misc/tconv.nim` fails when the compiler
is compiled without `-d:danger` flag.
Bear in mind that even without the asserts, the values outside of
a given range are still checked and a meaningful error message
(from `compiler/semexprs.nim`) is printed.
2019-11-15 12:37:43 +01:00
David Krause
ffca3eefb5
fix documentation of $*(dt: DateTime) ( #12660 )
...
(cherry picked from commit 39122ecd93 )
2019-11-15 08:06:26 +01:00
Andreas Rumpf
a14abc5708
ARC: solves phase ordering problems ( #12654 )
2019-11-14 23:19:18 +01:00