Re:Fall cleaning: Optimizing V8 memory consumption
by d08ble on Friday October 07, 2016 @10:21PM
(#12665331)
JS is wanted unlimited memory consumption in the language specs. JS is good, but impossible for low-memory tasks.
[ Parent
| on HN ]
Re:Fall cleaning: Optimizing V8 memory consumption
by CharlesW on Friday October 07, 2016 @11:15PM
(#12665499)
It depends on your definition of "low-memory". The Kinoma XS JavaScript ES6 runtime[1] is designed specifically for low memory/CPU limited embedded devices, and runs very comfortably on 200 MHz ARM devices with 512 KB RAM.
[1] http://kinoma.com/develop/documentation/technotes/introducin...
Re:Fall cleaning: Optimizing V8 memory consumption
by titzer on Saturday October 08, 2016 @11:14AM
(#12667199)
Looks like that is ES5 only.
Re:Fall cleaning: Optimizing V8 memory consumption
by CharlesW on Saturday October 08, 2016 @02:23PM
(#12667976)
It currently scores 96.8% on the ES6 Compatibility Table hosted by kangax[1], which is pretty good. That's native, no polyfills or transpiler.
EDIT: Kinoma claims ES6 compatibility is at 98% as of 2016-01-02.[2]
[1] https://kangax.github.io/compat-table/es6/ [2] http://www.kinoma.com/develop/documentation/js6/
Re:Fall cleaning: Optimizing V8 memory consumption
by tracker1 on Saturday October 08, 2016 @07:11AM
(#12666514)
I've run node tasks that run in pretty low memory... when processing streams I'll often use the command-line option to expose gc, and force it after each item... runs very light that way.