←back to thread

11 points dacsson | 1 comments | | HN request time: 0.228s | source

I know that ~70% of embedded systems are programmed with C, lots of movement or at least motivation is seen on moving to Rust. My question is: why this languages are good for embedded software development? And overall what would constitute a good PL for this domain?
1. hyperbrainer ◴[] No.43730580[source]
Tcl is another language used in the domain; it is rarely used outside of some sectors, but lots of interfaces for embedded systems are written in Tcl, especially in the Electical/Computer/Electronics Engineering sector.

IMO, the implementation of event handling is easy and simple, while being incredibly powerful. It may not fill the same niche as C does, but as a glue/scripting language, it's really good. Furthermore, the Tk library allows easy development of GUIs without much hassle.

Outside of embedded, you can also find it used for automation and testing -- SQLite famously has many millions lines of Tcl code for testing. [0]

[0] https://sqlite.org/testing.html