3 ms·
Show HN: Writing embedded firmware using Rust
- the__alchemist 5y agoLink is https://www.anyleaf.org/blog/writing-embedded-firmware-using-rust https://www.anyleaf.org/blog/writing-embedded-firmware-using... I don't know why it's truncating the URL. It stays correct when I post, but is truncated shortly after.
- snoopen 5y agoWhere you talk about memory management, you say there are two types, manual and gc. But after that you refer to "manual memory management" as just "memory management".
- the__alchemist 5y agoThanks - Fixed for consistency.
- kahlonel 5y ago> At this time, Rust is the only viable alternative to C and C++ in these domains. No, it’s not. See Ada/Spark.
- the__alchemist 5y agoCorrected that line. Thanks! Updated line: > At this time, Rust is one of few viable alternatives to C and C++ in these domains. (Other alternatives include ADA, Spark, and Zig)
- snoopen 5y agoAlso there is Circuitpython and MicroPython. Probably less ideal for production. But capable enough for those less familiar with programming.
- the__alchemist 5y agoI need to think on this one - I don't think they're suitable for embedded beyond the scope of learning. Eg a non-starter for anything battery powered, or with minimal latency requirements, which are both common in embedded. More subjectively, they strike me as something designed for people who approach problems with a mindset of "I'm a Python programmer - how do I do this without learning a new language?". I'm writing Python code now to prototype DSP algorithms and generate coefficients for embedded, but I wouldn't run Python on the MCU.