5 ms·
if Smart.js contains a new kind of JavaScript runtime for embedded devices, that might be interesting to put more into focus (and compare e.g. with Tessel or Es
by poseid 11y ago
if Smart.js contains a new kind of JavaScript runtime for embedded devices, that might be interesting to put more into focus (and compare e.g. with Tessel or Espruino projects).
The protocols: HTTP, WebSockets, MQTT are pretty standard now. What is their relationship with Smart.js? Why e.g. are Arduino libs not used?
For high-level system design, Node-Red seems to gain traction, what is the difference between Node-Red and Smart.js ?
- ithkuil 11y agoSmart.js is based on two projects: - V7: a small portable JS VM (https://github.com/cesanta/v7 https://github.com/cesanta/v7) - mongoose: a portable async multiprotocol networking library (https://github.com/cesanta/mongoose https://github.com/cesanta/mongoose) Both of those projects are independent and have some traction on their own; but you're right that we should make it more explicit. Mongoose is out there since 2004 and is a quite popular embedded http server. We added many other protocols to it, including also COAP and DNS. Arduino libs are not used because they are not async and not portable. Honestly I don't know about node-red, sounds interesting; however node's V8 VM is too heavyweight for the smallest devices we aim to support. Smart.js does expose a nodejs-compatible core API wherever possible, so it might be possible to port node-red to it.