summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Dont convert string to cstring when writing to stream.Yuriy Glukhov2016-01-211-1/+4
|
* 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
|/ / /
* | | profiling doesn't require call to enableProfilingAndreas Rumpf2015-12-181-0/+1
| | |
* | | modified the integrated profiler to hopefully produce more reliable resultsAndreas Rumpf2015-12-181-11/+26
| | |
* | | added more column information fieldsAndreas Rumpf2015-12-171-1/+6
| | |
* | | big update for the db*.nim modules; uses new db_common.nimAndreas Rumpf2015-12-161-0/+96
| | |
* | | Fixing too many open files on quit command with an explicit socket close, ↵qio-io2015-12-131-5/+5
| | | | | | | | | | | | and importing the net module
* | | Fixed getAddrInfo on androidYuriy Glukhov2015-12-081-1/+2
|/ /
* | Merge pull request #3570 from juanfra684/patch-1Dominik Picheta2015-12-041-1/+3
|\ \ | | | | | | OpenBSD doesn't support AI_V4MAPPED
| * | OpenBSD doesn't support AI_V4MAPPEDJuan Francisco Cantero Hurtado2015-11-231-1/+3
| | | | | | | | | Related to #3534
* | | Fix typo, minor rephrasing.Federico Ceratto2015-12-031-2/+2
| | |
* | | Closes: #3611Federico Ceratto2015-12-021-16/+25
| | |
* | | Add comment at end of file on where to find further testsJamesP2015-12-011-0/+3
| | |
* | | Removal of tests from times module, that have been moved to ttime.nim test fileJamesP2015-12-011-116/+4
| | |
* | | fixes memory leak for getAppFilename on WindowsAraq2015-11-261-1/+1
| | |
* | | Merge pull request #3594 from theduke/unicode-validate-overlongAndreas Rumpf2015-11-261-0/+1
|\ \ \ | | | | | | | | validateUtf8: catch overlong ascii
| * | | validateUtf8: catch overlong asciitheduke2015-11-261-0/+1
| | | | | | | | | | | | Make unicode.validateUtf8() check for overlong ascii representations, which are 2 bytes long and start with c0 or c1.
* | | | fixed float formatting for jsYuriy Glukhov2015-11-261-24/+39
|/ / /
* | | Fix options module to use new import namedef2015-11-231-2/+2
| | |
* | | Update comment about `map` being in system moduledef2015-11-231-6/+3
|/ /
* | Fix loop index bug in scan for a[s] in b[s..s+len2-1].Charles Blake2015-11-191-1/+1
| | | | | | | | | | | | a, b must both be indexed starting from s after the common prefix "strip" phase. This resolves issue 3477: https://github.com/nim-lang/Nim/issues/3477