[nim-dev] Re: Parallel loop iterator
- From: Libman <a@xxxxxxxxxx>
- To: nim-dev@xxxxxxxxxxxxx
- Date: Thu, 29 Dec 2016 23:15:22 +0000
As `say the docs <http://nim-lang.org/docs/system.html#||.i,S,T,string>`_:
"Note that the compiler maps that to the ``#pragma omp parallel for``
construct of OpenMP **and as such isn't aware of the parallelism in your
code! Be careful! Later versions of || will get proper support by Nim's code
generator and GC.**"
It's inevitable for a very young programming language to have placeholders for
features before they are fully baked. (And Nim indeed is still "a very young
programming language" in many ways, given its breadth and how few programmers
had been involved in the beginning, despite the chronological starting point
being 2005.)
Maybe the docs just need more emphasis: ***"HERE BE DRAGONS"*** ;)
Other related posts: