4 ms·
Super cool. I had never heard of Duktape before. Seems like there should be some work making Electron compatible with Duktape to reduce the memory overhead of s
by JohnDotAwesome 8y ago
Super cool. I had never heard of Duktape before. Seems like there should be some work making Electron compatible with Duktape to reduce the memory overhead of some of our favorite Electron apps cough VScode cough Slack.
(This is probably a naive comment. I have no idea if this would work the way I assume it would).
- ricardobeat 8y agoDuktape is just a JS engine. You still need the browser which takes 90% of the space. The NetSurf browser (https://www.netsurf-browser.org/ https://www.netsurf-browser.org/) uses Duktape itself and might be a good candidate :)
- Matthias247 8y agoIt is naive in th form that it only looks at RAM. However the performance characteristics of duktape and efficient jit-compiling js engines will be completely different. I don’t think people would appreciate sluggish response times more than less ram usage.
- Volt 8y agoJavaScript isn't the problem. Chromium is.
- aikah 8y agoWell first Duktape is only a Javascript engine. it is not a browser engine so there is no DOM, furthermore Duktape is not ES2015 compliant so you'd need to transpile your code to ES5. It's also debatable whether Duktape is more performant than v8 or not. > to reduce the memory overhead of some of our favorite Electron apps cough VScode cough Slack. are not going to take less memory with Duktape at all if the problem is sloppy programming or DOM related.