5 ms·
How practical is rust for small processor IoT applications? Like the ESP8266 we saw recently? https://news.ycombinator.com/item?id=11148129 https://news.ycomb
by mahyarm 11y ago
How practical is rust for small processor IoT applications? Like the ESP8266 we saw recently?
https://news.ycombinator.com/item?id=11148129 https://news.ycombinator.com/item?id=11148129
They often have horrible security, but are very small programs when you use them as wifi temperature sensors or similar. They are good targets for rewrites and greenfield applications. Right now it seems like ardunio C++ or some scripting language is the target.
- pcwalton 11y agoRust is a great choice in theory for anything with an LLVM target, but the libcore "bare metal"/"no standard library" ecosystem is pretty immature, and there are likely to be bugs (like the compiler generating binaries that are too large, etc). If you'd like, please try it out and file any issues you find :)
- johnny22 11y agoI can't say how practical, but folks are working on it, as seen here: http://zinc.rs/ http://zinc.rs/
- fabrice_d 11y agounfortunately there's no LLVM backend for the xtensa cpu used by the ESP8266. There's a gcc backend though, so if someone has the time and skillset to port to LLVM, here's a way to become a hero ;)
- doublec 11y agoThere's a port of ATS programming language for the ESP8266. There's some slides on it here: http://www.slideshare.net/master_q/safer-iot-using-functional-language http://www.slideshare.net/master_q/safer-iot-using-functiona... ATS is a functional programming language that does not use a garbage collector and uses dependent and linear types to do safe system programming. It provides a similar level of safety to Rust with the ability to drop down to C: http://www.ats-lang.org/ http://www.ats-lang.org/