Commit Graph

521 Commits

Author SHA1 Message Date
Araq
3d512a73e6 documentation improvements; system.nim docs adapted to unix's braindead idea of how software should be packaged which didn't work in 1970 and surprise doesn't work in 2015 either 2015-10-21 02:18:38 +02:00
Araq
d221241ac5 fixes wrong doc comments 2015-10-19 16:11:39 +02:00
JamesP
e84a411e60 add example to proc headings for
addr, and, or, xor, div, mod, shl, cmp, setLen
2015-10-19 09:55:42 +10:00
Yuriy Glukhov
e7918fe6e5 Avoid extra copy in JS when inserting. 2015-10-15 17:59:23 +03:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Andreas Rumpf
7b9d929d50 Merge pull request #3423 from petermora/breakSequtils
Break sequtils
2015-10-12 20:42:17 +02:00
Araq
967c20743a Merge branch 'gc-fixes' of https://github.com/rbehrends/Nim into rbehrends-gc-fixes 2015-10-12 17:34:44 +02:00
Peter Mora
75097e2981 sequtils related changes 2015-10-05 22:42:22 +02:00
Araq
dd2225fe07 NimScript: --threads:on works in a nims file 2015-09-30 17:18:52 +02:00
Jakob Oesterling
ca9845dcc0 fixed wrong examples 2015-09-26 01:08:49 +02:00
Jakob Oesterling
709c4f7229 Merge branch 'devel' of github.com:TheAnonymous/Nim into devel 2015-09-25 18:39:30 +02:00
Jakob Oesterling
e429810220 added examples in documenation for add del delete repr insert 2015-09-25 18:38:32 +02:00
Jakob Oesterling
c04ae96e11 added examples in documenation for sizeof high low 2015-09-25 18:08:10 +02:00
Jakob O.
b9d00c8693 Update system.nim 2015-09-24 10:07:58 +02:00
Jakob Oesterling
d7656ceec7 added examples in documenation for len dec inc incl excl 2015-09-24 00:34:03 +02:00
Dominik Picheta
371470e73f Fixes #2889. Merges *tostring tests in tests/system. 2015-09-23 00:04:31 +01:00
Araq
80bdb2f3b2 fixes #3343 2015-09-18 12:30:07 +02:00
Araq
29a9166966 fixes the most pressing regressions introduced by the new handling of a[i] in the compiler 2015-09-16 15:34:54 +02:00
Araq
0aa908c86c clarify the meaning of the 'auto' metatype; 'auto' is now bind-multiple; fixes #3224 2015-09-14 20:25:52 +02:00
Araq
8ef66b973d first attempt to fix 'a[i]' handling in generics 2015-09-12 10:55:28 +02:00
Andreas Rumpf
0c7d52e34c Merge pull request #3274 from yglukhov/seq-insert-js-fix
Fixed seq.insert and seq.delete for js.
2015-09-09 17:32:55 +02:00
Reimer Behrends
639b5e0069 Properly register threads with the Boehm GC.
In order to be able to scan thread stacks, the Boehm GC needs to know
about newly created threads. We establish the end of the stack by using
GC_call_with_stack_base (this works properly also with the dual-stack
Itanium architecture) and then GC_register_my_thread() to register a
thrad and GC_unregister_my_thread() to unregister it again.

This patch also includes a modification for the refc and markandsweep
collectors to set the stack bottom for thread stacks correctly even if
an optimizer aggressively inlines and optimizes procedures (this is
already being done for the stack of the main thread).

Finally, we use the {.noconv.} pragma for the Boehm GC, as the Boehm
API uses no specific calling convention.
2015-09-08 19:01:06 +02:00
Araq
5eaf68882e fixes #3300 2015-09-08 10:37:34 +02:00
Yuriy Glukhov
b3cecddd64 Fixed seq.insert and seq.delete for js. 2015-09-07 18:10:45 +03:00
Yuriy Glukhov
4ef4ad305c Fixed nimvm in generics. 2015-09-07 13:49:32 +03:00
Yuriy Glukhov
790ef23c48 nimvm is magic 2015-09-04 20:50:29 +03:00
Araq
e90c155260 fixes 'line too long' warnings 2015-09-03 14:30:10 +02:00
Andreas Rumpf
2733c508ef Merge pull request #3143 from def-/readline-faster
Improve performance of readLine by using fgets
2015-08-21 21:30:27 +02:00
Araq
69b32637b1 implements experimental new config system based on NimScript 2015-08-16 13:41:30 +02:00
Araq
87815cbdf7 attempt to fix bootstrapping; refs #3139 2015-08-07 22:32:06 +02:00
Araq
94e504113e fixes #3193 2015-08-07 19:40:58 +02:00
Dominik Picheta
05ada2da43 Merge pull request #3180 from yglukhov/3179-workaround
Workaround for #3179.
2015-08-05 19:41:19 +01:00
Araq
ab26298a03 added system.unsafeAddr 2015-08-04 17:31:18 +02:00
Dominik Picheta
f8f9677205 Updated documentation of system.new. Ref #2699. 2015-08-04 09:06:47 +01:00
Yuriy Glukhov
436b847a7e Workaround for #3179. 2015-08-03 14:11:48 +03:00
Michał Zieliński
0575437762 Improve discoverability of 'of' operator 2015-08-02 22:55:22 +02:00
Andreas Rumpf
6fea1a7bb6 Merge pull request #2699 from SSPkrolik/newrefref
new now able to make distinction between ref and non-ref types, so we…
2015-08-02 11:05:47 +02:00
def
13389eab9b Add arm64 support (untested) 2015-07-31 23:57:50 +02:00
def
130605567e Add powerpc64el support (untested) 2015-07-31 23:55:31 +02:00
def
70c4176105 Add Mipsel CPU support (untested) 2015-07-31 23:16:52 +02:00
Dominik Picheta
ce4e877702 $ for tuples/objects now handles a nil value correctly. Fixes #3149. 2015-07-26 18:15:19 +01:00
def
3943fba34b Improve performance of readLine by using fgets
This drops compatibility with pure CR line endings of old Mac systems
2015-07-24 00:31:35 +02:00
Araq
caf7717cb8 removed system.free 2015-07-18 20:41:45 +02:00
Araq
728fc441ef staticExec now supports caching 2015-07-15 22:00:44 +02:00
Andreas Rumpf
fc9dc6c828 Merge pull request #2272 from def-/unsigned
Move unsigned int operations to system module
2015-07-11 13:28:20 +02:00
Andreas Rumpf
459793ca4c Merge pull request #3073 from apense/patch-12
Added safeAdd documentation
2015-07-11 13:23:07 +02:00
Joey
1bc101137b Expose the name of an exception. 2015-07-10 14:55:06 -06:00
apense
a6e660e935 Corrected documentation 2015-07-09 14:02:21 -04:00
apense
5a2e575bb6 Doubled ticks 2015-07-09 00:03:18 -04:00
apense
af1a5f3244 Updated & parameters 2015-07-06 23:02:17 -04:00