4 ms·
Rust is not a C replacement, it is a C++ replacement. Many of the people writing code in C do not want to use C++. And many of the embedded use cases for C al
by com2kid 4y ago
Rust is not a C replacement, it is a C++ replacement.
Many of the people writing code in C do not want to use C++.
And many of the embedded use cases for C already involve very careful memory usage. If you've banned malloc and don't have threads, you've removed a huge swath of common bug sources right off the bat.
For someone writing code to setup registers on a DMA controller, Rust has nearly 0 benefit.
(That said, no one should be writing new command line utilities in C, parsing arbitrary data in C is dangerous!)
- steveklabnik 4y agoNot everyone agrees with this characterization, including some well known (now former) C developers: http://dtrace.org/blogs/bmc/2018/09/18/falling-in-love-with-rust/ http://dtrace.org/blogs/bmc/2018/09/18/falling-in-love-with-...
- com2kid 4y agoExcellent post, thanks for linking. The arguments made for replacing C with Rust seem sound.