Unstable compilers
Unstable compilers
Posted Sep 25, 2024 10:42 UTC (Wed) by Wol (subscriber, #4433)In reply to: Unstable compilers by pbonzini
Parent article: Committing to Rust in the kernel
> > it appears the Rust devs seem much more amenable to treating "you're optimising away necessary code" as a bug than the C folks were.
> The optimization backend in the end is the same, the difference is that the language itself is designed to make it harder to trigger undefined behavior.
Maybe that's the effect. But even today the C devs seem keen on creating new undefined behaviours. In Rust, undefined behaviour is viewed as a bug in the language (or as "you can only do that in an unsafe block") as far as I can tell. Completely diametric views on UB.
Cheers,
Wol
