Commit Graph

18917 Commits

Author SHA1 Message Date
Andreas Rumpf
5298a72f34 NimScript: added buildOS and buildCPU constants 2017-09-22 13:29:45 +02:00
Andreas Rumpf
07531b41b9 make gc:v2 compile again 2017-09-22 11:12:14 +02:00
Andreas Rumpf
dcfafb3289 Merge branch 'araq-better-pure-enums' into araq-better-codegen 2017-09-22 10:15:49 +02:00
Andreas Rumpf
fe99495a9b new string behaviour now available under nimShallowStrings 2017-09-22 10:15:30 +02:00
Andreas Rumpf
c383e4d35e preparations for string optimizations 2017-09-22 09:57:18 +02:00
Andreas Rumpf
3936587c06 fixes #6403 2017-09-21 21:07:18 +02:00
Andreas Rumpf
1c0c9d8959 make tests green again 2017-09-21 21:07:00 +02:00
Andreas Rumpf
7db5bad016 revert accidentical asyncmacro change 2017-09-21 21:05:58 +02:00
Andreas Rumpf
405b9c8a85 refactoring: TLoc knows the node it originated from; it is planned to use this to produce better C code (move optimizations) 2017-09-21 14:38:45 +02:00
Andreas Rumpf
a04c7d8b38 introduce OnHeapNew and rename TLoc.s to TLoc.storage 2017-09-21 11:38:04 +02:00
wt
92d67262fb Fix getPeerAddr() getPeerAddr(): +sin6_addr (#6410) 2017-09-21 10:22:34 +02:00
jlp765
dabe4aed86 documentation improvement; make mixin easier to search (#6409) 2017-09-21 09:48:49 +02:00
GULPF
cc24b6d4cb Sets enhancements, fixes #2467 (#6158) 2017-09-20 13:44:44 +02:00
Andreas Rumpf
fd4ef6ae8f .pure enums are much more convenient to use now 2017-09-17 17:36:37 +02:00
ephja
ea47234b35 Array typedesc len (#6032) 2017-09-17 15:48:02 +02:00
Daniil Yarancev
ae7fe5087f Closes #6083, closes #6086, closes #6379 (#6392) 2017-09-16 22:54:32 +02:00
Mamy Ratsimbazafy
5b8f33a905 Reorder json add and %, fixes #6385 (#6388)
* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385

* rename json test files
2017-09-16 19:09:44 +01:00
Andreas Rumpf
12af4a3f8a prepared stdlb for new integer arithmetic rules 2017-09-16 10:57:21 +02:00
Andreas Rumpf
e7bcadaf32 hotfix: fixes seq.add and str.add for edge cases 2017-09-16 10:56:28 +02:00
Andreas Rumpf
2b592a6425 in prepration for the upcoming different integer inference rules 2017-09-16 10:29:29 +02:00
Andreas Rumpf
28bdf0ac80 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-09-16 10:11:42 +02:00
Emery Hemingway
9258672cee balance Genode CPU pinning, deadlock at Genode exit (#6317)
* Genode: balance thread CPU affinities
Genode threads are pinned by defaut to the same CPU as the initial
component entrypoint thread. Thread affinities are also permanent. This
patch pins new threads to CPUs in a round-robin manner. Arbitrary CPU
pinning is not exposed and the 'nimPinToCpu' has no effect.

* Genode: guarantee that 'quit' will not return
On Genode exits are handled by whatever component is acting as parent.
The caller has no guarentee that the parent implementation will halt the
caller's threads, so explicitly deadlock the 'quit' procedure.
2017-09-16 08:02:59 +02:00
Andreas Rumpf
662f043b59 development version is odd 2017-09-15 22:18:39 +02:00
superfunc
248caaf27e Update docs on assignment operator (#6373) 2017-09-15 21:49:00 +02:00
Andreas Rumpf
fc7961d4cc make tests green again 2017-09-15 21:32:50 +02:00
Andreas Rumpf
ecf1424456 Merge branch 'devel' into araq 2017-09-15 21:12:59 +02:00
Andreas Rumpf
0fe2a83dda make tests green again 2017-09-15 21:12:36 +02:00
Lyndsy Simon
8ea78b1bc9 db_postgres: Refactor open() behavior to be consistent with other DBs (#6381) 2017-09-15 16:56:08 +02:00
Andreas Rumpf
053b0ad6f3 Merge branch 'araq' of github.com:nim-lang/Nim into araq 2017-09-15 16:08:16 +02:00
Parashurama
88a5e9d88c Fix operations on string as openarray in VM. (#6257)
* fix openarray.len for string as openArray in VM.
* fix openarray[idx] for string as openArray in VM.
* fix openarray[idx]=val for string as openArray in VM.
* add tests for passing string as openArray in VM.
* fix issue with NimNode.len
NimNode.len was also returning len for string literals.
also fix logic bug in if/elif chain.
2017-09-15 13:35:57 +02:00
Denis Rumyantsev
71b1377be9 Update memfiles.nim (#6328)
FIX error in MemFile fileSize
2017-09-15 12:50:10 +02:00
Yuriy Glukhov
7d49fc796d Changed JSON stringification to preserve UTF (#6330) 2017-09-15 10:53:58 +02:00
Federico Ceratto
034e6a3468 Fix spelling error (#6349) 2017-09-15 10:49:57 +02:00
superfunc
d1f6ddfd64 Add counterpart to containsOrIncl for excl (#6360) 2017-09-15 10:49:32 +02:00
superfunc
387c88d87b Document inclusiveness of Slices (#6362) 2017-09-15 10:47:21 +02:00
Simon Krauter
94e336fe85 Fix wrong result of countLines() (#6371) 2017-09-15 10:45:22 +02:00
superfunc
bca3bedc47 Handle failed uri parsing in asynchttpserver (#6374) 2017-09-15 10:41:12 +02:00
Andreas Rumpf
50ae228e25 closes #5854 2017-09-15 10:30:58 +02:00
Andreas Rumpf
9c513de2ae update Nim's version 2017-09-15 09:57:12 +02:00
Andreas Rumpf
8432eb6e67 make bootstrapping work under the new integer promotion rules 2017-09-15 09:56:30 +02:00
Andreas Rumpf
39f0195ebf Merge branch 'devel' into araq 2017-09-15 09:27:51 +02:00
GULPF
9aeb78e2a8 Corrected manual (Identifier equality) (#6366)
* Corrected manual (Identifier equality)
- Clarified that identifiers are only case insensitive for ASCII characters
- Removed mention of dash-style, since it has been removed
2017-09-11 17:31:07 +02:00
Yuriy Glukhov
c35cc97b1e Fixed closure compiler incompatibility (#6365) 2017-09-11 17:29:59 +02:00
Tristan B. Kildaire
3c870d3bb9 remove stupid shell dollar signs that make copypasta hard (#6354) 2017-09-11 09:11:55 +02:00
Dominik Picheta
80b61a9946 Merge pull request #6357 from superfunc/obj_variant_ctor_order_test
Add test for objvariant construction order
2017-09-10 18:56:10 +01:00
superfunc
0ce26313a4 Add test for objvariant construction order
Fixes #4665
2017-09-09 15:45:19 -07:00
Dominik Picheta
3bf8ced69e Merge pull request #6351 from lcrees/patch-5
Support `in` operator on StringTableRef
2017-09-08 22:55:25 +01:00
Lynn C. Rees
5b2125dc3a Support in operator on StringTableRef 2017-09-08 11:09:58 -06:00
Fredrik Høisæther Rasch
811fbdafd9 Revert usage of non-standard uname -o command in build.sh (#6342) v0.17.2 2017-09-07 08:29:38 +02:00
Federico Ceratto
ca0de9a54d Improve TimeInterval docs #6135 (#6341) 2017-09-07 08:29:20 +02:00