News for hackers. Stuff that matters.
Re:Upcoming Rust language features for kernel development by Lvl999Noob on Thursday October 16, 2025 @09:31AM (#45605138)
Rust's design eliminates data races completely. It also makes it much easier to write thread safe code from the start. Race conditions are possible but generally less of a thing compared to C++ (at least that's what I think).

Nothing is preventing you from writing correct C++ code. Rust is strictly less powerful (in terms of possible programs) than C++. The problem with C++ is that the easiest way to do anything is often the wrong way to do it. You might not even realize you are sharing a variable across threads and that it needs to be atomic.

There are no comments on this comment yet.