Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this exist? #1

Open
Aircoookie opened this issue Jun 20, 2021 · 2 comments
Open

Does this exist? #1

Aircoookie opened this issue Jun 20, 2021 · 2 comments

Comments

@Aircoookie
Copy link

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

@sfranzyshen
Copy link
Owner

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 ...

@sfranzyshen
Copy link
Owner

sfranzyshen commented Jun 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants