summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Add SSLFree after SLShutdown to prevent memory leakwiffel2015-02-242-0/+4
|
* Clean up selectors documentation a bitdef2015-02-241-4/+9
|
* Reuse socket in httpserverdef2015-02-241-1/+1
|
* Merge pull request #2194 from GrundleTrundle/windows_timer_subAndreas Rumpf2015-02-221-1/+1
|\ | | | | Fix for timer overflow when using nimprofiler with 32bit Windows target.
| * Changed nimprof.hook() to handle uninitialized t0GrundleTrundle2015-02-211-1/+1
| | | | | | | | | | | | | | | | It's unlikely, but possible for the conversion to nanoseconds to overflow if QueryPerformanceCounter() returns a large enough timestamp. This change avoids that, at the cost of always taking a sample the first time through when t0 == 0.
* | Merge pull request #2198 from oderwat/fix-table-mpairsAndreas Rumpf2015-02-221-1/+1
|\ \ | | | | | | Fix unknown symbol in tables mpairs iterator.
| * | Fix unknown symbol in tables mpairs iterator.Hans Raaf2015-02-211-1/+1
| | | | | | | | | | | | Fixes an error with mpairs iterator which was introduced with 5fbcf93860. This is used by nimforum thats why I found it. I also added a testcase for the mpairs iterator.
* | | Merge pull request #2195 from stedi67/develDominik Picheta2015-02-211-4/+4
|\ \ \ | | | | | | | | little documentation fix on combine and /
| * | | little documentation fix on conbine and /Stephan Diehl2015-02-211-4/+4
| |/ /
* / / Remove pointless winlean import in net module.Dominik Picheta2015-02-211-3/+0
|/ /
* / Update net.nim - fix #2193Varriount2015-02-211-2/+5
|/ | | Fixes number #2193 and resolves some ambiguity issues
* Sockets now save a copy of osLastError to work around #2191.Dominik Picheta2015-02-211-4/+22
|
* Merge pull request #2164 from oderwat/fix-tohexAndreas Rumpf2015-02-191-3/+5
|\ | | | | Fixing toHex() to not wrap for long lens + Test
| * Fixing toHex() to not wrap for long lens.Hans Raaf2015-02-181-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".
* | Merge pull request #2139 from c-blake/develAndreas Rumpf2015-02-181-21/+59
|\ \ | |/ |/| Add mgetOrPut to support just one probe chase for the common
| * Merge ../Nim into develCharles Blake2015-02-1628-67/+67
| |\
| * | Add comments explaining odd looking i<0..data[i].Charles Blake2015-02-161-3/+3
| | |
| * | Just do wide interface of hasKeyOrPut & mgetOrPut.Charles Blake2015-02-161-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 Blake2015-02-161-0/+5
| | |
| * | Add mgetOrPut to support just one probe chase for the commonCharles Blake2015-02-151-0/+14
| | | | | | | | | | | | pattern of either updating or initializing table entries.
* | | intsets.empty is wrongAraq2015-02-181-2/+3
| | |
* | | Fix a few more warningsdef2015-02-1710-87/+89
| |/ |/|
* | Fix typosFederico Ceratto2015-02-1521-35/+35
| |
* | Fix typosFederico Ceratto2015-02-1513-36/+36
|/
* Merge pull request #2133 from def-/cleanupAndreas Rumpf2015-02-151-2/+3
|\ | | | | Cleanup
| * Fix documentation a bit in unicodedef2015-02-141-2/+3
| |
* | Merge pull request #2132 from fowlmouth/patch-2Andreas Rumpf2015-02-151-1/+1
|\ \ | | | | | | Patch 2
| * | Update basic3d.nimBillingsly Wetherfordshire2015-02-141-1/+1
| |/ | | | | fix rst error
* | Merge pull request #2122 from c-blake/develAndreas Rumpf2015-02-152-74/+158
|\ \ | | | | | | Update collections/tables.nim as with sets.nim
| * | assignment -> shallowCopy for efficiency.Charles Blake2015-02-132-2/+2
| | |
| * | Merge ../Nim into devel; track ttables.nim delete.Charles Blake2015-02-136-67/+407
| |\|
| * | Update doc comments to mention rightSize.Charles Blake2015-02-132-10/+10
| | |
| * | Oops - missed updates to a few later rawGet()s.Charles Blake2015-02-121-4/+8
| | |
| * | Add hcode,rightSize,rawGetKnownHC. Fix inf loop.Charles Blake2015-02-121-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 /home/cb/pkg/nim/Nim into develCharles Blake2015-02-101-10/+48
| |\ \
| * \ \ Merge Nim into develCharles Blake2015-02-091-0/+28
| |\ \ \
* | | | | Fixed non exhaustive case by adding elseHans Raaf2015-02-151-1/+1
| |_|_|/ |/| | |
* | | | fixes os.moveFile on WindowsAraq2015-02-131-2/+10
| | | |
* | | | Merge pull request #2097 from jferg2010/develAndreas Rumpf2015-02-121-1/+328
|\ \ \ \ | | | | | | | | | | Date/time parsing
| * | | | Date/time parsing - removed comments from assertJeff2015-02-111-6/+6
| | | | |
| * | | | Date/time parsing with changes suggested by AraqJeff2015-02-111-334/+283
| | | | |
| * | | | Date/time parsing with minor changes requested by Dom96Jeff2015-02-091-32/+29
| | | | |
| * | | | Date/time parsingJeff2015-02-091-7/+388
| | |/ / | |/| |
* | | | Merge pull request #2111 from lyro/fix-2110Andreas Rumpf2015-02-121-2/+2
|\ \ \ \ | | | | | | | | | | fix conditions for int size in 'math.nextPowerOfTwo' #2110
| * | | | fix conditions for int size in 'math.nextPowerOfTwo' #2110Frank Fischer2015-02-121-2/+2
| | | | |
* | | | | made a test greenAraq2015-02-121-1/+1
| | | | |
* | | | | fixed minor bugs; cleaned up testsAraq2015-02-125-61/+66
|/ / / /
* | | | Merge pull request #2078 from c-blake/develAndreas Rumpf2015-02-111-44/+112
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | Add hcode. Re-factor rawGet. Fix infinite loop.
| * | Address Andreas' complaint about code duplication.Charles Blake2015-02-071-2/+3
| | |
| * | Merge /home/cb/pkg/nim/Nim into develCharles Blake2015-02-074-2/+75
| |\ \ | | | | | | | | | | | | pull from master