this post was submitted on 18 Sep 2023
11 points (100.0% liked)

linuxmemes

20408 readers
961 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
top 21 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 1 year ago (7 children)

People that are upset about electron should consider it’s not:

Electron App vs Wonderful Fully Supported Native Linux Application

The reality is that your choice is largely:

Electron App vs No App (maybe running their windows app in wine if you can get that to work)

It’s not like companies are going to go build a native linux app but electron got in their way. It was always electron or no support.

So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

[–] [email protected] 2 points 1 year ago

What about laptop battery life? More CPU usage = less battery life. WHY DOES NO ONE GIVE A FUCK ABOUT BATTERY LIFE???

The single most reason I switched from Spotify to Apple Music is that I was sick of seeing the Spotify macOS app at the top of the "High Battery Usage" page on Activity Monitor. I also actually noticed less battery life. Fuck Electron. I avoid apps made in it like the plague.

[–] [email protected] 1 points 1 year ago

So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

This is a damn homicide lmao

[–] [email protected] 1 points 1 year ago (1 children)

I think proprietary Electron apps better run in browser anyway because of trackers that you can disable via extensions.

[–] [email protected] 1 points 1 year ago

I get around this with DNS-based blocking but I do agree with your point.

[–] [email protected] 1 points 1 year ago

Doesn't Qt provide native, cross platform UI? I agree with your post though.

[–] [email protected] 1 points 1 year ago (1 children)

So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something.

It could be doing so much more if you hadn't gone with Electron you fuck

[–] [email protected] 1 points 1 year ago

Right? Why are people talking like this? You don’t see Kubernetes and more generally, servers being looked at this way. We optimize like hell to make things fast, responsive and resource-efficient but on the desktop we just stopped caring or we just got very spoiled and lazy.

[–] [email protected] 1 points 1 year ago (1 children)

There’s no trophy you get at the end of your life for “most cumulative ram left idle”

Some people like to use more than 1 app you know.

Also, RAM is never ever idle. It is used as filesystem cache when not used by programs thus speeding up read accesses significantly.

[–] [email protected] -1 points 1 year ago

Honestly even with more than 1 application open it shouldn't be an issue. Maybe with a really old computer, but anything modern really should handle an electron app just fine

[–] [email protected] 0 points 11 months ago

Maybe we should make that a trophy

[–] [email protected] 0 points 1 year ago (2 children)

This might be a hot take but I've noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.

A well written electron app is better than a poorly written native app sometimes.

[–] [email protected] 0 points 1 year ago (1 children)

I mean, sure, but:

  1. The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.

  2. Startup time isn't really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.

[–] [email protected] 0 points 1 year ago (1 children)

There's also the added CPU overhead from using JavaScript for everything to contend with.

[–] [email protected] 0 points 1 year ago (1 children)

As long as the program is not bloated, JavaScript can be fast. Unfortunately that's not the case with most programs.

[–] [email protected] 1 points 11 months ago

especially if they're proprietary...

[–] [email protected] 0 points 1 year ago (1 children)

That's because all the important bits in VSCode are reimplemented in C++

[–] [email protected] 0 points 1 year ago (1 children)

You can use C++ for web technology instead of JavaScript? I'm taking a class in C++ right now so I'd be happy to swap janky JavaScript for pedantic but speedy C++ in new projects.

[–] [email protected] 0 points 1 year ago
[–] [email protected] -1 points 1 year ago

You mean F12?

[–] [email protected] -1 points 1 year ago

Its not 1990 anymore, you have more than 2 megabytes of ram.