Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update doc comments to mention rightSize. | Charles Blake | 2015-02-13 | 2 | -10/+10 |
| | |||||
* | New probe seq yields a non-bug swap of 1st 2 keys. | Charles Blake | 2015-02-12 | 1 | -1/+1 |
| | |||||
* | Oops - missed updates to a few later rawGet()s. | Charles Blake | 2015-02-12 | 1 | -4/+8 |
| | |||||
* | Add hcode,rightSize,rawGetKnownHC. Fix inf loop. | Charles Blake | 2015-02-12 | 1 | -60/+140 |
| | | | | | | | | | | | | | | | | | | | | | | Make similar changes to those made in sets.nim, including hcode, rightSize rawGet/rawGetKnownHC result protocol, nextTry probe sequence to be the cache friendlier h=h+1 which in turn allows supporting changing deletion to fix the infinite loop bug with local rehashing which in turn has desirable properties of graceful table aging when deletes do happen and also making insert-only usage patterns no longer pay any time/space cost to check deleted status. Unlike collections.sets, this module has add() for duplicate key inserts and a 3rd type of table, CountTable. The first wrinkle is handled by introducing a rawGetDeep for unconditionally adding entries along collision chains. This point of CountTable seems to be space efficiency at 2 items per slot. These changes retain that by keeping the val==0 => EMPTY rule and not caching hash codes. putImpl is expanded in-place for CountTable since the new putImpl() is too different. { Depending on table size relative to caches & key expense, regular Table[A,B] may become faster than CountTable, especially if the basic count update could be something like inc(mGetOrPut(t, key, 0)). } Unit tests pass, but in this module those are much more of just a demo than probing for bugs. Should exercise/test this a little more before merging. | ||||
* | Merge ../Nim into devel | Charles Blake | 2015-02-12 | 4 | -4/+21 |
|\ | |||||
| * | Merge pull request #2108 from oderwat/patch-1 | Andreas Rumpf | 2015-02-12 | 2 | -3/+3 |
| |\ | | | | | | | Fixing dylib name for OSX | ||||
| | * | Corrected warnings about deprecated names | Hans Raaf | 2015-02-11 | 1 | -2/+2 |
| | | | | | | | | | | | | I got warning about deprecated names here. I also know that other names probably need to change (T/P prefixes) but I am unsure about the exact rules. I may do that later if you like. | ||||
| | * | Fixing dylib name for OSX | Hans Raaf | 2015-02-11 | 1 | -1/+1 |
| | | | | | | | | | | | | I don't know if the (15|16...) is supposed to work on OSX. I have "libmysqlclient.18.dylib" in my lib directory and get "could not load: libmysqlclient.(15|16|17[18).dylib" on execution. After removing the pattern I can run my little example program and it works as "libmysqlclient.dylib" is a softlink to the current version anyway. | ||||
| * | | Merge pull request #2053 from reactormonk/message-for-koch-temp | Andreas Rumpf | 2015-02-12 | 2 | -1/+18 |
| |\ \ | | |/ | |/| | report how to create a compiler stacktrace #1280 | ||||
| | * | use dynamic message destination | Simon Hafner | 2015-02-04 | 1 | -1/+1 |
| | | | |||||
| | * | report how to create a compiler stacktrace #1280 | Simon Hafner | 2015-02-01 | 2 | -1/+18 |
| | | | |||||
* | | | Merge ../Nim into devel | Charles Blake | 2015-02-11 | 1 | -1/+1 |
|\| | | |||||
| * | | Merge pull request #2078 from c-blake/devel | Andreas Rumpf | 2015-02-11 | 1 | -44/+112 |
| |\ \ | | | | | | | | | Add hcode. Re-factor rawGet. Fix infinite loop. | ||||
| * | | | increase limit for 64bit systems | Araq | 2015-02-10 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge ../Nim into devel | Charles Blake | 2015-02-10 | 46 | -96/+223 |
|\| | | | |||||
| * | | | fixes #2070 | Araq | 2015-02-10 | 3 | -2/+32 |
| | | | | |||||
| * | | | cleanup index generation | Araq | 2015-02-10 | 8 | -37/+71 |
| | | | | |||||
| * | | | cleaned up GC tests; fixes object variant re-assign bug | Araq | 2015-02-10 | 3 | -5/+11 |
| | | | | |||||
| * | | | unsigned array indexes work better; minor cleanups | Araq | 2015-02-10 | 2 | -9/+26 |
| | | | | |||||
| * | | | fixes #1131 | Araq | 2015-02-10 | 4 | -4/+15 |
| | | | | |||||
| * | | | cleaned up some tests | Araq | 2015-02-10 | 25 | -8/+19 |
| | | | | |||||
| * | | | temptyseqs works again | Araq | 2015-02-10 | 4 | -17/+25 |
| | | | | |||||
| * | | | fixes #2070 | Araq | 2015-02-10 | 2 | -19/+29 |
| | | | | |||||
* | | | | Merge /home/cb/pkg/nim/Nim into devel | Charles Blake | 2015-02-10 | 4 | -12/+92 |
|\| | | | |||||
| * | | | Async await try statement fixes. | Dominik Picheta | 2015-02-09 | 3 | -11/+89 |
| | | | | |||||
| * | | | stop after first failing C compilation for --parallelBuild:1 | Araq | 2015-02-09 | 1 | -1/+3 |
| | | | | |||||
* | | | | Merge Nim into devel | Charles Blake | 2015-02-09 | 30 | -109/+240 |
|\| | | | |/ / |/| | | |||||
| * | | Merge pull request #2087 from flaviut/patch-1 | Andreas Rumpf | 2015-02-09 | 1 | -5/+21 |
| |\ \ | | | | | | | | | Clean up build icons | ||||
| | * | | Clean up build icons | Flaviu Tamas | 2015-02-07 | 1 | -5/+21 |
| | | | | |||||
| * | | | Merge pull request #2059 from def-/getch | Varriount | 2015-02-09 | 1 | -0/+28 |
| |\ \ \ | | | | | | | | | | | Getch | ||||
| | * | | | Document terminal.getch | def | 2015-02-04 | 1 | -0/+2 |
| | | | | | |||||
| | * | | | Add copyright header | def | 2015-02-03 | 1 | -0/+9 |
| | | | | | |||||
| | * | | | Add terminal.getch to get a single character | def | 2015-02-03 | 1 | -0/+26 |
| | | | | | |||||
| * | | | | tables work in 'const' sections; echo supports 'nil' strings; minor cleanups | Araq | 2015-02-09 | 11 | -52/+69 |
| | | | | | |||||
| * | | | | Merge pull request #2093 from reactormonk/json-test-fix | Andreas Rumpf | 2015-02-08 | 1 | -1/+1 |
| |\ \ \ \ | | | | | | | | | | | | | apparently the json spacing changed | ||||
| | * | | | | apparently the json spacing changed | Simon Hafner | 2015-02-08 | 1 | -1/+1 |
| |/ / / / | |||||
| * | | | | 'nimsuggest' compiles again | Araq | 2015-02-08 | 1 | -11/+13 |
| | | | | | |||||
| * | | | | fixes #2004 | Araq | 2015-02-08 | 4 | -23/+49 |
| | | | | | |||||
| * | | | | fixes #2073 | Araq | 2015-02-08 | 4 | -4/+20 |
| | | | | | |||||
| * | | | | fixes #2073; language spec change: arrow like operators are not right ↵ | Araq | 2015-02-08 | 3 | -6/+5 |
| | | | | | | | | | | | | | | | | | | | | associative anymore | ||||
| * | | | | fixes #1956 | Araq | 2015-02-08 | 2 | -3/+5 |
| | | | | | |||||
| * | | | | better error message | Araq | 2015-02-08 | 1 | -1/+3 |
| | | | | | |||||
| * | | | | merged #2083 manually | Araq | 2015-02-08 | 3 | -2/+25 |
| | |/ / | |/| | | |||||
| * | | | Merge pull request #2085 from flaviut/clarify-message | reactormonk | 2015-02-08 | 1 | -1/+1 |
| |\ \ \ | | | | | | | | | | | Clarify "instantiation from here" | ||||
| | * | | | Clarify "instantiation from here" | Flaviu Tamas | 2015-02-07 | 1 | -1/+1 |
| |/ / / | | | | | | | | | | | | | After ~1 year of Nim, I finally realized it doesn't refer to dynamic memory | ||||
* | | | | Address Andreas' complaint about code duplication. | Charles Blake | 2015-02-07 | 1 | -2/+3 |
| | | | | |||||
* | | | | Merge /home/cb/pkg/nim/Nim into devel | Charles Blake | 2015-02-07 | 14 | -16/+392 |
|\| | | | | | | | | | | | | | | | pull from master | ||||
| * | | | Merge pull request #1869 from def-/json-stuff | Andreas Rumpf | 2015-02-07 | 1 | -2/+75 |
| |\ \ \ | | | | | | | | | | | Json stuff | ||||
| | * | | | Fix documentation and toJson signature | def | 2015-02-04 | 1 | -2/+2 |
| | | | | | |||||
| | * | | | Remove debugging echos again | def | 2015-01-05 | 1 | -2/+0 |
| | | | | |