Does this exist?
Aircoookie opened this issue · 2 comments
ArduinoJS seems to perfectly suit my needs, but am I right that what is described in the readme is just a concept for now?
The closest I was able to find is cesanta/elk
, but it is not yet perfect for my potential realtime application.
Wishlist:
- Bytecode executing VM (full interpreter is too slow)
- JS to bytecode compiler (separate, can be either an on-device C library or on a different device, e.g. written in JS)
- only bare minimum feature set (if/while/for/let/function, maybe objects)
- fast C FFI (no string compare, thinking of e.g. an array of functions)
- provides no modules for e.g. WiFi, sensor (if desired, need to be done via FFI)
- library (not full firmware)
- as little RAM and ROM usage as reasonably possible
- Permissive License
If I find a suitable project, I'll share it here. Duktape seems promising but could be too big and/or too slow.
Otherwise, I might implement it myself, though it's certainly no small task :)
I am currently working with moddable's xs under arduino esp8266 ... very little ram left over
I also have been using cesanta/elk under arduino esp8266 ... limited subset of javascript ... but enough ram to work with ... I still have plans to return to this project in time ...
The closest I was able to find is
cesanta/elk
, but it is not yet perfect for my potential realtime application.
Take a Look at this ... https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/tools/tools.md#xsc
or not Javascript ... https://github.com/wasm3/wasm3-arduino