Araq is live now
I think we will not be able to compile your code, as it looks not like a
complete program.
Do you really expect that
cnt += spawn segcount(i*KB, Kn)
may work? I have no idea how it could.
Maybe what you intent is something like
parallel:
var cnt =
Thanks! I'm still finding my way around Nim and this is helpful.
I've done it both with/out `parallel:` as shown below, but get the same
compiler output.
parallel:
var cnt = 0 # count for the segment primes '1'
bytes
for i in 0..
Sorry, I slightly exaggerated. read only access to github is available, it is
not allowed to login or post not to leak internally developed code.
I have started writing a Nim Programming Cookbook similar to those in Python,
Perl etc.,
The website is
[http://nim-cookbook.btbytes.com](http://nim-cookbook.btbytes.com)/ . The
source code to the cookbook is on github -
Do you use the parallel statement at all as described in the manual? Or only a
plain spawn? See
[https://nim-lang.org/docs/manual.html#parallel-spawn](https://nim-lang.org/docs/manual.html#parallel-spawn)
You may also need a FlowVar.
I did test parallel once for calculation of a convex hull,
It's "off topic", but I have to ask: Why on earth would any company block
_github_? Is that the result of an extreme case of Not-Invented-Here syndrome?
Hey all,
I very new to Nim and was writing a tiny command line todo application to get
my bearings. [Here's a link to a code
snippet](https://gist.github.com/anonymous/d2c2e8df2573d5a7be35f56caf8d3780)
When I run this code, I get this error and I'm not sure how to circumvent it:
OK, I've racked my brain enough and need help. Using 0.17.2 on Linux, I have
this `proc` below.
proc segcount(row, Kn: int): int =
var cnt = 0
for k in 0..
This thread is a bit dusty, but I just want to mention, that I made some
improvements to andrea's implementation, in case somebody is still interested
in interfaces like this, while vtrefs are still unimplemented.
Mainly I fixed it(previously the generated AST was invalid) and added a way to
Could you please keep on reposting Nim stream announcements in this forum.
Would be very useful for those to have twitter, facebook and github blocked at
work.
@Araq, English is not my native language. When I started programming as a
child, my all English knowledge was consisting of "What is this? This is a
pencil" So I learned programming by reading and tinkering other people's code
and learned English by trying to understand programming manuals, all
Thank you guys !
@mratsim, off topic:
[https://twitter.com/DeepMindAI/status/920696139657240576](https://twitter.com/DeepMindAI/status/920696139657240576)
Cool !!
Ironically, it is newbies who recognize what is missing.
Add a **PR** as you learn, so others can benefit. It also gets you familiar
with contributing to Nim.
There have been many suggestions of a **cookbook** for easy cut and paste of
example code. It hasn't really gained traction,
@sky_khan, I agree with you. The more examples the better!
I am also learning Nim ... one of the main problems I had (and I have) is
precisely the absence of examples in the documentation.
In addition, I would kindly ask a favor for the older staff - please create
more examples in the
16 matches
Mail list logo