narimiran
f4149ae535
Closes #6986
2018-10-28 11:30:41 +01:00
Flaviu Tamas
9ca1c2c930
Eliminate floating point arithmatic in nre
...
Integer division is already hard enough on your CPU, using floating
point here is WAY slower and can just as effectivly be done using
integers. This is important because matchImpl tends to be in the center
of very hot loops (like split()).
2018-10-28 00:53:09 -04:00
Andrii Riabushenko
2f781781d0
update changelog
2018-10-27 23:15:24 +01:00
David Krause
f2cd8ed99a
fixes #7842 if no uri.scheme specified raise ValueError with hint ( #7846 )
...
* fixes #7842 if no uri.scheme specified on request rais ValueError with hint
Signed-off-by: enthus1ast <david@code0.xyz >
* Update httpclient.nim
2018-10-27 21:54:45 +01:00
citycide
4362ba7293
docs: clarify asyncCheck vs waitFor
2018-10-27 18:04:25 +01:00
Kaushal Modi
f8cef575b3
Improve dumpLisp macro ( #9515 )
...
* Improve dumpLisp macro
- Remove commas from the lisp representation of the AST.
- Make the dumpLisp output "pretty" and indented.
- Improve docs of `dumpTree` and `dumpLisp` macros.
With:
dumpLisp:
echo "Hello, World!"
Output before this commit:
StmtList(Command(Ident("echo"), StrLit("Hello, World!")))
Output after this commit:
(StmtList
(Command
(Ident "echo")
(StrLit "Hello, World!")))
* Re-use the traverse proc inside treeRepr for lispRepr too
- Add module-local `treeTraverse` proc.
- Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents.
* More doc string updates
* Allow unindented lispRepr output for tests
* Update a test affected by the lispRepr change
* Fix dumpTree
* Add note about lispRepr and dumpLisp to changelog [ci skip]
2018-10-27 14:10:05 +01:00
Andreas Rumpf
dd252ce640
nimpretty tester: strengthen the comparison, do not use strip
2018-10-26 01:54:09 +02:00
Andreas Rumpf
03005fde99
nimpretty: fixes #9506
2018-10-26 01:53:10 +02:00
Andreas Rumpf
0c3e6735ac
fixes #9358
2018-10-26 01:25:06 +02:00
Mamy Ratsimbazafy
5b97762787
Openmp parallel iterator improvements ( #9493 )
...
* More flexibility in OpenMP pragma
* Use static to constrain to compile-time annotation string
* Update changelog with OpenMP change
2018-10-25 18:09:35 +02:00
Araq
c844a9169c
fixes #9498 , typeof is for everybody
2018-10-25 13:04:51 +02:00
Araq
8fbdac544b
correct tnoop test case
2018-10-25 13:04:17 +02:00
Araq
87d60b2a4b
nimpretty: fixes #9500
2018-10-25 11:48:06 +02:00
Araq
0afca3dd6b
nimpretty: fixes #9504
2018-10-25 11:18:03 +02:00
Araq
eb2e494a52
fixes #9507
2018-10-25 11:08:46 +02:00
Andreas Rumpf
5fd2827ab6
nimpretty: fixes #9499
2018-10-25 07:52:27 +02:00
Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
Andrii Riabushenko
4c53d45674
Merge branch 'devel' into vm_float_casts
2018-10-24 22:16:25 +01:00
Andreas Rumpf
f5a2c6e19d
make tests green again
2018-10-24 22:29:01 +02:00
Andreas Rumpf
9331f06c0b
parsutils: minor doc improvements
2018-10-24 21:52:33 +02:00
Andrii Riabushenko
a54e0703a9
Add test
2018-10-24 20:29:51 +01:00
Araq
963292f725
added system.typeof operation; fixes #9093
2018-10-24 17:09:51 +02:00
Araq
e7e75224a2
nimpretty: closes #9484
2018-10-24 15:22:28 +02:00
Araq
06a6433db7
nimpretty: test for idempotence; fixes #9483
2018-10-24 15:19:29 +02:00
genotrance
8500076651
Make Windows cross-compilation simpler ( #9485 )
2018-10-24 13:12:08 +02:00
Arne Döring
eb6225ad8c
fixes #9276 ( #9317 )
2018-10-24 13:10:44 +02:00
Andrii Riabushenko
bd68d3d8f4
improve style
2018-10-24 11:26:32 +01:00
Andrii Riabushenko
a7c9533a73
Add int float casts to vm
2018-10-24 11:24:23 +01:00
LemonBoy
16d82c82e3
Remove a hack in the destroyer impl ( #9479 )
...
Generate nkHiddenAddr nodes w/ proper type attached.
2018-10-24 09:11:46 +02:00
Araq
3ee53a7c8e
nimpretty: fixes #8078
2018-10-24 00:59:57 +02:00
Araq
e3a0415650
nimpretty: fixes #9398
2018-10-24 00:53:41 +02:00
Araq
72370c8dfa
closes #9400
2018-10-23 17:52:18 +02:00
Araq
695074214b
nimpretty: minor bug fix
2018-10-23 17:52:18 +02:00
Araq
00f84d3d22
tar.xz building: also ship with the moved testament tool
2018-10-23 17:52:18 +02:00
loongw
4841fc5356
\#include "windows.h" instead of "Windows.h" ( #9475 )
...
This fixes #9474
2018-10-23 15:50:11 +02:00
Oscar Nihlgård
16c3d4332f
Fix infinite loop with nim check ( #9448 )
2018-10-22 17:24:14 +02:00
LemonBoy
b613092de8
Don't crash if GC_{un,}ref is called on nil ( #9445 )
...
Fixes #9442
2018-10-22 17:09:15 +02:00
cooldome
9c88df220a
Compile pragma. Recompile on external file compilation failure ( #9455 )
2018-10-22 12:49:57 +02:00
Arne Döring
0dd3038a39
Merge pull request #9460 from recloser/fix-printing-uninitialized-strings
...
Fix printing and comparing uninitialized strings on JS
2018-10-22 08:26:53 +02:00
recloser
2b03bed2db
Fix printing and comparing uninitialized strings
2018-10-21 21:18:10 +02:00
Arne Döring
ce05a850a5
Merge pull request #9457 from Vindaar/fixes-9456
...
Fixes #9456
2018-10-20 21:57:17 +02:00
Vindaar
557fa85e02
add test case
2018-10-20 20:36:32 +02:00
Vindaar
e190f485ae
fixes #9456 by only calling c_fclose if non nil
2018-10-20 20:35:04 +02:00
Dominik Picheta
863d3ef4ed
Merge pull request #9446 from GULPF/times-32
...
Fix times 32-bit issue
2018-10-19 23:24:47 +01:00
Oscar Nihlgård
81f5427ed4
Fix times 32-bit issue
2018-10-19 22:33:40 +02:00
LemonBoy
5afcd09cb3
Pervasive replacement of nkRecWhen in generic types
...
Long story short, even if the type contains no reference at all to its
generic parameters we still have to walk its AST and evaluate any
nkRecWhen nodes that semRecordNodeAux skipped due to the type being a
generic one.
We also must be careful to modify the type `n` node in place since it
may be referenced by the caller as seen in the tillegaltyperecursion
test.
Moreover we also can't have the nkSym drift away from their original
values in order not to break the JS nkObjConstr codegen.
2018-10-19 22:17:38 +02:00
LemonBoy
16a70c84aa
Fixes 6544 ( #9427 )
...
* Fix call to converters with var/lent args
Fixes #6544
* Fix printing of lent types
* lent is only valid for result types
2018-10-19 21:04:32 +02:00
Timothee Cour
d0dd5ea887
[doc] add tips to doc/contributing.rst: git, code review, CI ( #9429 )
2018-10-19 21:03:25 +02:00
cooldome
b1ff37c08f
Transf minor code optimization ( #9433 )
2018-10-19 20:17:30 +02:00
Miran
fc625091e0
Update issue templates
...
Create `bug report` and `feature request` templates.
2018-10-19 16:52:14 +02:00