Hacker News new | ask | show | jobs
by esad 2740 days ago
I was wondering if one could build an alternative Electron with Duktape and Netsurf's rendering engine and what the memory footprint would be? Most Electron apps don't even use animations and they could be "backported" to HTML4 and CSS2 :-) Webviews are kind of great for portability, but having full blown HTML5 is overkill for most of the apps.
2 comments

I did it with Sciter as a UI layer of Node.js (I am an author of Sciter)

Sciter.Node.js takes 30 Mb or RAM in minimal configuration. It adds 4mb (sciter.dll/so) to original Node.js distribution.

It runs all windows in single UI thread - main thread of Node.js so there is no need for marshalling between multiple processes as in Electron case.

In fact sciter.dll is a "node.js" by its own - it contains script VM and libuv - the same as Node.js itself uses.

I am considering the option to make strip down version of sciter for Node.js. That version will not have any scripting but will rather use JavaScript and libuv from Node.js.

Sciter targets this use case specifically: https://sciter.com