What are any scripting/programming languages that are available for ICS/IoT devices? Kinda like Micropython where they run on the device to control attached devices.
Conversation
Replying to
Lua. This is what I personally use now. Its free, open source, designed to be extremely lightweight, and isn't a "reduced" version of the language when running on embedded devices. Its working great on ESP8266 chips :) And experimented with ESP32 too.
3
5
It's very similar to JavaScript with simpler objects (tables) and minor syntax differences.
1-indexed arrays, non-string keys for tables, end/begin instead of {}, trivial operator syntax differences from C and less specialized coroutines instead of the JS async/await+yield/next.
1
1
It's very aimed at embedding and barely has a standard library. It's single-threaded and coroutines are a lot less useful out-of-the-box than they seem due to lack of a standard I/O system integrated with it. It's incredibly barebones without third party libraries / frameworks.
I think github.com/f-secure-found is quite compelling for that niche.
It gives you the almost the entire Go standard library and runtime on bare metal. Green threads with abstracted non-blocking I/O are really nice to have when you don't have an OS providing threads, etc.
1


