News for hackers. Stuff that matters.
Re:Let’s sunset C/C++ by pmelendez on Friday August 14, 2015 @03:26PM (#10062288)
> In Rust, if you need shared ownership, but you're not doing anything with threads, you can remove that overhead.

If I am following you well, then what you are saying is that you if you are in a single thread application you don't need to use a shared_ptr equivalent. Wouldn't that mean that you are using a garbage collected pointer? (Which should have a greater overhead than a shared pointer) because otherwise you would be using plain old raw pointers (with all its problems).

Re:Let’s sunset C/C++ by steveklabnik on Friday August 14, 2015 @04:03PM (#10062565)

  > you don't need to use a shared_ptr equivalent
Well, it's the same thing, but without the atmoics. Rc and Arc only differ in the instructions used to update the count, Rc uses regular increment, Arc uses atomic increment. The code is otherwise the same.
Re:Let’s sunset C/C++ by chadzawistowski on Wednesday August 26, 2015 @03:52AM (#10121677)
How confusing! Rust's Arc is "atomic reference counting" whereas Obj-C/Swift's Arc is "automatic reference counting"