cheatfate
e84efc4d01
asyncdispatch exception memory leaks fixes.
2017-01-27 12:14:53 +02:00
cheatfate
4b95819146
Fix #5290 .
...
Some cosmetic changes.
2017-01-27 11:08:57 +02:00
Yuriy Glukhov
c8dcf8993f
Added heapqueue.del ( #5289 )
2017-01-27 08:22:17 +01:00
cheatfate
6caefcc573
oops.
2017-01-26 18:41:22 +02:00
cheatfate
78e3bd392c
Fix changes table must be SharedArray when hasThreadSupport.
2017-01-26 18:28:34 +02:00
Andreas Rumpf
303c49b9f3
memory tracker is aware of threads (still not threadsafe though)
2017-01-26 11:26:02 +01:00
David Krause
b20817c3fb
added default param to strtabs.getOrDefault ( #5280 )
2017-01-26 10:34:02 +01:00
Jeff Ciesielski
74ae66ddbc
Add volatile load/store ( #5263 )
...
Adds volatile load/store capability to the impure part of the standard
library. Note that this currently only supports numerical types.
Should resolve https://github.com/nim-lang/Nim/issues/3382
2017-01-25 20:02:19 +01:00
Ruslan Mustakov
35d48765fb
Use onThreadCreation to set default SSL context for each thread ( #5265 )
...
Fixes : #4998
2017-01-23 21:04:14 +01:00
Dominik Picheta
9e723166fe
Merge pull request #5250 from yglukhov/http-redirect
...
Redirects support in request proc
2017-01-21 11:48:50 +01:00
Dominik Picheta
e634ee858c
Merge pull request #5255 from enthus1ast/devel
...
added isAbsolute to uri.nim
2017-01-21 11:44:52 +01:00
enthus1ast
f2ce8eb372
more isAbsolute tests for uri.nim
...
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:54:38 +01:00
enthus1ast
46ac235715
added protocol-relative test to uri.nim
...
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:40:09 +01:00
Vladar4
ea4397fbb0
fixed bug when the first random(max: float) call is the same value, regardless of randomize() ( #5257 )
2017-01-20 19:35:20 +01:00
Araq
cdebcf23d9
new segfaults.nim stdlib module works on Windows
2017-01-20 17:08:11 +01:00
Andreas Rumpf
7ff80cc8b2
first implementation of segfaults stdlib module
2017-01-20 12:40:54 +01:00
Yuriy Glukhov
2f320fb286
Fixed query and anchor during relative redirection
2017-01-20 12:59:13 +02:00
enthus1ast
9626919cd3
added isAbsolute to uri.nim
2017-01-20 00:45:44 +01:00
Yuriy Glukhov
b2237678fb
Redirects support in request proc
2017-01-19 17:44:53 +02:00
Yuriy Glukhov
fe0291f127
Import ospaths instead of include ( #5233 )
...
* Import ospaths instead of include
* searchExtPos made public
2017-01-18 20:17:53 +01:00
Loris Pederiva
9b0b079634
Fix nativesockets.select()
2017-01-18 09:42:56 +01:00
jlp765
704eae8495
re additions for buffer (cstring) RE matching ( #5117 )
...
* Replace expr with untyped
* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()
* make the string variants call the cstring variants in order to fight code size
* Remove redundant proc
* fix casting of cstring
add init of variables (identified by verbosity:3)
* Speed up - use pattern.e for exec()
inline some procs
2017-01-16 15:55:15 +01:00
Eugene Kabanov
108f5e688e
Fix #5128 , #5184 . ( #5214 )
...
* Fix #5128 , #5184 .
Removed flush() procedure from ioselectors.nim
Changed methods of work with application-driven data
* Make cache switch for kqueue, update test for it.
* Fix registerProcess bug returns wrong id.
Fix tupcoming_async test to compile with upcoming again.
Change socket() as unique identifier to dup(socket) as unique identifier.
2017-01-16 14:01:40 +01:00
MednauN
f8736dcfb7
Fixed Mersenne Twister ( #5227 )
2017-01-16 13:35:43 +01:00
Dmitriy Fomichev
d356c37185
Workaround for the high cpu usage issue in coroutines on linux ( #5186 )
...
Fixes high cpu usage when all coroutines are asleep
2017-01-11 10:01:03 +01:00
Parashurama
d04ca6ef23
Improve & optimize strutils 'find' procs ( #5196 )
...
* add 'last' argument to 'find' procs in strutils
* add 'rfind' proc for looking up set[char] in strutils
* use optimised C function 'memchr' when available
2017-01-11 09:48:31 +01:00
Lolo Iccl
abe5cb82a0
Fix for #5134 (parseJson(string) should fail on leftover data) ( #5203 )
2017-01-11 06:50:18 +01:00
Andreas Rumpf
767524d62a
random.shuffle now takes an openArray proc
2017-01-11 06:13:27 +01:00
Benjamin Summerton
17c62bb545
Documented shuffle from random module ( #5204 )
2017-01-11 06:05:41 +01:00
Luke Diamand
de7f42a741
asynchttpserver: import json in the example code
...
The example code won't compile unless json is imported, because
of the use of the %* operator. This can trip-up inexperienced
Nim developers.
2017-01-10 20:39:29 +00:00
Araq
6acfbb9e1d
make random.nim work for the JS target again
2017-01-08 14:00:52 +01:00
Araq
13649778c1
random.nim: added shuffle proc; fixes 'mod' bias
2017-01-08 00:53:23 +01:00
Araq
92ecbc9958
fixes #5179
2017-01-07 03:05:48 +01:00
Araq
5a64e1a531
random.nim: add a warning about crypo; refs #5047
2017-01-07 00:31:03 +01:00
Andreas Rumpf
edf2a57a70
Merge pull request #5188 from trustable-code/patch-2
...
fixes #4804
2017-01-07 00:27:53 +01:00
Simon Krauter
45c251cb1d
fixes 4804
...
toTime(): Use the Windows-specific part for every OS, because it gives correct results on Linux too. The removed code for Linux gives wrong results.
2017-01-06 23:29:20 +01:00
Arne Döring
9547bcbb88
get rid of immediate macros in htmlgen module
2017-01-06 22:54:25 +01:00
Dominik Picheta
76bc890e36
Fixes bootstrapping.
2017-01-06 15:02:09 +00:00
Araq
36964d7491
findExe finds cmd and bat files; refs #5049
2017-01-06 14:07:47 +01:00
Dominik Picheta
864946afb8
Add async IO overview to asyncnet module docs.
2017-01-06 12:43:37 +00:00
Araq
75b7756d79
fixes #4948
2017-01-06 13:21:59 +01:00
Andreas Rumpf
86ea5ea92c
Merge pull request #5141 from c-blake/devel
...
Add a proc `==` for MemSlice.
2017-01-06 13:15:10 +01:00
Andreas Rumpf
fb14ec9aae
Merge pull request #5180 from Parashurama/optimize_byteswapping
...
optimize byte-swapping in endians.nim
2017-01-06 10:53:56 +01:00
Andreas Rumpf
0dde24fd98
Merge pull request #5138 from vegansk/4775-args
...
Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
2017-01-06 10:49:02 +01:00
Parashurama
d7778b5e8b
optimize byte-swapping in endians.nim
...
add support for GCC, CLANG, ICC & VCC builtins for faster byte-swapping.
should compile to single assembly instruction ie BSWAP or equivalent.
2017-01-05 15:13:57 +01:00
Araq
adb8a816c1
distros.nim: don't lose the information that we don't know the distro's package manager (yet)
2017-01-03 17:06:31 +01:00
Araq
70708219c9
distros.nim: also try 'lsb_release -a'
2017-01-03 17:06:31 +01:00
Federico Ceratto
a8c439afb5
Add OptReuseAddr to example and handle closing
2017-01-02 17:02:20 +00:00
Andreas Rumpf
f6c2c4a6a0
distros.nim: better documenation
2016-12-31 10:19:34 +01:00
Araq
763c783bdf
added distros.nim stdlib module for NimScript/Nimble support
2016-12-31 02:04:27 +01:00