Sure, nim-lang/threading solves this basically by re-implementing part of arc 
but using atomics for the RCs instead. That solves my particular problem, but 
this does not integrate seamless with the rest of arc of course. This is one of 
the cases where arc could shine, if it were to support this use case natively.

So it seems that Nim still lacks some machinery to solve my original problem 
then? Are there any plans to integrate some of the nim-lang/threading 
functionalty in the core language? I understand that making arc do atomic RCs 
by default comes at too high a price, but I can see a solution where the user 
could choose for particular refs to make them atomic, with arc supporting this 
natively?

Reply via email to