Commit Graph

64 Commits

Author SHA1 Message Date
Andreas Rumpf
9ca15ad369 string.add for floats and ints for more performance (JS not yet supported) 2016-11-21 13:53:55 +01:00
Andreas Rumpf
66bbf7518e fixes #4776 2016-09-24 02:27:12 +02:00
Dominik Picheta
b56595ae26 Fixes $(0.0/0.0) giving -nan on some systems.
Squashed commit of the following:

commit c7fc086b663f4d4003ccd5831a0ca508cf9badc7
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Sat Sep 17 21:09:48 2016 +0200

    Another attempt at fix.

commit 67b7fb67cda08d945e480a6a01fb0fee797add00
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Sat Sep 17 20:47:41 2016 +0200

    Fixes $(0.0/0.0) giving `-nan` on some systems.
2016-09-17 22:09:10 +02:00
Hans Raaf
cc4bb89267 Fix for cstring nil to string nil conversion with $ 2016-07-29 01:39:33 +02:00
Jacek Sieka
fe2b39f007 remove system/ansi_c include from os 2016-06-05 20:16:26 +08:00
Jacek Sieka
64b0485207 fix types of ansi_c/sysio to more closely match C ABI
also fixes some instances of using C library functions when there are
nim alternatives available
2016-06-05 12:03:20 +08:00
Parashurama
4716034a7f fixes issue 4212 && add test for various valid zero floats. 2016-05-25 11:57:09 +02:00
Andreas Rumpf
835bd9aef2 fixes #4212 2016-05-25 01:10:31 +02:00
Parashurama
5d7d8816e5 fixes some issues with underscores in float literals. add more tests.
fixes some potential issues with underscores in float literals.
adds more checks for badly positionned underscores in float literals.
adds more test files.
2016-05-19 21:03:22 +02:00
Parashurama
f5761e23d3 fix issue 4181. add testcase. 2016-05-18 12:12:01 +02:00
Parashurama
60e03ee27c make float parsing locale independent. 2016-05-16 22:06:35 +02:00
Andreas Rumpf
79f64d2469 simple stuff works with --gc:stack 2016-04-18 11:40:06 +02:00
Araq
070403ca5e first compiling version of the new GC 2015-12-01 00:53:30 +01:00
Araq
4932415742 fixes #1832 2015-07-24 01:04:45 +02:00
Stefan Talpalaru
b487d4e425 conditional TGenericSeq extension 2015-06-16 15:15:17 +02:00
Stefan Talpalaru
02ddbae8f6 fix growObj() with strings 2015-06-09 17:58:54 +02:00
Stefan Talpalaru
50e96ad939 the Go GC - initial implementation 2015-05-31 19:07:44 +02:00
Araq
ee57bb3e3e fixes --gc:none regression; made some tests green 2015-03-10 12:32:47 +01:00
def
20426e77e9 Fix copyStrLast to set the trailing \0 char 2015-03-04 03:37:50 +01:00
def
d875951124 sizeof(char) is always 1 2015-03-04 03:22:06 +01:00
def
f5968c7946 Only zero strings when necessary.
This removes the zeroing when the string is subsequently overwritten by
a memcpy anyway.
2015-03-04 01:48:09 +01:00
def
fa3620be9e Only copy strings to their size, not capacity
Capacity may be much bigger, so we end up with strings that are much
larger than they have to be and have to copy more as well.
2015-03-03 22:23:35 +01:00
Araq
24ae0c387f some love for the testsuite; fixed regressions 2015-03-01 21:41:21 +01:00
Andreas Rumpf
13c2d9b8e2 Merge pull request #2150 from def-/gc2-compiling
Make gc2 compile again and fix some deprecation warnings
2015-02-16 20:33:25 +01:00
def
b9abeff617 Clean up some more deprecation warnings 2015-02-16 19:13:49 +01:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Araq
fde869f1b1 fixes #1712 2014-12-07 22:07:48 +01:00
Araq
fc0fda14ae system files use new identifiers 2014-08-23 00:58:04 +02:00
Araq
dbf9117c56 the big renamefest: first steps 2014-08-22 23:54:26 +02:00
Araq
dd806cafa0 distinguish between 'defined' and 'declared' 2014-08-11 20:38:28 +02:00
Araq
6219ad6a66 fixes #1391 2014-07-22 20:15:57 +02:00
Araq
a7911addf7 parseBiggestFloat is now builtin 2014-07-16 00:41:03 +02:00
katlogic
cea2a9087d More human readable $(float)
The output matches that of Python (eg 1e100, not 1.0e100), but also
reflects locale (assuming it was set using setlocale() before).
2014-06-15 01:49:14 +02:00
Dominik Picheta
ca2b73f64a Revert 4b09baa0a and 33fcd1123. 2014-04-20 22:35:17 +01:00
Simon Hafner
33fcd11236 add a trailing zero to $float 2014-02-11 17:46:34 -06:00
Simon Hafner
4b09baa0a0 use .f instead of .16e for floats
It doesn't write a trailing zero, but it's better than floats being all
over your screen.
2014-02-11 15:06:24 -06:00
Araq
1101a40f91 improvements for 'pretty' 2013-12-28 23:30:53 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
c87e1c96ad some bugfixes; no system.$ for object as it breaks code 2013-02-24 12:34:50 +01:00
Araq
ab6f793408 first version of a simple mark&sweep GC; activate with --gc:markAndSweep 2013-02-07 01:57:10 +01:00
Araq
65fdd641a9 revert to old GC; use --gc:v2 to activate the new GC 2013-01-31 17:24:55 +01:00
Zahary Karadjov
67f37264b3 few notes about the remaining problems with retired buffers 2013-01-27 22:23:57 +02:00
Zahary Karadjov
86bf97a730 cleaned up some debugging code 2013-01-20 21:22:07 +02:00
Zahary Karadjov
083d4f4708 fixes the recently discovered GC memory leaks
This revision is intended as comparison point between the old and the new GC
The used GC can be switched in mmdisp and various statistics will be gathered during
execution (these will be removed/disabled in later revisions)
2012-12-20 15:51:21 +02:00
Araq
ed915a309e DLLs should work again; fixes #169 2012-07-24 01:14:21 +02:00
Araq
959e370ae9 @ is a sigil-like operator 2012-04-15 10:02:15 +02:00
Araq
fb35b855d5 added 'system.shallow' 2012-02-09 20:13:36 +01:00
Araq
4de5b82fdc better inferfacing to boehm GC 2012-01-15 23:47:49 +01:00
Araq
b5aafb4cf3 bugfix: +1 unnecessary in resizeString; caused annoying reallocations for strings created with 'newStringOfCap' 2012-01-02 23:53:07 +01:00