Re:The Resurgence of C Programming
by s_ngularity on Tuesday December 27, 2016 @02:15PM
(#13265371)
It seems highly unlikely to me that Rust would take over true embedded systems (i.e. EEPROM, no OS, etc.), simply because nobody is going to write a Rust compiler for their custom architecture.
The resource constraints are what make C essentially the optimal solution for those applications
Re:The Resurgence of C Programming
by Manishearth on Tuesday December 27, 2016 @02:50PM
(#13265692)
Note that you just need to write an LLVM backend for this, not a full fledged Rust compiler. LLVM IR is somewhere between C and assembly so it should be about as hard as writing a C compiler.
Rust works fine without an OS. Some of the nice-to-have-stuff (inline assembly) aren't stable yet (I have been meaning to push for this with an rfc), but they'll get there.
While I totally agree with C's longevity, Rust has something special going on.
You know that long bets website? I'd be happy to place a ten year bet with someone that Rust starts taking a big slice of C's pie. For kernel development, embedded systems, you name it. I'd be happy to qualify my bet with metrics based assertions, too.