summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3781 from rgv151/patch-net-gc-safeAndreas Rumpf2016-02-061-94/+95
|\ | | | | [net/httpclient] make it gc-safe #2692
| * export `parseIpAddress` procBruce Doan2016-01-271-1/+1
| |
| * make it gc-safe #2692Bruce Doan2016-01-261-93/+94
| |
* | Merge pull request #3831 from ephja/nimrod-to-nimAndreas Rumpf2016-02-063-3/+3
|\ \ | | | | | | nimrod -> nim
| * | nimrod -> nimErik Johansson Andersson2016-02-053-3/+3
| | |
* | | Merge pull request #3106 from def-/deprecationAndreas Rumpf2016-02-065-12/+10
|\ \ \ | | | | | | | | Fix a few deprecation warnings
| * | | Revert removal of raiseOSErrordef2016-02-061-2/+1
| | | |
| * | | Revert raiseOSError changedef2016-02-061-2/+1
| | | |
| * | | bindaddr raises ValueError exception instead of OSErrordef2016-01-261-1/+1
| | | |
| * | | Fix a few deprecation warningsdef2016-01-256-14/+14
| | | |
* | | | Fix json.`%*` for empty objectsdef2016-02-061-3/+7
| | | |
* | | | Merge pull request #3814 from scriptum/fix-3802Andreas Rumpf2016-02-051-4/+4
|\ \ \ \ | |_|/ / |/| | | Use defer in iterator to avoid possible leaks
| * | | Use defer in iterator to avoid possible leaks. Fixes #3802Pavel Roschin2016-02-021-4/+4
| | |/ | |/|
* / | fixes #3789Andreas Rumpf2016-01-311-1/+1
|/ /
* | Merge branch 'devel' of https://github.com/nim-lang/Nim into develAndreas Rumpf2016-01-263-10/+12
|\|
| * Only use execvpe on linux, execvp elsewhere (fixes #3759)def2016-01-241-8/+7
| |
| * Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warningAndreas Rumpf2016-01-221-1/+1
| |\ | | | | | | Improve warning msg when -d:profiler not passed
| | * Improve warning msg when -d:profiler not passedNick Greenfield2016-01-211-1/+1
| | | | | | | | | | | | Partially addresses #3741
| * | Dont convert string to cstring when writing to stream.Yuriy Glukhov2016-01-211-1/+4
| | |
* | | os.findExe on Windows can deal with quotesAndreas Rumpf2016-01-261-1/+3
|/ /
* / Fixed deprecation warnings while Nim compiles.Hans Raaf2016-01-183-4/+3
|/ | | | | I just removed unsigned and changed a writeLn() call to writeLine() to avoid the remaining deprecation warnings.
* Added missing modules to lib.txt and warnings to some module's docs.Dominik Picheta2016-01-186-0/+17
|
* Merge pull request #3703 from ↵Andreas Rumpf2016-01-181-1/+13
|\ | | | | | | | | singularperturbation/feature/counttableref_getordefault Fix CountTableRef#getOrDefault (#3702)
| * Fix CountTableRef#getOrDefaultSloane Simmons2016-01-091-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* | Merge pull request #3519 from jlp765/stats1Andreas Rumpf2016-01-172-62/+348
|\ \ | | | | | | stats.nim pure library (moved from math lib to new lib)
| * | add doco for array/seq helper procsJamesP2015-11-121-0/+24
| | |
| * | added helper procs for standalone calc of stats for array/seqJamesP2015-11-121-0/+45
| | | | | | | | | | | | | | | | | | Changed derivation to use runningstats, so there is a single point of truth for the calculations, and provides more stats functions
| * | add comment to identify where RunningStat code residesJamesP2015-11-111-0/+1
| | |
| * | Removal of stats procs for openarray (use the RunningStat methodology)JamesP2015-11-111-20/+0
| | |
| * | add sum back in, fix min inital value, tidy up spaces inJamesP2015-11-071-11/+20
| | | | | | | | | | | | code and comment wording, add a sum test assertion
| * | Add RunningStat related statistics code removed from math lib,JamesP2015-11-071-0/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | and add new functionality - skewness & kurtosis (3rd and 4th stat moments) - addition ops for RunningStat - RunningRegress object - slope, intercept and correlation regression procs - addition ops for RunningRegress
| * | Removal of RunningStats ready for new stats.nim pure lib fileJamesP2015-11-071-42/+0
| | |
* | | fixes strutils.unescape; refs #3634Andreas Rumpf2016-01-172-7/+10
| | |
* | | Merge branch 'devel' of https://github.com/nim-lang/Nim into develAndreas Rumpf2016-01-171-1096/+0
|\ \ \
| * | | Removed redis module from standard library.Dominik Picheta2016-01-161-1096/+0
| | | |
* | | | makes tests greenAndreas Rumpf2016-01-151-1/+1
|/ / /
* | | Merge branch 'devel' into new-llAndreas Rumpf2016-01-144-39/+178
|\ \ \ | | |/ | |/|
| * | Fixed TimeInterval bug.Dominik Picheta2016-01-081-6/+9
| | |
| * | Fixed ttime test. Improved docs in times module.Dominik Picheta2016-01-081-3/+16
| | |
| * | Merge branch 'times_intervals' of https://github.com/jlp765/Nim into ↵Dominik Picheta2016-01-081-22/+130
| |\ \ | | | | | | | | | | | | jlp765-times_intervals
| | * | add timeinterval helping functions as per issue #3609JamesP2015-12-081-22/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add tests to ttime.nim for timeinterval add/subtract functionality Changed assert to doAssert in ttime.nim Added extra tests to ttime.nim Removal of singular help procs for working with TimeIntervals Added TimeIin proc toSeconds(a: TimeInfo, interval: TimeInterval) where subtracting a year gave wrong results Add overflow of units on initInterval eg, 65 seconds is 5 seconds and 1 minute
| * | | Lexbase compatible with JSYuriy Glukhov2016-01-061-6/+19
| | | |
| * | | Fixes docgen for lib/pure/db_common.nim.Dominik Picheta2016-01-051-1/+3
| | | | | | | | | | | | | | | | See http://forum.nim-lang.org/t/1916.
| * | | osproc fix for AndroidYuriy Glukhov2016-01-041-2/+2
| | | |
* | | | fixes calling convention for the callbacksAndreas Rumpf2016-01-081-2/+2
|/ / /
* | | Merge branch 'devel' of github.com:nim-lang/Nim into develDominik Picheta2015-12-292-3/+3
|\ \ \
| * \ \ Merge pull request #3663 from def-/netbsd-fixDominik Picheta2015-12-251-2/+2
| |\ \ \ | | | | | | | | | | Fix osproc compilation on NetBSD, use workaround for missing execvpe
| | * | | Fix osproc compilation on NetBSD, use workaround for missing execvpedef2015-12-231-2/+2
| | | | |
| * | | | Fix nativesockets compilation on OpenBSD and NetBSDdef2015-12-231-1/+1
| |/ / /
* / / / Fixes incorrect Host header when using httpclient with proxy.Dominik Picheta2015-12-291-5/+5
|/ / /