This commit is contained in:
Araq 2014-11-10 01:33:25 +01:00
commit b6e006fbbe
5 changed files with 32 additions and 11 deletions

View file

@ -6,7 +6,7 @@ documentation.
Compiling the Nim compiler is quite straightforward. Because Compiling the Nim compiler is quite straightforward. Because
the Nim compiler itself is written in the Nim programming language the Nim compiler itself is written in the Nim programming language
the C source of an older version of the compiler are needed to bootstrap the the C source of an older version of the compiler are needed to bootstrap the
latest version. The C sources are available in a separate repo [here](http://github.com/nim-code/csources). latest version. The C sources are available in a separate repo [here](http://github.com/nim-lang/csources).
Pre-compiled snapshots of the compiler are also available on Pre-compiled snapshots of the compiler are also available on
[Nimbuild](http://build.nim-lang.org/). Your platform however may not [Nimbuild](http://build.nim-lang.org/). Your platform however may not
@ -32,7 +32,7 @@ If you are on a fairly modern *nix system, the following steps should work:
``` ```
$ git clone git://github.com/Araq/Nim.git $ git clone git://github.com/Araq/Nim.git
$ cd Nim $ cd Nim
$ git clone --depth 1 git://github.com/nim-code/csources $ git clone --depth 1 git://github.com/nim-lang/csources
$ cd csources && sh build.sh $ cd csources && sh build.sh
$ cd .. $ cd ..
$ bin/nim c koch $ bin/nim c koch

22
tests/parallel/t5000.nim Normal file
View file

@ -0,0 +1,22 @@
discard """
output: '''50005000'''
"""
import threadpool, strutils
proc foo(x: int): string = $x
proc main() =
var a = newSeq[int]()
for i in 1..10000:
add(a, i)
var s = 0
for i in a:
s += parseInt(^spawn(foo(i)))
echo s
setMaxPoolSize 2
parallel:
spawn main()

View file

@ -1,9 +1,8 @@
version 0.10 version 0.10
============ ============
- find out why global installations end up using the wrong stdlib
- implement 'procCall'
- make nimble part of the distribution - make nimble part of the distribution
- implement 'procCall'
- split idetools into separate tool - split idetools into separate tool
- split docgen into separate tool - split docgen into separate tool

View file

@ -148,7 +148,7 @@ Options:
-h, --help shows this help -h, --help shows this help
-v, --version shows the version -v, --version shows the version
Compile_options: Compile_options:
will be passed to the Nimrod compiler will be passed to the Nim compiler
""" """
proc parseCmdLine(c: var TConfigData) = proc parseCmdLine(c: var TConfigData) =

View file

@ -17,7 +17,7 @@ IRC is the perfect place for people just starting to learn Nim and we
welcome any questions that you may have! welcome any questions that you may have!
You may also be interested in reading the You may also be interested in reading the
`IRC logs <http://build.nim-code.org/irclogs/>`_ which are an archive of all `IRC logs <http://build.nim-lang.org/irclogs/>`_ which are an archive of all
of the previous discussions that took place in the IRC channel. of the previous discussions that took place in the IRC channel.
Github Github
@ -28,9 +28,9 @@ Together with the `wiki <http://github.com/Araq/Nim/wiki>`_ and
`issue tracker <http://github.com/Araq/Nim/issues>`_. `issue tracker <http://github.com/Araq/Nim/issues>`_.
Github also hosts other projects relating to Nim. These projects are a part Github also hosts other projects relating to Nim. These projects are a part
of the `nim-code organisation <http://github.com/nim-code>`_. of the `nim-lang organisation <http://github.com/nim-lang>`_.
This includes the `Babel package manager <http://github.com/nim-code/babel>`_ This includes the `Babel package manager <http://github.com/nim-lang/babel>`_
and its `package repository <http://github.com/nim-code/packages>`_. and its `package repository <http://github.com/nim-lang/packages>`_.
Twitter Twitter
======= =======
@ -59,9 +59,9 @@ There are always many things to be done in the main
`issues <https://github.com/Araq/Nim/issues>`_ for `issues <https://github.com/Araq/Nim/issues>`_ for
things to do; pull requests are always welcome. You can things to do; pull requests are always welcome. You can
also contribute to the many other projects hosted by the also contribute to the many other projects hosted by the
`nim-code <https://github.com/nim-code>`_ organisation on github. If you `nim-lang <https://github.com/nim-lang>`_ organisation on github. If you
can't find anything you fancy doing, you can always ask for inspiration on IRC can't find anything you fancy doing, you can always ask for inspiration on IRC
(irc.freenode.net #nim) or on the `Nim forums <http://forum.nim-code.org>`_. (irc.freenode.net #nim) or on the `Nim forums <http://forum.nim-lang.org>`_.
Donations Donations
--------- ---------