Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I think he is saying that electron apps are bad because they are so power hungry.

I'm using a 2008 macbook as well and I don't have any huge problems with most apps. I do stay away from web-tech-based apps as much as I can though.



sort by: page size:

Yes, what you also get is terrible battery life, terrible performance, and terrible UI. It is immediately obvious any time you use an electron app on osx because you immediately hit non-standard UI behavior, and basic errors with hotkeys.

So by using electron you've made your life easier, but have produce an app that is much worse for the people actually using it.


No, it's not that bad. I think most people who complain about Electron are power Mac users, mostly because Apple's UX is different and special, and Electron doesn't always follow that. As a Linux user, i have zero problems with Electron apps, provided they don't waste resources.

In terms of speed and resource consumption, it's entirely up to the app - i use VS Code and Obsidian which are very fast and lightweight (relatively, for what it is, for VS Code).


Yeah Electron is bad for users. I know MBAs love it because they can fire 1/2 of their devs and still check the "we support cross-platform" box.

Try this 1-liner in your Terminal (if you're on Mac)

    e=$(find /Applications -name "Electron Framework.framework" -mindepth 1 -maxdepth 4 | wc -l); t=$(find /Applications -name "*.app" -maxdepth 1 | wc -l); p=$(bc -l <<<"($e/$t)*100"); printf '%.2f%s\n' "$p" "% of your apps are Electron"
On my system, about 20% of my installed apps are Electron now, and this number is growing. No matter how much RAM & CPU you throw at these dogs, they just don't run any better. Gobs of RAM, wasteful use of CPU cycles. A modern desktop dystopia.

> Electron might just be laziness - or inability to really care about the user.

Or it might be that it is just good enough for the target user. My 2013 Macbook has enough power to run all the Electron apps I need without slowing down...well it did once I removed Atom and learned to love Visual Studio Code.

I think that Atom's performance woes and resource hogging tends to be a stand-in for all atom apps.


Yeah it's pretty shocking how much CPU and memory Electron apps use.

Used to be Java chat apps and IDEs (Eclipse, IntelliJ) were considered slow and bloated.

They're practically fleet footed compared to the new breed of web apps.

As much as I love Slack, Visual Studio Code and Atom my maxed out MacBook Pro is at 50-100% CPU and paging into swap with all three open.

If I send a few GIFs in Slack - temps hit 99C (never 100 for some reason) and my laptop sounds like a mini hovercraft.

It's a little disheartening and really has me missing those big old Mac Pros which were silent no matter the task.

JavaScript and the resulting apps are certainly enjoyable to code and use but damn does something need to change in terms of resource utilization.


The root cause of the problem with Electron is that its performance on the Mac is just like the Chrome browser.

Compared to Safari, Chrome’s performance is like a fat pig hogging your memory and devouring your battery life.


Electron "apps" really suck honestly. They're very slow and large and eat memory.

My laptop is a 2008 MacBook Pro with a 2.4Ghz Core 2 Duo and 4G RAM. It's perfectly fine for running R Studio, Emacs, Python, Excel, Safari and VirtualBox with 1 or 2 VMs. Yet a trivial Electron app will make it crawl with the fan spinning like a jet about to take off.

In this age of portable devices and the battle to get decent battery life out of your machine, Electron apps strike me as counterproductive. There's more to it then just memory usage, I think.

Ahhhhh yes. When people post claims about it's terrible performance they're concerned about how the computer feels.

/s

No. When it comes down to it. Electron hogs and drains a user's laptop battery, which in turn affects their user experience. How hard is that to understand?

Not everyone has a Macbook with decent battery life. Some people don't like Macs, don't like Apple, or simply can't afford one.

If you program with a concern for perform and battery life, it'll run well on a Mac as well as an old computer.

If you code lazily with Electron, some people will notice: a drop in battery life, and a slowing down of their computer's responsiveness.

It's pretty simple really. Code for the lowest common denominator of your target audience.


I've never noticed Electron apps negatively impacting my computer. I use Slack all the time and I don't notice a difference when I have it running vs when i don't. Do most people not like Electron because the number seems high or does it negatively impact their computer in some way? (I have a MBP with 8 gig RAM, that doesn't seem out of the ordinary)

They said Electron apps. The person is just noting that not all Electron apps run like garbage.

On top of that with many tabs open, you probably have 20+ Electron apps open all competing for RAM on your Macbook.

Complete waste of CPU, Memory and Disk space. A triple negative for all software.

Might as well download more RAM, since Chrome and these Electron apps are having a huge RAM-eating feast on my computer. /s


The only electron app I've ever used that wasn't slow/terrible is VSCode which happens to be written in typescript by Microsoft and it still occasionally decides to use 100% of my macbook's CPU making it entirely unusable until I restart, so I'm not sure that's a very good argument.

Multiple electron apps run just fine on my 2015 MacBook pro too. Yes the ram usage is annoying but it's not unusable.

OTOH my battery is dying, and may not be worth replacing.


As a user I think Electron is great. It means many more apps have a Mac version. Compare to games, where Electron typically isn’t feasible, and observe how many games don’t have a Mac version. A little extra memory usage is fine by me. I can understand how people disagree, and that’s fine, just don’t use Electron apps. No need to ban them from the platform.

I get what you're saying, but Electron apps on like a Core2Duo is unusably bad. On a modern system with plenty of ram they're much more usable.

> Plus the experience of Electron apps is generally superior lately

Uh, I'm going to hard disagree on that. They take longer to open, they're slower to use, they take up more battery, and they don't behave in a consistent way with the rest of the OS.


I don't think that apps necessarily chose it because of the reasons you mentioned. It is most definitely due to productivity, but there are ways to mitigate the CPU and battery usage -- I often have Spotify open on my Mac and it really doesn't use much CPU (often less than either Safari or Docker), and it doesn't suffer from poor performance most of the time. I would say that while Electron apps, as a whole, are generally worse than a native app, there are ways around the issues that plague some of them that depend on the developer(s). For example, VSCode and Spotify having pretty good performance and not hogging CPU, while Slack and Atom the opposite.
next

Legal | privacy