Yuriy Glukhov
1b4fc744db
Fixed bad JS codegen for new json with tables. Added json to JS tests.
2016-02-29 17:53:52 +02:00
Federico Ceratto
d9cb85c2d8
Spellcheck
2016-02-29 11:25:51 +00:00
Konstantin Zaitsev
6f0cab7060
Added checks for CPP
2016-02-28 17:25:12 +06:00
def
ef1d771cf2
Export tables.$ in json module
2016-02-27 23:58:14 +01:00
Anatoly Galiulin
5cfb653094
Fixed issue 3905 with getTimezone in js
2016-02-26 16:17:38 +06:00
Andreas Rumpf
cce64c3357
Merge pull request #3810 from def-/json-speedup
...
Use tables instead of seqs for json objects
2016-02-25 20:16:58 +01:00
Konstantin Zaitsev
2693179834
Fixed THINSTANCE declaration in dynlib.nim for VS compiler
2016-02-25 15:03:02 +06:00
def
7177e0058b
Consistently use Channel instead of TChannel
2016-02-25 04:04:45 +01:00
def
887a8d1f0a
Annotate hash with {.noSideEffect.}
2016-02-24 19:03:55 +01:00
def
9aecdb587b
Initialize JObject fields with capacity 4 by default to save memory and improve performance
2016-02-24 19:03:55 +01:00
def
129499d8e9
Use tables instead of seqs for json objects
...
Significant speedup for some operations, fixes #3809
Not tested very well yet
2016-02-24 19:03:55 +01:00
Dominik Picheta
3762a47cc4
Remove debug echo introduced in #3896 .
2016-02-24 00:00:20 +00:00
def
9afe2c1d8f
Fix redirection in httpclient ( fixes #3895 )
2016-02-23 15:18:17 +01:00
def
41e1f3241b
Fix building documentation in releases ( fixes #3823 )
2016-02-21 14:52:26 +01:00
Andreas Rumpf
73291aa1bc
Merge pull request #3781 from rgv151/patch-net-gc-safe
...
[net/httpclient] make it gc-safe #2692
2016-02-06 15:26:07 +01:00
Andreas Rumpf
981974ab11
Merge pull request #3831 from ephja/nimrod-to-nim
...
nimrod -> nim
2016-02-06 15:24:09 +01:00
Andreas Rumpf
03f4aa23d7
Merge pull request #3106 from def-/deprecation
...
Fix a few deprecation warnings
2016-02-06 15:22:19 +01:00
def
62955292f2
Revert removal of raiseOSError
2016-02-06 13:51:51 +01:00
def
11f055c652
Fix json.%* for empty objects
2016-02-06 03:29:09 +01:00
def
bf8e371d7e
Revert raiseOSError change
2016-02-06 01:29:12 +01:00
Erik Johansson Andersson
f8d98700ac
nimrod -> nim
2016-02-05 19:11:43 +01:00
Andreas Rumpf
cf9d8d6bba
Merge pull request #3814 from scriptum/fix-3802
...
Use defer in iterator to avoid possible leaks
2016-02-05 03:30:48 +01:00
Pavel Roschin
17dff030ae
Use defer in iterator to avoid possible leaks. Fixes #3802
2016-02-02 23:20:39 +03:00
Andreas Rumpf
ec1abdef97
fixes #3789
2016-01-31 01:32:09 +01:00
Bruce Doan
4a3a9d8ab8
export parseIpAddress proc
2016-01-27 00:07:31 +07:00
Bruce Doan
443ec02a92
make it gc-safe #2692
2016-01-26 23:06:15 +07:00
def
c10d963e85
bindaddr raises ValueError exception instead of OSError
2016-01-26 16:16:55 +01:00
Andreas Rumpf
1fbeedaba2
Merge branch 'devel' of https://github.com/nim-lang/Nim into devel
2016-01-26 12:46:38 +01:00
Andreas Rumpf
d338744d7a
os.findExe on Windows can deal with quotes
2016-01-26 12:43:07 +01:00
def
c50b5b62ef
Fix a few deprecation warnings
2016-01-25 19:10:37 +01:00
def
4246f660ea
Only use execvpe on linux, execvp elsewhere ( fixes #3759 )
2016-01-24 19:18:16 +01:00
Andreas Rumpf
732479b797
Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warning
...
Improve warning msg when -d:profiler not passed
2016-01-22 00:00:14 +01:00
Nick Greenfield
5e8762c21e
Improve warning msg when -d:profiler not passed
...
Partially addresses #3741
2016-01-21 13:49:13 -08:00
Yuriy Glukhov
df211b24fd
Dont convert string to cstring when writing to stream.
2016-01-21 11:41:52 +02:00
Bruce Doan
863dd62bc4
Merge branch 'master' of https://github.com/Araq/Nim into patch-global-log-level
2016-01-20 22:40:32 +07:00
Hans Raaf
0634486689
Fixed deprecation warnings while Nim compiles.
...
I just removed unsigned and changed a writeLn() call to writeLine() to
avoid the remaining deprecation warnings.
2016-01-18 18:14:50 +01:00
Dominik Picheta
d79a5f5276
Added missing modules to lib.txt and warnings to some module's docs.
2016-01-18 15:33:39 +00:00
Andreas Rumpf
b0aaeaa436
Merge pull request #3703 from singularperturbation/feature/counttableref_getordefault
...
Fix CountTableRef#getOrDefault (#3702 )
2016-01-18 14:30:14 +01:00
Andreas Rumpf
9fad7c4c2b
Merge pull request #3519 from jlp765/stats1
...
stats.nim pure library (moved from math lib to new lib)
2016-01-17 21:56:11 +01:00
Andreas Rumpf
2c2ab6884c
fixes strutils.unescape; refs #3634
2016-01-17 21:29:25 +01:00
Andreas Rumpf
dda01cb726
Merge branch 'devel' of https://github.com/nim-lang/Nim into devel
2016-01-17 20:30:08 +01:00
Dominik Picheta
eb1bedc3c2
Removed redis module from standard library.
2016-01-16 14:58:12 +00:00
Andreas Rumpf
0d4e52c648
makes tests green
2016-01-15 14:44:54 +01:00
Andreas Rumpf
1124c61c49
Merge branch 'devel' into new-ll
2016-01-14 15:01:55 +01:00
Sloane Simmons
aa0d65ed70
Fix CountTableRef#getOrDefault
...
Fixes issue with CountTableRef and getOrDefault:
```{nimrod}
import tables
proc main() =
const testKey = "TESTKEY"
let t: CountTableRef[string] = newCountTable[string]()
# Before, does not compile with error message:
#test_counttable.nim(7, 43) template/generic instantiation from here
#lib/pure/collections/tables.nim(117, 21) template/generic instantiation from here
#lib/pure/collections/tableimpl.nim(32, 27) Error: undeclared field: 'hcode'
echo "Count of " & testKey & " is " & $t.getOrDefault(testKey)
t.inc(testKey,3)
echo "Count of " & testKey & " is " & $t.getOrDefault(testKey)
when isMainModule:
main()
```
Previously, `getOrDefault` for CountTableRef objects was calling the
`getOrDefaultImpl` template, which used the t.data.hcode object -
assuming a Table or similar object. Because CountTableRef didn't have
an hcode in its data tuples, this wouldn't compile. Changed to be the
same as `CountTable#getOrDefault`.
2016-01-09 21:46:47 -06:00
Dominik Picheta
fffdae32c7
Fixed TimeInterval bug.
2016-01-08 11:54:34 +00:00
Dominik Picheta
09b159b816
Fixed ttime test. Improved docs in times module.
2016-01-08 11:46:11 +00:00
Dominik Picheta
596d400825
Merge branch 'times_intervals' of https://github.com/jlp765/Nim into jlp765-times_intervals
2016-01-08 11:12:16 +00:00
Andreas Rumpf
cd707084d1
fixes calling convention for the callbacks
2016-01-08 12:08:32 +01:00
Yuriy Glukhov
589132065e
Lexbase compatible with JS
2016-01-06 16:38:27 +02:00