News for hackers. Stuff that matters.
Re:Memory Safety for Skeptics by tialaramex on Monday November 10, 2025 @08:22PM (#45883030)
It could be, but it's often just that the things you got in the box were higher quality and so your results are higher quality by default.

Better types like VecDeque<T>, better implementations of common ideas like sorting, even better fundamental concepts like providing the destructive move, or the owning Mutex by default.

Even the unassuming growable array type, Rust's Vec<T>, is just plain better than C++ std::vector<T>. It's not a huge difference and for many applications it won't matter, but that's the sort of pervasive quality difference I'm talking about and so I can well believe that in practice this ends up showing through.

Re:Memory Safety for Skeptics by vlovich123 on Monday November 10, 2025 @11:23PM (#45884099)
There’s also compiler optimizations that aren’t available in c++ - noalias automatically applied everywhere + the compiler automatically optimally laying out structs is probably a non trivial perf add as well.