Very exciting to see a language tuned toward reliability taking off like this.
Very exciting to see a language tuned toward reliability taking off like this.
I work in arm32 daily, it works well for us. Happy to help if you need some!
https://doc.rust-lang.org/nightly/rustc/platform-support.htm...
A Rust + Swift, massively cross-compiled future sounds pretty nice actually.
https://github.com/mmastrac/stylus/blob/master/.github/workf...
no_std is the result of that. The panic/backtrace machinery turns out to be remarkably expensive. formatting machinery turns out to be expensive. etc.
The fundamental problem is that Rust relies REALLY hard on LLVM optimizing stuff away after code generation. That's not a good way to deal with embedded. It has issues even on Desktop, too (for example, the difference in speed between debug and release modes is enormous--often to the point that if you have performance code you can't realistically run a debug build to actually ... you know ... debug).
There are changes afoot because of MIR, but they will take a while to land.
People forget how many companies created weird and wacky compilers for C on 8-bit targets because C code was "too large/too slow/etc." And how many years those companies persisted.
Optimization for embedded takes time, and the amount of resources available for it is orders of magnitude smaller than general development.