Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread pianopia
great ! I can't wait !

Re: Idea: Nim Online Conference

2020-04-01 Thread moigagoo
I truly believe this is a fantastic idea, and we should make it happen. However, it seems like the thread stagnated. @Araq @dom96 maybe announce this in an official blog post?

Re: Idea: Nim Online Conference

2020-04-01 Thread Araq
Nothing is stagnating, the plan is progressing: * Should be in the first week of June. * Speakers must apply formally in an upcoming Google docs document. * A "sound" check will be done two days before the live streaming.

Re: StashTable: concurrent hash table for sharing data between threads

2020-04-01 Thread Allin
I wanted to make this work onwards Nim 1.0.0 so I had to comment out some runnableExamples. Just realized that I had managed to comment out the whole keys iterator as well (!) Please, reinstall, and sorry for the inconvenience...

Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread Araq
So, this is something that we've considered for a while now, after all these years writing production code in Nim, we long for Python's lack of static checking; in the end there is always a Nim code snippet that tests the part of the Nim compiler we touched anyway, the static type system

Re: E-mail newsletter for blog

2020-04-01 Thread PMunch
Something like this might interest you: [https://blogtrottr.com](https://blogtrottr.com)/

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread jjude
 臘‍♂️ Nice one.

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread WilliamDraco
Hey jjude - Check your calendar.

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread hugogranstrom
Took to long for me to realize XD

Re: Idea: Nim Online Conference

2020-04-01 Thread cdome
I suggest having compiler developers room as part of the conference were we can chat about compiler internals future plans and etc. IMO, new plans. This would require a big conference call with zoom or skype. Also suggesting extra talks on Nim compiler internals as part of the conference. I

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread jjude
All of NIM will be rewritten in Python or only machine learning part? Isn't rewriting all of the language into another language waste of time rather than spending it on improving either the language or the ecosystem?

E-mail newsletter for blog

2020-04-01 Thread asmar
Hello, I was wondering if you thought about setting up an e-mail newsletter for Blog. I saw there's a RSS feed however I don't really use RSS and using a client only for Nim Blog would be tedious. I'd like to get info about the news but I look on the Blog only occasionally simply because I

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread Pixeye
Best 1 April ever XD

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread kaushalmodi
Read that post, peek at the calendar and have a laugh ;-)

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread vitreo12
"I think we can get away with modelling the Nim AST in C via a single void* type" This one line killed me haha

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread hernytan
Writing performant code in C these days? How absolutely immoral! Have you considered our lord and saviour Rust? /s Also, I love this part: "The perfomance critical parts inside the Nim compiler are probably: The lexer, the parser, the semantic checker, the overloading resolution mechanism, the

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread Pixeye
what does this mean for us, humble mortals?

Re: ggplotnim - pretty native plots for us

2020-04-01 Thread Vindaar
Some simple benchmarks comparing the new backend to pandas at: [https://github.com/Vindaar/ggplotnim/tree/arraymancerBackend/benchmarks/pandas_compare](https://github.com/Vindaar/ggplotnim/tree/arraymancerBackend/benchmarks/pandas_compare) Note that I ran the code on a default pandas

Re: Announcement: The Nim compiler is rewritten in Python with some modules optimized in C

2020-04-01 Thread moerm
I'm strongly opposed to that plan! While I fully agree that Nim (currently) does a lot of uncool stuff (e.g. static typing) I do not consider Python and C good choices. Instead of Python we should be bold and directly walk into where the future is: AI based image interpretation instead of

Natural language processing

2020-04-01 Thread spip
Is there some interest for natural language processing in Nim? Something like [Spacy](https://spacy.io/) or [NTLK](http://ntlk.org/)... I've found bits of code but not much. * Peter Row's nimnltk: [https://gitlab.com/peter-row/nimltk](https://gitlab.com/peter-row/nimltk) * @treeform

Is there a way to iterate over a set?

2020-04-01 Thread rishavs
or perhaps to convert a set to a sequence? I am looking to randomly take out a member of a set but hitting a wall here. Something like var availableDoors : set[Directions] = {North, East, South, West} # nextDoor = availableDoors[rand(availableDoors.len)] Run

Re: Idea: Nim Online Conference

2020-04-01 Thread federico3
How about having some regular conference calls during this days, while many people are staying at home due to the lockdown?

Re: Is there a way to iterate over a set?

2020-04-01 Thread PMunch
Well for your specific usecase you can use [sample]([https://nim-lang.org/docs/random.html#sample%2Cset%5BT%5D](https://nim-lang.org/docs/random.html#sample%2Cset%5BT%5D)) from the random module. Otherwise the [manual

Re: Idea: Nim Online Conference

2020-04-01 Thread deech
This sounds great! I'll submit a talk, I'd love to participate.

Re: setMaxPoolSize() doesn't work on first iteration

2020-04-01 Thread cdunn2001
The default threadpool library works fine for very simple cases, but if you want to control over it, you are better off with a threadpool instance instead of a global. I use and highly recommend this: * [https://github.com/yglukhov/threadpools](https://github.com/yglukhov/threadpools)

Re: Template - how to prefix a function's name

2020-04-01 Thread cdunn2001
Does that work because the default type for a template argument is `untyped`? I saw another post recently that said `prefix: string` doesn't work, `prefix: untyped` is required.