Commit Graph

5116 Commits

Author SHA1 Message Date
Andreas Rumpf
21fdda8fbc Merge pull request #2115 from oderwat/no-pthread-on-osx
Disable -pthread for compiler/linker on OSX
2015-02-15 15:07:05 +01:00
Andreas Rumpf
dcf2f8b002 Merge pull request #2132 from fowlmouth/patch-2
Patch 2
2015-02-15 15:05:39 +01:00
Andreas Rumpf
3fc100276c Merge pull request #2122 from c-blake/devel
Update collections/tables.nim as with sets.nim
2015-02-15 15:04:04 +01:00
reactormonk
042016acf3 Merge pull request #2136 from oderwat/fix-matchers
Fixed non exhaustive case by adding else
2015-02-15 12:16:27 +05:00
Hans Raaf
a7484ac092 Fixed non exhaustive case by adding else 2015-02-15 04:44:15 +01:00
reactormonk
a80969f96b Merge pull request #2130 from yasoob/patch-1
It's 2015 👍
2015-02-15 05:21:28 +05:00
Billingsly Wetherfordshire
78cae0dd45 Update lib.txt
oops
2015-02-14 17:21:20 -06:00
Billingsly Wetherfordshire
8ed31ffd2b Update lib.txt
removed IRC module from mention on lib.html
2015-02-14 17:20:21 -06:00
Billingsly Wetherfordshire
706544c63c Update lib.txt
add basic2d/3d to standard libraries list
2015-02-14 17:19:13 -06:00
Billingsly Wetherfordshire
e22ae986f9 Update basic3d.nim
fix rst error
2015-02-14 17:15:30 -06:00
Billingsly Wetherfordshire
c63c3a8654 Update website.ini
generate docs for basic2d,basic3d
2015-02-14 17:14:06 -06:00
Araq
442dc30922 fixes endless recursion with static type parameters 2015-02-14 21:47:21 +01:00
M.Yasoob Ullah Khalid ☺
5b32e31a27 It's 2015 👍 2015-02-15 01:03:11 +05:00
Charles Blake
6206795464 Merge ../Nim into devel 2015-02-14 14:26:16 -05:00
Araq
ece23d39bc fixes #2123 2015-02-14 18:11:52 +01:00
Araq
df2fdaf3c5 fixes #2121 2015-02-14 14:45:49 +01:00
Charles Blake
5068a5aa01 assignment -> shallowCopy for efficiency. 2015-02-13 14:10:09 -05:00
Charles Blake
39b98fede3 New probe seq swaps 1st two keys. Fix in cmp. 2015-02-13 08:50:26 -05:00
Charles Blake
45a2c1b1d1 Merge ../Nim into devel; track ttables.nim delete. 2015-02-13 08:42:41 -05:00
Charles Blake
0a1bc0e9cd Update a use of initTable to avoid initial enlarge. 2015-02-13 08:33:15 -05:00
Charles Blake
d129e8f6c6 Update doc comments to mention rightSize. 2015-02-13 08:28:58 -05:00
Araq
199707c189 fixes #2103 2015-02-13 10:55:46 +01:00
Araq
e8acaa449b fixes #2102 2015-02-13 10:27:23 +01:00
Araq
b40bfc0ce3 fixes #2118 2015-02-13 10:09:57 +01:00
Araq
4876aabb39 fixes #2113 2015-02-13 02:08:45 +01:00
Hans Raaf
55ab6cc2b3 Disable -pthread for linker on OSX
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.
2015-02-13 01:51:46 +01:00
Araq
6eb8867f1a fixes #2116 2015-02-13 01:40:29 +01:00
Araq
fde16e6c3e fixes os.moveFile on Windows 2015-02-13 01:39:20 +01:00
Araq
b226618ce7 'passL' is not smart anymore about already known switches; -ldl is now properly appended to the linking command 2015-02-13 01:21:55 +01:00
Araq
c44d947ac5 'auto' can be inferred to be 'void' 2015-02-13 01:21:54 +01:00
Andreas Rumpf
f039aad5e0 Merge pull request #2097 from jferg2010/devel
Date/time parsing
2015-02-12 21:54:43 +01:00
Andreas Rumpf
7e7a448cf1 Merge pull request #2112 from oderwat/patch-xbit
Set executable bit on build.sh.
2015-02-12 21:53:06 +01:00
Andreas Rumpf
1d65cd277e Merge pull request #2095 from def-/rdstdin-winfix
Fix readPasswordFromStdin for Windows
2015-02-12 16:15:50 +01:00
Araq
f9b3f7f980 fixes #2068 2015-02-12 16:10:38 +01:00
Andreas Rumpf
2f62cc91a4 Merge pull request #2111 from lyro/fix-2110
fix conditions for int size in 'math.nextPowerOfTwo' #2110
2015-02-12 15:18:55 +01:00
Araq
61db30727b Aporia compiles again (disabling thread analysis is horrible!) 2015-02-12 15:14:46 +01:00
Araq
c4eddb3fda ordinary parameters can follow a varargs parameter 2015-02-12 14:56:57 +01:00
Araq
41385f3aaf made a test green 2015-02-12 14:56:57 +01:00
Araq
8763bffa84 better handling of gcsafety with --threadAnalysis:off 2015-02-12 14:56:56 +01:00
Araq
10335fd726 fixed minor bugs; cleaned up tests 2015-02-12 14:56:56 +01:00
Hans Raaf
6e8b2bbfc8 Set executable bit on build.sh.
I am not sure why this is not set already? To me it is an annoyance
that I have to set it manually and then git shows me a change for
that file all the time while working.
2015-02-12 13:07:06 +01:00
Charles Blake
a21d7c681d New probe seq yields a non-bug swap of 1st 2 keys. 2015-02-12 06:57:39 -05:00
Frank Fischer
fcfaf2a844 fix conditions for int size in 'math.nextPowerOfTwo' #2110 2015-02-12 12:47:58 +01:00
Charles Blake
49d88cee68 Oops - missed updates to a few later rawGet()s. 2015-02-12 06:44:09 -05:00
Charles Blake
5fbcf93860 Add hcode,rightSize,rawGetKnownHC. Fix inf loop.
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.
2015-02-12 05:22:04 -05:00
Charles Blake
2cc5bc0db3 Merge ../Nim into devel 2015-02-12 05:18:10 -05:00
Andreas Rumpf
4f00ae5a5a Merge pull request #2108 from oderwat/patch-1
Fixing dylib name for OSX
2015-02-12 10:02:53 +01:00
Andreas Rumpf
f7195becac Merge pull request #2053 from reactormonk/message-for-koch-temp
report how to create a compiler stacktrace #1280
2015-02-12 09:40:31 +01:00
Hans Raaf
ceffdebebb Corrected warnings about deprecated names
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.
2015-02-11 21:38:55 +01:00
Hans Raaf
743ad639d4 Fixing dylib name for OSX
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.
2015-02-11 21:38:55 +01:00