Re:Maestro: A Linux-compatible kernel in Rust
by SirMittens on Thursday January 04, 2024 @02:10AM
(#38864062)
I assume parent probably meant that the worse you can do in rust (e.g use of unsafe... etc) would just put you back at C level of memory safety.
Re:Maestro: A Linux-compatible kernel in Rust
by Anonbrit on Thursday January 04, 2024 @06:44AM
(#38865832)
Rust has a few small but unavoidable runtime overheads compared to the best C (maybe they can be avoided with the right unsafe usage but that removed most of the benefits of rust). They are difficult to see the affect of without micro-benchmarking in my very limited experience, but C can avoid them
Re:Maestro: A Linux-compatible kernel in Rust
by steveklabnik on Thursday January 04, 2024 @12:00PM
(#38869374)
I am not saying that Rust is better, but not worse. Saying unsafe Rust doesn't count because it's unsafe but C gets to count feels like an unfair comparison to me: this did start out with assuming perfection on both sides.
Is this clear? Why would the best Rust be worse than the best C?