News for hackers. Stuff that matters.
Re:A pure JavaScript implementation of Git for Node and brow... by Too on Thursday May 17, 2018 @03:19PM (#17094590)
Does rust have something like shared pointers? In c++ that's usually a quite easy way to bail out of the cognitive burden of understanding complex lifetimes.
Re:A pure JavaScript implementation of Git for Node and brow... by steveklabnik on Thursday May 17, 2018 @03:27PM (#17094657)
We have two! Rc is non-atomic, and therefore not threadsafe. Arc is atomic, and therefore threadsafe. The compiler can let you know if you are using Rc inappropriately, so you get some extra speed if you are single threaded.