News for hackers. Stuff that matters.
Re:A lot of complex “scalable” systems can be done with a si... by masklinn on Monday December 30, 2019 @04:11AM (#21911968)
One of the advantages of rust is its ability to segregate safe-to-share (between concurrent contexts) and not so, at compile time.

While it can’t (yet?) be generic over them, it lets you use the non-atomic Rc in thread-bound structures and know this is never going to be shared between threads, whereas the more expensive Arc can have handles be moved from one thread to an other.

Re:A lot of complex “scalable” systems can be done with a si... by safercplusplus on Monday December 30, 2019 @05:59AM (#21912501)
Counterparts for Rc [1] and Arc [2] (and compiler enforcement of their safe use [3]) are available in C++, though not standard.

[1] https://github.com/duneroadrunner/SaferCPlusPlus#reference-c...

[2] https://github.com/duneroadrunner/SaferCPlusPlus#tasyncshare...

[3] https://github.com/duneroadrunner/scpptool