News for hackers. Stuff that matters.
Re:NeutralinoJS: Lightweight Electron alternative using nati... by hnuser123456 on Wednesday February 26, 2020 @12:46PM (#22425303)
Keybase also uses in the range of 600MB-1GB, and 8 processes, most of which don't exit when you exit the application. I'm not sure what Discord uses because I only run it in the browser, but I'm sure it's in the same range as all of the above.

I've come up with a powershell snippet to fully quit keybase and reclaim ~1GB RAM:

get-process | Where-Object {$_.path -match "keybase"} | Stop-Process

Re:NeutralinoJS: Lightweight Electron alternative using nati... by andai on Wednesday February 26, 2020 @03:00PM (#22426703)
>I'm not sure what Discord uses because I only run it in the browser

Me too, and you just made me realize, there already exists a system for running Electron apps in a shared instance of Chrome, and it's installed on almost everyone's computer! You just... open the web version, in Chrome :)

Re:NeutralinoJS: Lightweight Electron alternative using nati... by derefr on Wednesday February 26, 2020 @06:46PM (#22428799)
Mind you, there's (sometimes a little, sometimes a lot) more to Electron than a webview. Some apps are running quite a bit of un-sandboxed native code—sometimes even forking off other native processes†—to do what they do. Keybase is, IIRC, one of the apps that are quite large on the "native" side.

† I once designed a system that has Electron install an Erlang release to the client, register it as a service, and start it. The Erlang node runs a locally-bound web server; the Electron app then visits that web server. All the data-wrangling happens in Erlang land, with Electron just serving as an HTML renderer for the pages coming from the local server. And yet Electron's native side is essential, here, because it ultimately manages the Erlang release (installing it, updating it, etc.) Erlang doesn't have any good tooling for doing client-native stuff on its own; Erlang devs find the whole idea of deploying an Erlang release to a client machine funny.

Re:NeutralinoJS: Lightweight Electron alternative using nati... by dnautics on Wednesday February 26, 2020 @08:09PM (#22429371)
That's fantastic. I wonder if an elixir Phoenix / liveview use case with such a setup is reasonable now that elixir has releases. I think client native nifs are also not out of the question with the better tooling that comes out of modern langs like rust, nim, and my favorite zig.
Re:NeutralinoJS: Lightweight Electron alternative using nati... by tsukurimashou on Thursday February 27, 2020 @04:10AM (#22431803)
The irony about that, is that not all electron apps are available from an URL. (now I know there is more than a webpage in a electron app, but with modern browsers you can have the same experience in a electron app or from a webapp pretty easily)
Re:NeutralinoJS: Lightweight Electron alternative using nati... by ygra on Wednesday February 26, 2020 @05:10PM (#22427935)
The shorter form, before people complain again that PowerShell is too verbose:

   gps | ? path -m keybase | kill
Re:NeutralinoJS: Lightweight Electron alternative using nati... by dsissitka on Wednesday February 26, 2020 @04:55PM (#22427789)
Discord seems surprisingly efficient for an Electron app.

https://imgur.com/a/DJKyyRz

That's ~230 MB. I can get it up to ~275 MB but it seems to return to normal pretty quickly.