News for hackers. Stuff that matters.
Re:Low.js – Node.js for embedded devices by CharlesW on Saturday September 15, 2018 @04:53PM (#17995988)
> It currently uses under 2 MB of disk space and requires a minimum of around 1.5 MB of RAM

Wow, that's an absolute unit of a JavaScript runtime compared to Moddable's XS7, which can run real apps on devices with as little as 32KB of RAM.

http://blog.moddable.com/blog/moddable-tech-presentation-to-...

Re:Low.js – Node.js for embedded devices by oldmanhorton on Saturday September 15, 2018 @05:16PM (#17996071)
To be fair, they claim at least some subset of Node.js compatibility. Node adds a ton on top of the base JS engine, and would require more resources too.
Re:Low.js – Node.js for embedded devices by CharlesW on Saturday September 15, 2018 @05:28PM (#17996123)
> To be fair, they claim at least some subset of Node.js compatibility.

That's very fair, thank you. XS7 is more directly comparable with the Duktape engine they're building on.

Now I'm wondering if the Low.js folks could replace Duktape with XS7 to help them not only reduce their system requirements but achieve ECMAScript 2017/ES8 compatibility to boot.

Re:Low.js – Node.js for embedded devices by village-idiot on Saturday September 15, 2018 @05:28PM (#17996120)
That’s also absolutely massive for an embedded device. And that’s not even including code, runtime use, etc.
Re:Low.js – Node.js for embedded devices by CharlesW on Saturday September 15, 2018 @05:37PM (#17996157)
Note that I said devices with 32 KB of RAM. The XS7 "hello world" sample (with debugger attached) needs a total of 6 KB of RAM on ESP8266s.
Re:Low.js – Node.js for embedded devices by village-idiot on Saturday September 15, 2018 @05:45PM (#17996186)
I was referincing the 2mb of ram requirement for low.js
Re:Low.js – Node.js for embedded devices by CharlesW on Saturday September 15, 2018 @06:22PM (#17996308)
Ah, indeed. :)
Re:Low.js – Node.js for embedded devices by freehunter on Saturday September 15, 2018 @06:38PM (#17996359)
To be fair, embedded devices come in all shapes and sizes and requirements. There are plenty of embedded devices where 2MB of RAM for the runtime is readily available and no one would bat an eye.
Re:Low.js – Node.js for embedded devices by imtringued on Sunday September 16, 2018 @12:59PM (#17999850)
I don't really see the point when there are entire SBCs (Orange Pi Zero, etc) with hundreds of megabytes for less than $10 which can then run regular node. If you really are constrained to 10 MB RAM or less then there are better alternatives than node. Even the reference lua interpreter is significantly smaller than this. The Lua interpreter built with all standard Lua libraries takes 247K and the Lua library takes 421K. (See https://www.lua.org/about.html#why "Lua is small") Compatibility with node packages isn't a benefit if the packages aren't designed for devices that have 10s of megabytes.
Re:Low.js – Node.js for embedded devices by neoniousTR on Tuesday September 18, 2018 @03:51AM (#18013348)
Well, if you do mass-produced electronics, unit cost is important. And designs based on the Orange Pi Zero are far more expensive than designs based on the ESP32-WROVER.

For hobbyists this also is the case, even if it is not that important: You can get boards with the ESP32-WROVER cheaper than the Orange PI Zero. And I am sure we will make low.js available for own flashing sometime in the future. We are just not there yet.