Nim is a compiled, garbage-collected systems programming language which has an excellent productivity/performance ratio. Nim's design focuses on efficiency, expressiveness, elegance (in the order of priority).
People
Repo info
Activity
Mar 03 2017 15:52
@dom96 banned @Octopoda7
Feb 12 2017 23:57
@dom96 banned @zzz125
Dec 23 2016 19:43
@dom96 banned @Izrab
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Rika> other than one is stack one is heap?
<FromDiscord> <KnorrFG> id say thats a pretty relevant difference
<FromDiscord> <KnorrFG> ty
<FromDiscord> <Rika> well i dont know if you know that difference
<FromDiscord> <KnorrFG> but if the ref version is already on the heap. what is new used for then?
Error: execution of an external program failed: 'C:\Users\asus\nimcache\guiNode_r\guiNode.exe '
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Rika> In reply to @hamidb80 "yes ```nim import": cant do that, vt has to be in getInput
<FromDiscord> <Rika> thats why the closure error
<FromDiscord> <hamidb80> In reply to @Rika "cant do that, vt": 👍
<FromDiscord> <hamidb80> i think with my Nodejs background it's gonna take time to adapt myself with nim
<FromDiscord> <konsumlamm> In reply to @hamidb80 "yes ```nim import": the error message is telling you exactly what's wrong there, you can't use a closure with spawn
<FromDiscord> <Rika> well they dont know what a closure is prolly
<FromDiscord> <Rika> or why getInput is a closure
<FromDiscord> <konsumlamm> a closure is a function that captures another variable (in this case vt)
<FromDiscord> <konsumlamm> (closures also exist in JS btw)
<FromDiscord> <Rika> theyre heavily used in js i believe
<FromDiscord> <hamidb80> In reply to @konsumlamm "(closures also exist in": i know but with js you can write every wired code
<FromDiscord> <Rika> even in node.js?
<FromDiscord> <hamidb80> In reply to @Rika "even in node.js?": yes
<FromDiscord> <konsumlamm> the reason is probably that threads must own the values they use (with the current default GC at least), so you can't reference variables that are possibly in another thread
<FromDiscord> <konsumlamm> In reply to @KnorrFG "if I try this:": you have to use it on the underlying object, yes