and many bugs were found, and many are found every day. Rust was written to help prevent the bugs that C has generated over its long time of being around
Examples? What isn't explicit in Rust but is in C? The main difference I can think of is that outside unsafe blocks, you don't call malloc/free but instead use smart pointers like C++. If you want to use malloc/free just wrap it in an unsafe block.
Do you think the kernel devs are stupid and ignorant and haven't considered all this?
You almost never need raw malloc/free. Usage of unsafe blocks is very low. Remember, with Rust you only need to manually check the unsafe blocks. In C you need to check the whole thing no exceptions.
Why?. Look at adios from oak ridge national labs. That is entirely unsafe, and by sacrificing type safety you gain a lot in terms of IO performance and abstraction.
4
u/throwaway6560192 Apr 15 '21
What kind of "things" are you expecting to go wrong here?