News for hackers. Stuff that matters.
Re:Why is Rust slightly slower than C? by unrealhoang on Thursday September 12, 2019 @05:39AM (#20949659)
You can write zero ops destructor as well. So yes, RAII is zero-cost abstraction.
Re:Why is Rust slightly slower than C? by fluffything on Thursday September 12, 2019 @05:51AM (#20949712)
I literally said so.
Re:Why is Rust slightly slower than C? by ncmncm on Thursday September 12, 2019 @09:50AM (#20951410)
You wrote that in C++ and Rust it is necessary to "opt out" of properly freeing memory. That is a false statement. It is not just incidentally false, it is fundamentally false.