Re: What should next Araq's live stream be about?

2017-10-19 Thread dom96
Araq is live now

Re: Problem using

2017-10-19 Thread Stefan_Salewski
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 =

Re: nim-cookbook

2017-10-19 Thread nimboolean
Thanks! I'm still finding my way around Nim and this is helpful.

Re: Problem using

2017-10-19 Thread jzakiya
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..

Re: What should next Araq's live stream be about?

2017-10-19 Thread cdome
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.

nim-cookbook

2017-10-19 Thread nimboolean
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 -

Re: Problem using "spawn"

2017-10-19 Thread Stefan_Salewski
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,

Re: What should next Araq's live stream be about?

2017-10-19 Thread monster
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?

Beginner question about nil access

2017-10-19 Thread fishsticks
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:

Problem using "spawn"

2017-10-19 Thread jzakiya
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..

Re: Go-lang like interface

2017-10-19 Thread doofenstein
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

Re: What should next Araq's live stream be about?

2017-10-19 Thread cdome
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.

Re: Unhandled exception: key not found [KeyError]

2017-10-19 Thread sky_khan
@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

Re: Unhandled exception: key not found [KeyError]

2017-10-19 Thread alfrednewman
Thank you guys ! @mratsim, off topic: [https://twitter.com/DeepMindAI/status/920696139657240576](https://twitter.com/DeepMindAI/status/920696139657240576) Cool !!

Re: Unhandled exception: key not found [KeyError]

2017-10-19 Thread jlp765
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,

Re: Unhandled exception: key not found [KeyError]

2017-10-19 Thread alfrednewman
@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