Found this recently! Not associated with them, but I'm excited to find something that might work for me. Looking for opinions.
Not sure what to think of it yet. Seems like it's PERFECT for a scripting project I have where I want to take in a remotely generated list of C functions and run them handle from script.
I was on the DSL path but handling logic like "wait for state to be true", "if else branch" and etc was going to be a lot of work. Plus just keeping up to date on the DSL device and remote side was going to be a challenge.
Looked at MicroPython and eLua from advice here, 128K and 192K MINIMUM respectively.
No std library, seems designed for embedded. Same guy who does "V7" JS interpreter. This seems to be a deconteded derivative with one addition I like. FFI, Foriegn Feature Interface.
In order to call a C function from JS it's:
let f = ffi('int gpio_write(int, int)');
f(2, 1);
25KB Flash, 1KB RAM, one C file one H file, both look easy enough to follow and have decent comments. It SEEMS like exactly what I was looking for. Not sure. Thoughts anyone?
https://mongoose-os.com/blog/mjs-a-new-approach-to-embedded-scripting/https://github.com/cesanta/mjs