Commit Graph

3013 Commits

Author SHA1 Message Date
Andreas Rumpf
98a1344167 Merge pull request #2957 from apense/patch-7
Added some C99 funcs
2015-06-19 16:09:27 +02:00
apense
c0c4a7d6a6 Added some C99 funcs
Error function (and complementary) and gamma function (and truncated)
2015-06-18 16:07:00 -04:00
Flaviu Tamas
90292754f5 Fix flaviut/nre#20 2015-06-18 12:44:12 -04:00
yglukhov
50d2d54fb0 Fixed fix of #2917 2015-06-17 23:26:38 +03:00
Andreas Rumpf
314fe6b54a Merge pull request #2945 from yglukhov/fix-2917
Fixes #2917
2015-06-17 20:50:08 +02:00
yglukhov
5824b1c839 Fixes #2917 2015-06-17 21:16:18 +03:00
Andreas Rumpf
e2bcf22a84 Merge pull request #2768 from gokr/fix-repr
Fixes #2749, traverse full inheritance for reprRecord
2015-06-16 20:48:51 +02:00
Andreas Rumpf
ad1ac76567 Merge pull request #2851 from stefantalpalaru/gogc
the Go GC (using the gccgo implementation)
2015-06-16 20:46:23 +02:00
Stefan Talpalaru
b487d4e425 conditional TGenericSeq extension 2015-06-16 15:15:17 +02:00
Andreas Rumpf
042c0146cd Merge pull request #2914 from yglukhov/js-exceptions
Fixed and slightly changed exception handling in JS.
2015-06-16 13:07:34 +02:00
yglukhov
ffa4f8dc99 Added noUnhandledHandler 2015-06-15 23:30:09 +03:00
yglukhov
fa1f3aecce Unhandled exceptions handling brought back. 2015-06-15 23:08:38 +03:00
yglukhov
090fc33641 Fixed and slightly changed exception handling. 2015-06-15 21:49:49 +03:00
Andreas Rumpf
77abb8f8b4 Merge pull request #2908 from apense/patch-7
Updated random functions. Fixes #2907
2015-06-15 20:23:40 +02:00
Adam Strzelecki
1057770ce5 colors: Introduce resetStyle enum & use templates
1. Introduce TerminalCmd enum and resetStyle that can be issued to issue
   resetAttributes within styledEcho arguments.

2. Use templates to resolve styledEcho arguments for performance reasons.

3. Try to avoid calling trailing write "\n" and reset attributes where possible.
2015-06-15 11:26:53 +02:00
Stefan Talpalaru
8624654c57 TMemRegion -> MemRegion 2015-06-15 09:18:44 +02:00
Stefan Talpalaru
fe0b6d74f5 cleanup 2015-06-15 08:56:07 +02:00
Stefan Talpalaru
bdac85f2cf Merge branch 'devel' into gogc 2015-06-15 08:44:02 +02:00
Stefan Talpalaru
657d6f9de2 finalizer support 2015-06-15 08:36:55 +02:00
apense
4072a39c69 Updated RNG for Visual C
Can't test it, but it should work just fine. Can be extended to MinGW w/ GCC and other compilers sometime in the future
2015-06-14 21:16:39 -04:00
Araq
8d39669233 fixes #2909 2015-06-15 00:56:20 +02:00
Vlad
059b05a804 fixed #1985 2015-06-14 21:42:43 +03:00
Sergey Avseyev
0fe54a5e14 Fix logger formatting
Motivation
----------
Current implementation does not allow to specify any formatting. It
even cannot output log level, because `writeln()` accepts
`varags[string]` and silently ignores everything before last argument.

Modification
------------
Perform formatting in the single place during substitution. Make log
level optional as all other substitution variables. Also make verbose
logging more informative and parseable.

