7 comments

[ 3.5 ms ] story [ 26.5 ms ] thread
> At this time, Rust is the only viable alternative to C and C++ in these domains.

No, it’s not. See Ada/Spark.

Corrected 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)

Also there is Circuitpython and MicroPython. Probably less ideal for production. But capable enough for those less familiar with programming.
I 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.