3 ms·
Does this mean we can run JS on embedded systems / low cost CPU ? That would be awesome.
by z3t4 12y ago
Does this mean we can run JS on embedded systems / low cost CPU ? That would be awesome.
- hamiltonkibbe 12y agoYou would need a JS runtime compiled for your target device, or a standalone JS compiler for your target device. EDIT: Assumed you meant running JS on-the-metal. If you're running an OS then you could just have a JS interpreter (or V8) running on it. How do you define an interrupt handler in JS?
- pjmlp 12y agoBy exposing an API on the runtime? No different from any other language.
- hamiltonkibbe 12y agoExcept that the compilers and toolchains already exist for other languages, and --as far as I know-- don't currently exist for JS. If I wanted to run $SOMEFILE.js on an msp430 today, how would I go about it?
- angersock 12y agoYou already can! https://github.com/rwaldron/johnny-five https://github.com/rwaldron/johnny-five https://tessel.io/ https://tessel.io/