Hi @peheje. I'm really not the expert on this, as I'm a newbie at Nim myself, 
but I'm _pretty sure_ I read that everything you send over a Channel is 
_copied_. The refs are local to the thread, so if you send data with ref, both 
the data, and what is pointed by refs, gets cloned "magically". This is why I'm 
looking into making my own "shared heap" replacements for seq/array, and 
eventually sets and tables (although, of course, I would rather use an 
_existing_ "shared heap" implementation of those structures, if one is 
available in some nimble package).

Reply via email to