News for hackers. Stuff that matters.
Re:Electron Fiddle: The easiest way to get started with Elec... by matt_holden on Saturday February 25, 2023 @11:40PM (#34943084)
Also: Figma, Linear, Notion, Slack, Superhuman, Pitch, Loom. All Electron.

I’ve never understood the hate Electron gets on HN, when it powers so many great products that users love.

Re:Electron Fiddle: The easiest way to get started with Elec... by TexanFeller on Sunday February 26, 2023 @12:00AM (#34943191)
The ones of these I've actually used like Slack are doggie doo. Aside from using way more resources than a chat app should, last I checked basic UX was not close to on par with native, like right mouse clicks didn't do anything but bring up the built in browser menus.
Re:Electron Fiddle: The easiest way to get started with Elec... by operatingthetan on Sunday February 26, 2023 @12:46AM (#34943390)
>like right mouse clicks didn't do anything but bring up the built in browser menus.

You should try this in slack again...

Re:Electron Fiddle: The easiest way to get started with Elec... by chrisweekly on Sunday February 26, 2023 @03:51AM (#34944087)
That UX decision has nothing to do w/ Electron.
Re:Electron Fiddle: The easiest way to get started with Elec... by operatingthetan on Sunday February 26, 2023 @02:28PM (#34948525)
If someone brings up a single example they should ensure it aligns to their criticisms, as a rule.
Re:Electron Fiddle: The easiest way to get started with Elec... by clumsysmurf on Sunday February 26, 2023 @12:21AM (#34943277)
I don't mind using an Electron app. The problem is, they are multiplying too fast. I currently use: 1Password, VS Code, Discord and / or Element, Obsidian, and Postman. They use most of the machine's resources doing nothing at all.
Re:Electron Fiddle: The easiest way to get started with Elec... by shp0ngle on Sunday February 26, 2023 @02:05AM (#34943714)
Slack took great pains to make the client not be a memory and CPU hog.

Still better than Teams though. (Which is also in Electron.)

Re:Electron Fiddle: The easiest way to get started with Elec... by pantulis on Sunday February 26, 2023 @06:57AM (#34944869)
You can also see the pains the Evernote team took from the initial Electron-based 10 release until it became usable again. But you could also feel the product moving again after stagnation on a gazillion native clients. It was the right albeit mostly final engineering decision they took.
Re:Electron Fiddle: The easiest way to get started with Elec... by pqs on Sunday February 26, 2023 @07:05AM (#34944896)
It surely was the right decision, but it came too late.

Also, still the app is almost worthless on my Android phone. Too slow, despite large improvement.

Re:Electron Fiddle: The easiest way to get started with Elec... by bboygravity on Sunday February 26, 2023 @03:09AM (#34943926)
I don't think you realize how slow those are, how slow they make your entire machine (eating the RAM for no good reason) and how insanely fast similar apps could be if written in something that doesn't involve massive bloat.

Electron is also how Microsoft essentially broke Skype (on purpose?) IMO.

For me Electron just stands for lazy companies/devs who are not interested in producing something elegant that runs as fast as possible.

Re:Electron Fiddle: The easiest way to get started with Elec... by eecc on Sunday February 26, 2023 @03:44AM (#34944060)
Honest question: where does all the RAM go? If a chrome tab eats about 200 MB ram, shouldn’t an electron app consume about the same? After all Electron is just an SPA with all the assets packaged with the browser engine. Like the zip’d web archives of yore
Re:Electron Fiddle: The easiest way to get started with Elec... by 0x073 on Sunday February 26, 2023 @05:01AM (#34944370)
Chrome engine is build for browsing the web multiple windows multiple tabs etc.

If you drive with a empty truck with trailer it uses more oil than a car.

Chrome is not designed for this. There are other engines like https://sciter.com that are work for single apps, but probably scale bad if they are misused as a browser.

Re:Electron Fiddle: The easiest way to get started with Elec... by lozenge on Sunday February 26, 2023 @08:43AM (#34945465)
I just opened Chrome to a news website and got 400MB of usage on the "GPU Process", 150MB on the "tab" process, and 100MB on the "browser" process. In Electron the webpage doesn't have access to native APIs like the system tray, so that's done by exchanging messages with an extra process.
Re:Electron Fiddle: The easiest way to get started with Elec... by esperent on Sunday February 26, 2023 @03:52AM (#34944094)
> I don't think you realize how slow those are, how slow they make your entire machine (eating the RAM for no good reason)

You're on a forum full of software developers, I think you can give us credit for knowing exactly how much resources the apps we use take up.

Personally, I frequently run VSCode, Slack, Zoom, Chrome, and occasionally Loom at the same time on a machine with 8gb ram and it's fine. Until one of these new platforms like Tauri or Socket.sh catches up, the trade off for developers being able to develop once and run on multiple platforms is entirely understandable and clearly acceptable to most people.

Re:Electron Fiddle: The easiest way to get started with Elec... by qorrect on Sunday February 26, 2023 @11:01AM (#34946494)
Fully agree on all points, I've never had a performance issue with Electron.

I have had Slack fill my home directory with logs once , long time ago. But that wasn't an electron problem.

Re:Electron Fiddle: The easiest way to get started with Elec... by Kiro on Sunday February 26, 2023 @05:51AM (#34944596)
Cool. I'm a single developer releasing software for free which is only made possible by Electron and wouldn't exist without it but I guess I'm just lazy.
Re:Electron Fiddle: The easiest way to get started with Elec... by qorrect on Sunday February 26, 2023 @11:02AM (#34946503)
You're lazy and you should feel bad! /s
Re:Electron Fiddle: The easiest way to get started with Elec... by detrites on Sunday February 26, 2023 @03:50AM (#34944082)
"Powers" being a relevant word here. People love to call out various tech/choices for needlessly sending our energy into a black hole, has anyone run the numbers for Electron's negative impact versus a non-wasteful solution?