Re:Safe and Secure Drivers in High-Level Languages [video]
by pjmlp on Sunday December 30, 2018 @08:56AM
(#18789175)
> You can use the patterns described in the C++ Core Guidelines, and end up with something quite rusty, only without fully-automated checking.
Also known as the mythical "only other programmers commit errors, I am always correct".
Re:Safe and Secure Drivers in High-Level Languages [video]
by asdkhadsj on Sunday December 30, 2018 @09:16AM
(#18789263)
Yea, I'm not sure what point was being made there. Rust isn't about being faster than C, it's about not letting you make mistakes you can make in C/etc.
If you could somehow write perfect code in a timely manner, you'd have no need for Rust. You'd likely also be a unicorn.
Re:Safe and Secure Drivers in High-Level Languages [video]
by steveklabnik on Sunday December 30, 2018 @09:07AM
(#18789229)
You also only need to bump the counts on Rc<T>/Arc<T> for each owner, not for every reference, which reduces refcount traffic.
(Besides, I think std::rc has better performance than the refcounts found in Swift and C++, because it's used in cases that don't need atomic update, and yes this is statically checked too.)