Somehow Google has managed to ship drivers written in Rust since Android 12.
Re:Redox OS 0.8.0
by forgotpwd16 on Saturday November 26, 2022 @11:52AM
(#33754267)
>but not really fit for systems programming
Ironically you say this on a submitted project that uses Rust for systems programming.
First you have to work around things like direct memory access, writing a "safe" wrapper around direct memory access doesn't really take it from unsafe to safe and you have to fight the language to do the things you have to do when doing kernel work. Then you have to deal with badly optimized output of the compiler which is fine in an user space program but a no-go in a kernel or even worse on embedded. I know some might say "well you aren't supposed to do that, you need X safety measure" but the hardware doesn't work like that, if you try to apply those concepts to out-of-order execution for example you will incur a heavy performance cost.
tl;dr Rust fanboys should read some kernel device driver code and lower level code before giving their input