Hacker News new | past | comments | ask | show | jobs | submit login

How practical is rust for small processor IoT applications? Like the ESP8266 we saw recently?

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.




Rust 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 :)


There'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-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/


unfortunately 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 ;)


I can't say how practical, but folks are working on it, as seen here: http://zinc.rs/




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: