Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #4344 from ReneSac/queues | Andreas Rumpf | 2016-06-19 | 1 | -33/+184 |
|\ | | | | | Enchanced random access support for queues among other changes | ||||
| * | Remove high() and low() procs from queues module | ReneSac | 2016-06-16 | 1 | -13/+2 |
| | | | | | | | | | | Just in case as they are said not overloadable. No deprecation because this is during a PR: those procs didn't exist before. Also update comment due to failed optimization attempt using copyMem() for POD datatypes. | ||||
| * | Fixes for things pointed by Araq on the PR | ReneSac | 2016-06-16 | 1 | -27/+18 |
| | | |||||
| * | Improved the documentation and miscelaneous | ReneSac | 2016-06-15 | 1 | -33/+102 |
| | | | | | | | | | | | | | | | | | | Better bounds checking. Tried to make it and documentation comply with the conflicting style guides. Added example of usage at the top of the module as well as warnings on usage. Also fix the back() and internal englishOrdinal() proc from previous commit. Added {.discardable.} pragma for .pop(), when calling only for it's side effects. Sprinkled some unlikely() for optimization. Some new tests reflecting those changes. | ||||
| * | Enchanced random access support for queues | ReneSac | 2016-06-12 | 1 | -24/+126 |
| | | | | | | | | | | | | Now queues support indexing, front() and back() operations and pairs iteration. Also modernized some of the code to use newer Nim features. Added the "add()" alias to "enqueue()", per nim's conventions (also fits better with pop()) | ||||
* | | attempt to fix a critical memory leak in Nim's collections | Andreas Rumpf | 2016-06-15 | 2 | -0/+12 |
| | | |||||
* | | Implement clear() for CountTableRef. Fixes #4325. | Kier Davis | 2016-06-13 | 1 | -1/+1 |
|/ | |||||
* | Implements tables.clear. | Dominik Picheta | 2016-06-02 | 2 | -5/+34 |
| | |||||
* | moved random procs from math to its own module (breaking change) | Andreas Rumpf | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | Introduce template withValue() for tables.nim too. | cheatfate | 2016-05-27 | 1 | -0/+45 |
| | |||||
* | Introduce template withValue() | cheatfate | 2016-05-26 | 1 | -0/+53 |
| | |||||
* | Fix 2 compile errors in LockFreeHash.nim | Lompiktab | 2016-05-14 | 1 | -3/+3 |
| | | | | | * type mismatch in range (line 55) * invalid indentation (line 249) | ||||
* | Fix missing `]` | Stephane Fontaine | 2016-05-13 | 1 | -1/+1 |
| | | | | other nim can't parse the file. Introduced in https://github.com/nim-lang/Nim/commit/192ba3bbc0ae7f570c1277c9211d24eeea2cf48a#diff-1a01187da2fad29f03da8ce36ffe1f91 | ||||
* | Added heapqueue collection. Fixed timers in asyncdispatch. | Yuriy Glukhov | 2016-04-28 | 1 | -0/+107 |
| | |||||
* | Added del for OrderedTable and OrderedTableRef | Yuriy Glukhov | 2016-04-13 | 1 | -0/+41 |
| | |||||
* | added missing file for --gc:stack | Andreas Rumpf | 2016-03-31 | 1 | -0/+44 |
| | |||||
* | added missing file | Andreas Rumpf | 2016-03-28 | 1 | -0/+95 |
| | |||||
* | Fixed Table::del in JS | Yuriy Glukhov | 2016-03-21 | 1 | -1/+4 |
| | |||||
* | Fixes foldl() and foldr() + foldl() with start parameter. | Hans Raaf | 2016-03-06 | 1 | -10/+37 |
| | | | | | | | | | This fixes the (potential) multi-evaluation of the sequence parameter in foldl() and foldr(). It also adds a foldl() version which gets a start parameter. This allows for creating a result with a different type than the elements of the sequence. | ||||
* | Merge branch 'devel' of github.com:nim-lang/Nim into devel | Andreas Rumpf | 2016-03-04 | 1 | -1/+1 |
|\ | |||||
| * | Removed unused import of 'os' module from module 'sets' | Rostyslav Dzinko | 2016-03-04 | 1 | -1/+1 |
| | | |||||
* | | added intsets.clear proc | Andreas Rumpf | 2016-03-04 | 1 | -0/+7 |
|/ | |||||
* | Don't expect all keys in hashsets to have $ defined | Samantha Doran | 2016-03-01 | 1 | -1/+5 |
| | |||||
* | Consistently use Channel instead of TChannel | def | 2016-02-25 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3831 from ephja/nimrod-to-nim | Andreas Rumpf | 2016-02-06 | 1 | -1/+1 |
|\ | | | | | nimrod -> nim | ||||
| * | nimrod -> nim | Erik Johansson Andersson | 2016-02-05 | 1 | -1/+1 |
| | | |||||
* | | Fix a few deprecation warnings | def | 2016-01-25 | 1 | -1/+1 |
|/ | |||||
* | Fix CountTableRef#getOrDefault | Sloane Simmons | 2016-01-09 | 1 | -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`. | ||||
* | Update comment about `map` being in system module | def | 2015-11-23 | 1 | -6/+3 |
| | |||||
* | added prefix matching to critbits.nim | Araq | 2015-11-10 | 1 | -16/+24 |
| | |||||
* | Merge branch 'devel' of https://github.com/nim-lang/Nim into devel | Araq | 2015-10-13 | 1 | -0/+93 |
|\ | |||||
| * | added all/any/allIt/anyIt with tests and inline documentation | rbmz | 2015-10-13 | 1 | -0/+93 |
| | | | | | | | | Signed-off-by: rbmz <rbmz@users.noreply.github.com> | ||||
* | | udpated the compiler and tester to use getOrDefault | Araq | 2015-10-13 | 3 | -12/+17 |
| | | |||||
* | | added getOrDefault; bootstrapping works again | Araq | 2015-10-13 | 2 | -33/+40 |
| | | |||||
* | | Merge branch 'mget' of https://github.com/def-/Nim into def--mget | Araq | 2015-10-13 | 3 | -43/+101 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim | ||||
| * | Rename mget to `[]` | def | 2015-03-31 | 3 | -75/+120 |
| | | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string | ||||
* | | Merge pull request #3423 from petermora/breakSequtils | Andreas Rumpf | 2015-10-12 | 1 | -35/+168 |
|\ \ | | | | | | | Break sequtils | ||||
| * | | restore {.immediate.} to toSeq | Peter Mora | 2015-10-06 | 1 | -1/+1 |
| | | | |||||
| * | | sequtils related changes | Peter Mora | 2015-10-05 | 1 | -36/+169 |
| | | | |||||
* | | | added critbits.inc proc | Araq | 2015-10-06 | 1 | -0/+8 |
|/ / | |||||
* | | Fixed my name. | Alexander Mitchell-Robinson | 2015-09-07 | 1 | -2/+2 |
| | | |||||
* | | lib: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 4 | -239/+239 |
| | | | | | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | | removed sequtils.reversed again since it's already in algorithm.nim | Araq | 2015-08-10 | 1 | -23/+0 |
| | | |||||
* | | added sequtils.reversed; refs #3148 | Araq | 2015-08-09 | 1 | -0/+23 |
| | | |||||
* | | breaking change: symbol lookups in generics follows spec more closely; fixes ↵ | Araq | 2015-08-07 | 1 | -4/+4 |
| | | | | | | | | #2664 | ||||
* | | 'sequtils doesn't take confusing default args anymore | Araq | 2015-07-08 | 1 | -1/+1 |
| | | |||||
* | | prepared selectors module for multi threading | Araq | 2015-06-30 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'more_concurrency' into devel | Araq | 2015-06-30 | 4 | -168/+440 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/tut1.txt lib/core/locks.nim lib/pure/collections/tables.nim lib/pure/selectors.nim | ||||
| * | | some progress on making async multithreaded | Araq | 2015-05-28 | 4 | -168/+440 |
| | | | |||||
* | | | lib/pure/a-c - Dropped 'T' from types | pdw | 2015-06-04 | 4 | -98/+100 |
| | | |