4 ms·
It actually does. You can modify Rust to run without stdlib, reducing its size significantly. There are also tons of tricks to make this work really well so it'
by m00x 3y ago
It actually does. You can modify Rust to run without stdlib, reducing its size significantly. There are also tons of tricks to make this work really well so it's very close to C performance.
https://esp-rs.github.io/book/ https://esp-rs.github.io/book/
https://github.com/avr-rust/ruduino https://github.com/avr-rust/ruduino
- saagarjha 3y agoC of course generally does not require as many of these tricks, which is why people reach for it first.
- m00x 3y agoC also has decades of maturity behind it. Rust will get there.
- rstuart4133 3y agoIt's not much of a trick in the case of Rust. Rust has a "std" library that I guess is the equivalent of "libc", but is far more comprehensive. Rust also has a "core" library which is the absolute minimum the compiler assumes. It's well defined, well documented and how you use it is standardised. All C implementations have a similar library. For gcc you get it with -lgcc. But it is not "well defined, well documented, with standardised usage". So I'd disagree with you. I've done it, and avoiding libc for in different C implementations is tricker than Rust.