Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #2195 from stedi67/devel | Dominik Picheta | 2015-02-21 | 1 | -4/+4 |
|\ | | | | | little documentation fix on combine and / | ||||
| * | little documentation fix on conbine and / | Stephan Diehl | 2015-02-21 | 1 | -4/+4 |
| | | |||||
* | | Remove pointless winlean import in net module. | Dominik Picheta | 2015-02-21 | 1 | -3/+0 |
|/ | |||||
* | Update net.nim - fix #2193 | Varriount | 2015-02-21 | 1 | -2/+5 |
| | | | Fixes number #2193 and resolves some ambiguity issues | ||||
* | Sockets now save a copy of osLastError to work around #2191. | Dominik Picheta | 2015-02-21 | 1 | -4/+22 |
| | |||||
* | fixes #2124 | Araq | 2015-02-20 | 2 | -3/+6 |
| | |||||
* | Merge pull request #2164 from oderwat/fix-tohex | Andreas Rumpf | 2015-02-19 | 1 | -3/+5 |
|\ | | | | | Fixing toHex() to not wrap for long lens + Test | ||||
| * | Fixing toHex() to not wrap for long lens. | Hans Raaf | 2015-02-18 | 1 | -3/+5 |
| | | | | | | | | | | | | | | If you specify a len like 32 toHex() will repeat the given value in the output. Besides that I believe my implementation is easier and seems not to change how negative numbers are handled. I also handle the case of wrapping negative number beyond BiggestInt to "do it right". | ||||
* | | Make readBytes and writeBytes work with uint8 | def | 2015-02-18 | 2 | -4/+4 |
| | | | | | | | | | | | | So far only openarray[int8] worked. Now it's openarray[int8|uint8]. This should make sense, since uint8 is comfortable to represent a byte (0-255) and there is already type byte* = uint8 in system. | ||||
* | | Merge pull request #2139 from c-blake/devel | Andreas Rumpf | 2015-02-18 | 1 | -21/+59 |
|\ \ | |/ |/| | Add mgetOrPut to support just one probe chase for the common | ||||
| * | Merge ../Nim into devel | Charles Blake | 2015-02-16 | 48 | -173/+175 |
| |\ | |||||
| * | | Add comments explaining odd looking i<0..data[i]. | Charles Blake | 2015-02-16 | 1 | -3/+3 |
| | | | |||||
| * | | Just do wide interface of hasKeyOrPut & mgetOrPut. | Charles Blake | 2015-02-16 | 1 | -36/+55 |
| | | | | | | | | | | | | | | | | | | | | | Extract maybe re-hash/re-search and insert logic into a new template. Use this new template to do impl templates for all three put forms (which required renaming a couple 'value' arguments to 'val'). Added OrderedTable and OrderedTableRef versions of both as well. | ||||
| * | | Add TableRef version of mgetOrPut. | Charles Blake | 2015-02-16 | 1 | -0/+5 |
| | | | |||||
| * | | Add mgetOrPut to support just one probe chase for the common | Charles Blake | 2015-02-15 | 1 | -0/+14 |
| | | | | | | | | | | | | pattern of either updating or initializing table entries. | ||||
* | | | intsets.empty is wrong | Araq | 2015-02-18 | 1 | -2/+3 |
| | | | |||||
* | | | Merge pull request #2155 from def-/warnings | Andreas Rumpf | 2015-02-18 | 13 | -124/+126 |
|\ \ \ | | | | | | | | | Fix a few more warnings | ||||
| * | | | Fix a few more warnings | def | 2015-02-17 | 13 | -124/+126 |
| | |/ | |/| | |||||
* | | | Merge pull request #2156 from def-/usevfork | Andreas Rumpf | 2015-02-18 | 1 | -6/+4 |
|\ \ \ | | | | | | | | | Always use 0x40 for POSIX_SPAWN_USEVFORK | ||||
| * | | | Always use 0x40 for POSIX_SPAWN_USEVFORK | def | 2015-02-17 | 1 | -6/+4 |
| |/ / | |||||
* / / | Fix documentations for declared (instead of defined) | def | 2015-02-18 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #2150 from def-/gc2-compiling | Andreas Rumpf | 2015-02-16 | 2 | -71/+73 |
|\ \ | | | | | | | Make gc2 compile again and fix some deprecation warnings | ||||
| * | | Clean up some more deprecation warnings | def | 2015-02-16 | 2 | -7/+7 |
| | | | |||||
| * | | Make gc2 compile again | def | 2015-02-16 | 1 | -64/+66 |
| |/ | |||||
* | | Fix typos | Federico Ceratto | 2015-02-15 | 36 | -62/+62 |
| | | |||||
* | | Fix typos | Federico Ceratto | 2015-02-15 | 20 | -44/+44 |
|/ | |||||
* | Merge pull request #2133 from def-/cleanup | Andreas Rumpf | 2015-02-15 | 1 | -2/+3 |
|\ | | | | | Cleanup | ||||
| * | Fix documentation a bit in unicode | def | 2015-02-14 | 1 | -2/+3 |
| | | |||||
* | | Merge pull request #2115 from oderwat/no-pthread-on-osx | Andreas Rumpf | 2015-02-15 | 1 | -1/+3 |
|\ \ | | | | | | | Disable -pthread for compiler/linker on OSX | ||||
| * | | Disable -pthread for linker on OSX | Hans Raaf | 2015-02-13 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | The -pthread is not needed on Darwin/OS X and the Apple compilers give a warning about this if you use --threads:on with the Nim compiler. | ||||
* | | | Merge pull request #2132 from fowlmouth/patch-2 | Andreas Rumpf | 2015-02-15 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Patch 2 | ||||
| * | | | Update basic3d.nim | Billingsly Wetherfordshire | 2015-02-14 | 1 | -1/+1 |
| | |/ | |/| | | | | fix rst error | ||||
* | | | Merge pull request #2122 from c-blake/devel | Andreas Rumpf | 2015-02-15 | 2 | -74/+158 |
|\ \ \ | | | | | | | | | Update collections/tables.nim as with sets.nim | ||||
| * | | | assignment -> shallowCopy for efficiency. | Charles Blake | 2015-02-13 | 2 | -2/+2 |
| | | | | |||||
| * | | | Merge ../Nim into devel; track ttables.nim delete. | Charles Blake | 2015-02-13 | 12 | -121/+458 |
| |\| | | |||||
| * | | | Update doc comments to mention rightSize. | Charles Blake | 2015-02-13 | 2 | -10/+10 |
| | | | | |||||
| * | | | 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. | ||||
* | | | | Fixed non exhaustive case by adding else | Hans Raaf | 2015-02-15 | 1 | -1/+1 |
| |/ / |/| | | |||||
* | | | fixes #2116 | Araq | 2015-02-13 | 1 | -11/+4 |
| | | | |||||
* | | | fixes os.moveFile on Windows | Araq | 2015-02-13 | 2 | -2/+18 |
| |/ |/| | |||||
* | | Merge pull request #2097 from jferg2010/devel | Andreas Rumpf | 2015-02-12 | 1 | -1/+328 |
|\ \ | | | | | | | Date/time parsing | ||||
| * | | Date/time parsing - removed comments from assert | Jeff | 2015-02-11 | 1 | -6/+6 |
| | | | |||||
| * | | Date/time parsing with changes suggested by Araq | Jeff | 2015-02-11 | 1 | -334/+283 |
| | | | |||||
| * | | Date/time parsing with minor changes requested by Dom96 | Jeff | 2015-02-09 | 1 | -32/+29 |
| | | | |||||
| * | | Date/time parsing | Jeff | 2015-02-09 | 1 | -7/+388 |
| | | | |||||
* | | | Merge pull request #2095 from def-/rdstdin-winfix | Andreas Rumpf | 2015-02-12 | 1 | -6/+12 |
|\ \ \ | | | | | | | | | Fix readPasswordFromStdin for Windows | ||||
| * | | | Add a new line after readPasswordFromStdin, add result | def | 2015-02-09 | 1 | -5/+11 |
| | | | | |||||
| * | | | Fix readPasswordFromStdin for Windows | def | 2015-02-08 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge pull request #2111 from lyro/fix-2110 | Andreas Rumpf | 2015-02-12 | 1 | -2/+2 |
|\ \ \ \ | | | | | | | | | | | fix conditions for int size in 'math.nextPowerOfTwo' #2110 |