Commit Graph

7456 Commits

Author SHA1 Message Date
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
Flaviu Tamas
cba3b788f1 Add more details about modifier syntax
See discussion on #4 for details.
2015-02-11 14:05:52 -05:00
Charles Blake
92607dc474 Merge ../Nim into devel 2015-02-11 13:25:35 -05:00
Andreas Rumpf
a508055687 Merge pull request #2078 from c-blake/devel
Add hcode.  Re-factor rawGet.  Fix infinite loop.
2015-02-11 17:44:13 +01:00
Jeff
7251fbd76e Date/time parsing - removed comments from assert 2015-02-11 15:52:15 +09:00
Jeff
3643068527 Date/time parsing with changes suggested by Araq 2015-02-11 15:42:33 +09:00
Araq
4ce3c77031 increase limit for 64bit systems 2015-02-10 22:23:38 +01:00
Charles Blake
7a64bb1232 Merge ../Nim into devel 2015-02-10 14:40:46 -05:00
Araq
0284e8d11c fixes #2070 2015-02-10 20:19:48 +01:00
Araq
c2da0e9b3d cleanup index generation 2015-02-10 20:19:48 +01:00
Araq
eec18896b7 cleaned up GC tests; fixes object variant re-assign bug 2015-02-10 20:19:47 +01:00
Araq
865d341b32 unsigned array indexes work better; minor cleanups 2015-02-10 20:19:46 +01:00
Araq
e371bb3e26 fixes #1131 2015-02-10 20:19:46 +01:00
Araq
247af96b00 cleaned up some tests 2015-02-10 20:19:45 +01:00
Araq
3a8f7d505b temptyseqs works again 2015-02-10 20:19:45 +01:00
Araq
683b82a2ec fixes #2070 2015-02-10 20:19:44 +01:00
Charles Blake
cc8dffb559 Merge /home/cb/pkg/nim/Nim into devel 2015-02-10 10:18:02 -05:00
Dominik Picheta
03019849fc Async await try statement fixes. 2015-02-09 23:00:07 +00:00
Araq
703633bf0c stop after first failing C compilation for --parallelBuild:1 2015-02-09 22:29:20 +01:00
Charles Blake
41794ccd5b Merge Nim into devel 2015-02-09 09:57:39 -05:00
Andreas Rumpf
629bbf5ebd Merge pull request #2087 from flaviut/patch-1
Clean up build icons
2015-02-09 15:18:45 +01:00
Jeff
5424ab3d7e Date/time parsing with minor changes requested by Dom96 2015-02-09 21:46:18 +09:00
Jeff
13c5ce820e Date/time parsing 2015-02-09 20:58:36 +09:00
Varriount
af23312f79 Merge pull request #2059 from def-/getch
Getch
2015-02-09 02:37:36 -05:00
def
d6d152e451 Add a new line after readPasswordFromStdin, add result 2015-02-09 08:06:56 +01:00