@Prohyon it's actually the other way around. When you use a `for` loop with 1
iterator (e.g. `for i in 0 .. 9:`) you are iterating over **values**. If you
want to also have the corresponding index of each loop you have to do ` for i,
v in 0 .. 9:`, then `i` will be the index and `v` the value. A
Of course other constructs can be used instead, but with this logic you could
also use a different program just to calculate what is known before (main
program's) runtime, and then somehow pipe the results into your program.
The whole point of metaprogramming is **flexibility**. Using closure it
CTE for methods is missing. There must be more.
Recently I found out about CTFE and started reading all about it.
I am very pleased to discover that Nim is currently the #1 language on this
topic!
Dlang is catching up; they are developing a new [bytecode
VM](https://dlang.org/blog/2017/04/10/the-new-ctfe-engine/) for CTFE just like
Nim
I have this feeling that the particular quote of Araq will become really famous
and be remembered. So happy I was the one asking! :D
So... is this accurate?
**Today:** Each thread has its own memory heap and GC. This eliminates pauses
and race conditions but impairs efficiency because the communication between
threads is less nimble (can only exchange messages but no other data).
**Tomorrow:** ARC will allow a shared-memory
Message Passing is not enough?
Hi, I want to eventually start fixing bugs and I worry about misusing git (it's
probably just my lack of experience).
The [relevant article](https://nim-lang.github.io/Nim/contributing.html)
doesn't go into details about branching.
I considered a couple of strategies and I am not sure which one
I barely dare to ask because it might be self-explanatory... but if you can put
it briefly: how will destructors aid concurrency? (I've seen the relevant
articles and videos on destructors but still can't make the connection)
Regarding that... what is currently the preferred way to do laziness in Nim?
Hand-writing closure iterators works, but is there any established library? I
know of [lazy](https://rawgit.com/petermora/nimLazy/master/doc/lazy.html) and
[iterutils](https://hookrace.net/nim-iterutils/iterutils.html),
First of all Merry Christmas! :)
After months of exploring Nim, I realized this is the one for me - meaning I am
here to stay - so I thought I might as well say hi!
I'm still studying CS at university, so my skills are lacking, but I am eagerly
covering ground every day. Programming languages a
11 matches
Mail list logo