Result
------
Correct handling formatting and substitutions. Machine-friendly default
output of verbose logger.
2015-06-13 14:41:08 +03:00
apense
7fba7d934b Discarded randomize for windows
It actually doesn't use it because `rand_s` doesn't.
2015-06-11 18:56:59 -04:00
apense
294989daf5 Updated random functions
For Windows, `rand_s` has been available since Windows XP (see https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx). It gives a better quality random number in a larger range (the max is actually `0xffffffff`).
2015-06-11 18:47:28 -04:00
Andreas Rumpf
e36c12ee37 Merge pull request #2902 from yglukhov/js-copying-fix
Fixed copying of aggregates in JS.
2015-06-12 00:30:49 +02:00
Andreas Rumpf
d31fe7666a Merge pull request #2818 from flaviut/add-nre
Add nre to stdlib
2015-06-12 00:13:19 +02:00
Andreas Rumpf
e7bb37d12c Merge pull request #2896 from r-ku/I64-magics-gone
I64 magics gone
2015-06-12 00:06:39 +02:00
yglukhov
6436d1920c Fixed copying of aggregates in JS. 2015-06-11 23:32:08 +03:00
yglukhov
98ec9615f3 Fixed unittest output. 2015-06-11 23:01:44 +03:00
Flaviu Tamas
31514550d3 Revert "Base re off of nre"
This reverts commit dc60a51e15.
2015-06-10 17:14:20 -04:00
Andreas Rumpf
a9e791823e Merge pull request #2891 from sstirlin/devel
fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
2015-06-10 21:07:00 +02:00
Spencer Stirling
891d953a4c disabled threadpool assertion only for vcc 2015-06-10 07:23:07 -06:00
msiglreith
8905ed1dda Fix doc typos in basic2d and basic3d 2015-06-10 14:34:53 +02:00
Araq
d4610d7716 terminal doesn't use enormous windows module anymore 2015-06-10 11:32:10 +02:00
Araq
1b98d32579 no private deprecated symbols 2015-06-10 11:11:29 +02:00
Andreas Rumpf
f3e7e5fc13 Merge pull request #2866 from nanoant/patch/db-deffered-rows
db: InstantRow and instantRows
2015-06-10 11:06:36 +02:00
Andreas Rumpf
cb439d70bc Merge pull request #2892 from apense/patch-6
Fixes #2886 (moves compiler function into the compiler)
2015-06-10 10:55:31 +02:00
rku
87b6220897 Removed magics: mAbsI64 2015-06-10 10:25:36 +03:00
rku
3984fecae6 Removed magics: mBitnotI64 2015-06-10 10:25:36 +03:00
rku
47114342c4 Removed magics: mEqI64 mLtI64 mLeI64 2015-06-10 10:25:36 +03:00
rku
658dcd2a58 Removed magics: mShrI64, mShlI64, mBitandI64, mBitorI64, mBitxorI64
Author:    rku <rokups@zoho.com>
2015-06-10 10:25:36 +03:00
rku
372a5d3cbb Removed magics: mAddI64, mSubI64, mMulI64, mDivI64, mModI64
Author:    rku <rokups@zoho.com>
2015-06-10 10:25:35 +03:00
Federico Omoto
4618cb58c0 Allow to set position at end of stream 2015-06-09 22:25:31 -03:00
apense
3142400351 Removed unnecessary template
`-|` only used in the compiler for negative indexing
2015-06-09 16:21:33 -04:00
Adam Strzelecki
8742907133 db: InstantRow and instantRows
It is drop-in replacement for Row and fastRows, however instantRows returns a
handle, not seq[string], so no Nim string is created until [] operator is
called on the given handle. Also there is a len() proc returning number of
columns in the handle.

In some situations, when we iterate through many rows, but later we just read
few columns this solution will be quicker than converting all column to Nim
seq[string] on each iteration.
2015-06-09 20:53:03 +02:00
Spencer Stirling
d152ccc1e2 fixed threadpool and atomics to work with Visual Studio 32 and 64 bit 2015-06-09 11:59:26 -06:00
Stefan Talpalaru
02ddbae8f6 fix growObj() with strings 2015-06-09 17:58:54 +02:00
apense
0ee1672d69 Updated whitespace ranges
Ranges sourced from <http://www.unicode.org/Public/7.0.0/ucd/PropList.txt>_. Wikipedia also uses these ranges on its information page <http://en.wikipedia.org/wiki/Whitespace_character#Unicode>_. 0xfeff isn't included in the list, but it is a no-break space, so I guess it makes sense. 0x200b is actually a format character, but it is a zero-width space. To fit Unicode, both 0x200b and 0xfeff would be removed.
2015-06-08 19:48:57 -04:00
Dominik Picheta
c4009c6182 Fixes #2884
Haven't tested this patch but should work.
2015-06-08 23:10:50 +01:00