Commit Graph

14983 Commits

Author SHA1 Message Date
Tomohiro
cd3a58d7b0 bitops: add reverseBits and test (#10835) 2019-03-13 15:53:40 +01:00
Miran
091da5c979 testament: catch failing nimble tests (#10832)
* testament: catch failing nimble tests and clean up a bit
* fix name collision
2019-03-13 11:52:15 +01:00
cooldome
d8c3df2683 fixes #10805 (#10806) 2019-03-13 10:23:06 +01:00
sealmove
ab872be476 Added nimscript support to repl (#10834)
* added nimscript support to repl
* added bool parameter to runRepl en/disabling nimscript support
2019-03-13 10:21:24 +01:00
cooldome
8ceba8a7f3 fixes #10807 (#10814)
* fixes  #10807
* use nkAddr instead of nkHiddenAddr
2019-03-12 13:45:05 +01:00
cooldome
ea3e18bc6c fixes dce regression #10703 (#10820)
* fixes #10703

* emit frame defines once
2019-03-12 08:24:17 +01:00
Dominik Picheta
3e04afda9f Merge pull request #10823 from narimiran/json-tuples
simplify json.% for tuples and objects
2019-03-11 21:38:42 +00:00
Arne Döring
35aab357e2 Less warnings in macros (#10799) 2019-03-11 19:21:39 +01:00
narimiran
863848ad56 simplify json.% for tuples and objects 2019-03-11 16:51:06 +01:00
Miran
06f23572d0 system: some documentation improvements (#10809) 2019-03-11 11:04:08 +01:00
narimiran
44d47134f9 Revert "Follow the documentation's recommendation (#10808)"
This reverts commit 1a13b3a14e.
2019-03-10 20:09:35 +01:00
sealmove
92cd07be8b Fixed order of output in repl and added a proc for opening a custom repl (#10802) 2019-03-10 20:02:47 +01:00
zah
b9f8528db6 Don't include the nimhcr dev docs in the system module documentation (#10759) 2019-03-08 15:23:36 +01:00
Miran
bba3a20e7c documentation style tweaks (#10790)
* exports are the least important field in the docs:
  they are put in the last place (at the bottom)
* indent text after proc/type declaration for an easier navigation
  (noticeable difference between declarations and examples)
* quickfix invalid style in `asynchttpserver`
2019-03-08 13:55:26 +01:00
Alexander Ivanov
3294ce3831 Render a colon for command if last arg list (#10803) 2019-03-08 13:31:24 +01:00
Anthon van der Neut
1a13b3a14e Follow the documentation's recommendation (#10808)
The doc states "Make sure to pass options explicitly.", but the example didn't. 
Since constructing a string for the shell with appropriate quotes is non-trivial, the first example should be how to use `execProcess`  including `args`
2019-03-08 13:20:36 +01:00
Andreas Rumpf
5c201791b3 make tests green again 2019-03-07 17:11:22 +01:00
Andreas Rumpf
0a93cf6fb9 fixes the regression 2019-03-07 12:55:30 +01:00
Andreas Rumpf
5b1a2eecd5 owned refs must be moved 2019-03-07 12:50:33 +01:00
Andreas Rumpf
f8bf24623c explicit default values for a leaner codegen, .cursor variables for optimization 2019-03-07 12:50:33 +01:00
Miran
2b5e48d807 move assertions and iterators out of system.nim (#10597)
* move assertions and iterators out of system.nim
* limit nimsuggest tests to the first 3 suggestions
2019-03-07 00:49:39 +01:00
narimiran
26f48437ca better nimpy test
As discussed with @yglukhov.
2019-03-06 17:48:01 +01:00
Andreas Rumpf
3c0f01faa0 fixes #10791 2019-03-06 14:22:12 +01:00
Andreas Rumpf
32c9ca605e fixes #10795 2019-03-06 10:15:27 +01:00
Andreas Rumpf
e3e4cd9fd5 make tests green again 2019-03-06 09:26:48 +01:00
Andreas Rumpf
cfd5210405 dfa.nim: continues are bad 2019-03-06 09:00:06 +01:00
Arne Döring
2c01f0ad8d tsizeof test is now correct (#10788) 2019-03-06 08:12:16 +01:00
Dominik Picheta
63c847dc50 Merge pull request #10787 from silent-observer/patch-1
Remove var
2019-03-05 23:13:05 +00:00
Andreas Rumpf
551d6d00df make tests green again 2019-03-05 20:05:47 +01:00
Andreas Rumpf
1c64934f46 implement system.default for the JS target 2019-03-05 19:58:54 +01:00
Andreas Rumpf
4be36d77f6 introduce tfHasOwned for fast must-move checkings; removed tfAcyclic as the GC has ignored this hint for quite some time now 2019-03-05 19:58:54 +01:00
Arne Döring
20a21aa184 colors for debugging (not for windows) (#10786) 2019-03-05 19:58:14 +01:00
Andreas Rumpf
c86b1fbcac fixes a critical GC safety inference bug (#10615)
* fixes a critical GC safety inference bug
* make nimsuggest compile again
* make Nimble compile again
2019-03-05 19:54:44 +01:00
silent-observer
7e52c798db Remove var
Shouldn't testing bit require only immutable access? I think this is a typo
2019-03-05 14:19:41 +05:00
Andreas Rumpf
aed8766e84 stdlib: use system.default if it exists 2019-03-05 10:03:24 +01:00
Andreas Rumpf
142a2d3551 added system.default in order to prevent the abstraction inversion that 'template default(T): untyped = (var x: T; x)' causes 2019-03-05 09:54:59 +01:00
Andreas Rumpf
2dc8a32324 make megatest green again 2019-03-05 08:17:30 +01:00
Andreas Rumpf
22445867d4 no underscores 2019-03-05 07:45:28 +01:00
Andreas Rumpf
e0437dfec4 better error message for 'owned' 2019-03-05 06:25:33 +01:00
Andreas Rumpf
9a9c002abe make exception handling use owned refs 2019-03-05 05:54:42 +01:00
Andreas Rumpf
9c6b628df6 DFA: fixes wrong 'def' instruction emission 2019-03-05 05:54:08 +01:00
Andreas Rumpf
71fd4acaeb make test green 2019-03-05 05:53:28 +01:00
Andreas Rumpf
f907354121 make tests green again 2019-03-04 22:44:23 +01:00
Andreas Rumpf
3e922d0fec destructors/dfa: more documentation 2019-03-04 22:41:50 +01:00
Andreas Rumpf
a59f5e5a9d attempt to make the CIs happy by using the older syntax 2019-03-04 16:48:02 +01:00
Andreas Rumpf
55bc29c761 nimsuggest: make use project file name if none given for 'sug' command; allows for more convenient debugging 2019-03-04 15:41:07 +01:00
Andreas Rumpf
75f8e136e1 ccgexprs.nim: less confusing code layout 2019-03-04 15:41:07 +01:00
Andreas Rumpf
4700018d7e cgen.nim: code cleanups 2019-03-04 15:41:07 +01:00
Andreas Rumpf
a6d49c3a81 special typing rules for owned pointers 2019-03-04 15:41:07 +01:00
Andreas Rumpf
0fd5417aff code cleanup: there is no MoveError and sinks are always available 2019-03-04 15:41:07 +01:00