4 ms·
Nobody is saying that every application of C is one where Rust would provide a clear benefit. But there are many examples where writing code C++ or C would resu
by cyphar 7y ago
Nobody is saying that every application of C is one where Rust would provide a clear benefit. But there are many examples where writing code C++ or C would result in many more memory safety bugs than if the project was written in Rust (even partially).
In the firmware world, arguably if the ESP8266 firmware was written in Rust it's less likely that some of the remote exploits from September would've been possible.
- jonny383 7y ago> In the firmware world, arguably if the ESP8266 firmware was written in Rust it's less likely that some of the remote exploits from September would've been possible. Less likely, but not guaranteed. Rust is still very new, which means if people are migrating from writing firmware in C to Rust, chances are they are going to bring across C habbits, which will frankly lead to writing C in unsafe Rust. The security of Rust is only as strong as the author who wrote it. We currently don't have anyone who started their firmware career on Rust.