2,517 karma · joined February 8, 2016
It's so strange to be sharing a chat forum decades later with one of the engineers who built the OS for it. I'm sorry I never got to admire your handiwork, but I'm also not sorry :)
What a stupid comment. She's basically excusing her own behaviour because her teenagers do it.
electron good - IDEs, markdown editors, visual git clients, things that are front and center
electron bad - music players, tray notifiers, app launchers, things that work in the background
On windows and mac I use foobar for music and greenshot for screen grabs because they use minimal resources.
Mozilla had an experimental project called qbrt that was like electron but used the locally installed Firefox, exactly like you're describing. Hasn't been updated in quite a while though
The keyword here is fancy. Hexchat is an IRC client, sure, but it is minimalist. That would be like comparing a text file to a PDF and asking why the PDF needs so much more RAM when they're basically the same.
I feel like you're mutating the argument from "electron uses 10x RAM compared to native apps" into "an IRC client doesn't need to use so much RAM"
The proper comparison would be either a full, feature complete native Slack client with all the same bells and whistles that runs under 100mb, OR an electron port of hexchat with its text only interface that uses 1GB+
https://github.com/zserge/webview
Basically a webview which can use a c++ backend and a js/html front-end, cross platform
Lol.
It's a common trend across software. Try comparing office 2003 to office 2013. Office 2003 starts instantly on a modern desktop and uses minimal RAM. Office 2013 takes a good four or five seconds to fire up and uses a few hundred mb memory. And they both do exactly the same thing. With cpu speeds and ssd proliferation there's no incentive to keep things low footprint any more.
My opinionated view on "the right tool" comes down to the distinction between foreground and background apps.
I do think electron is not the right tool for the job when it comes to Spotify, because Spotify is something that mostly runs in the background and should be super performant.
On the other hand I use vscode all day every day, and I'm happy for it to use as much ram and cpu as it does because its always in the foreground - it's the main thing I'm using when I use it
Edit: I should add I think we need to find more comparisons to continue this electron debate though. Vscode is always the hero and slack and Spotify are always the villain
I'm making some assumptions about you as a person but you take my point I hope. People use JavaScript over other languages because they already know it and, hey, look, you can use it anywhere. Sure, it might be more efficient to go and learn python or C++ or assembly or whatever but most people are happier to leverage the skills they already have than go and learn a new language for one app.
I'm a JavaScript coder by profession and in my extremely limited spare time I want to build things, and if i use JavaScript it maximizes my time.
This will hopefully appease the electron haters but I suspect someone will still complain about this being JavaScript
The second and third movies also borrowed a lot from it, most memorably the scene where two characters get married during a swordfight is lifted straight from the book
But since we're talking who inspired whom, both monkey island and the second third and forth potc movies drew heavily on Tim Powers novel On Stranger Tides, and by the time they got to the fourth movie they just flat out optioned the book, title and all.
https://github.com/zserge/webview
C/C++/Golang webview. Build your UI in html/js and offload any heavy tasks to compiled languages. There's also a rust binding on github.
The sample app shows what you can do
But memory is unreliable, and anecdotes are not data