Hacker News new | ask | show | jobs
by JohnDotAwesome 2840 days 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).

4 comments

Well 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.

JavaScript isn't the problem. Chromium is.
Duktape is just a JS engine. You still need the browser which takes 90% of the space.

The NetSurf browser (https://www.netsurf-browser.org/) uses Duktape itself and might be a good candidate :)

It 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.