Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
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?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <KnorrFG> nvm, found this: https://forum.nim-lang.org/t/3870
<ForumUpdaterBot> New thread by Geohuz: Need help on getting notifcation message from postgresql, see https://forum.nim-lang.org/t/7550
From IRC (bridge bot)
@FromIRC
<FromDiscord> <carpal> In reply to @KnorrFG "but if the ref": maybe reallocate? idk
<FromDiscord> <Rika> new allocation
<FromDiscord> <Rika> no need to use if you use Type() notation though
<FromDiscord> <Tigor> sent a long message, see http://ix.io/2QvM
<FromDiscord> <Tigor> (edit) "http://ix.io/2QvM" => "http://ix.io/2QvN"
From IRC (bridge bot)
@FromIRC
<FromDiscord> <konsumlamm> ye, sounds right
<FromDiscord> <KnorrFG> sent a code paste, see https://play.nim-lang.org/#ix=2QvP
From IRC (bridge bot)
@FromIRC
<FromDiscord> <hamidb80> Error: closure in spawn environment is not allowed
<FromDiscord> <Rika> finalizers are being deprecated, use destructors (i forgot the link wait)
<FromDiscord> <Rika> not sure if this will fix the issue
<FromDiscord> <Rika> worth a try tho
<FromDiscord> <KnorrFG> ok, but doesnt that require --gc:arc?
<FromDiscord> <Rika> i believe not
<FromDiscord> <konsumlamm> are you using spawn (or threadpool) anywhere?
<FromDiscord> <hamidb80> In reply to @konsumlamm "are you using spawn": sent a code paste, see https://play.nim-lang.org/#ix=2QvR
liuxiaodong
@gogolxdong
sometimes crashes without stack
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> <Rika> as in for spawning threads
<FromDiscord> <hamidb80> (edit) "wired" => "wierd"
<FromDiscord> <Rika> and its not gonna break?
<FromDiscord> <hamidb80> In reply to @Rika "as in for spawning": i dont know about threading in nodejs
<FromDiscord> <Rika> spawn is threading
liuxiaodong
@gogolxdong
https://github.com/Araq/fosdem2020 doesn't compile with latest devel
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Rika> thats why you cant use closures
<FromDiscord> <Rika> because it will lead to race conditions and such
<FromDiscord> <KnorrFG> sent a code paste, see https://play.nim-lang.org/#ix=2QvY
<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
<FromDiscord> <konsumlamm> sent a code paste, see https://play.nim-lang.org/#ix=2Qw0