this post was submitted on 09 Dec 2025
760 points (98.2% liked)

Technology

77096 readers
2576 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 
  • Windows Latest discovered Discord and other Chromium and Electron-based applications with high RAM usage
  • RAM usage spikes from 1GB to 4GB on Discord both in and out of voice chat
you are viewing a single comment's thread
view the rest of the comments
[–] ExLisper@lemmy.curiana.net 5 points 3 days ago (1 children)

Just use the website then?

It is a good solution for some apps but if you need to store data locally, use push notifications, run something in the background or access any native APIs you have to go with a native app.

[–] A_norny_mousse@feddit.org 27 points 3 days ago (2 children)

All major browsers can do this - with the exception of running something in the background I guess. But that is exactly the sort of usage scenario where an Electron app is the worst choice. Coding a separate utility with no GUI would be the sane thing to do here, not put whole browser stacks into memory.

Pretty sure PWAs can run in the background.

[–] ExLisper@lemmy.curiana.net 4 points 3 days ago (1 children)

You're actually right, by now browsers have APIs to do most of the things apps do. Technically you could convert most apps to websites. I guess as a user I just don't want all my apps to open a tab in my browser. I want to move apps between virtual desktops and monitors independently and I don't want my app's window to be clattered by all the menus from my browser. On mobile I also prefer switching between apps than between different tabs. For me the best compromise is:

  • for system tools that don't have to be cross platform and critical apps write native apps
  • for small/medium cross platform apps use webviews like Webview2 or Tauri
  • for big apps like Teams or Discord just use a website
[–] A_norny_mousse@feddit.org 6 points 3 days ago (1 children)

I guess as a user I just don’t want all my apps to open a tab in my browser. I want to move apps between virtual desktops and monitors independently and I don’t want my app’s window to be clattered by all the menus from my browser.

All this is already possible with most browsers.

[–] ExLisper@lemmy.curiana.net 0 points 3 days ago (1 children)

Do you know any websites that integrate into Linux desktop and Android like native apps? I mean I can run it from cmd/icon, and it opens as new window without any decorations? I never saw it but if it's works fine it's an interesting option.

[–] dafta@lemmy.blahaj.zone 5 points 3 days ago (2 children)

Those are called Progressive Web Apps (PWA). You can use firefox to add the website to your desktop like this: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Installing

Once you do, when you open the app it should have just the website without the tabs and everything else firefox does.

[–] ExLisper@lemmy.curiana.net 1 points 9 hours ago

So I checked and my app done with Tauri uses 50MB of RAM. Simple PWAs I've checked using about:memory in Firefox use 40-50MB. Native apps done with egui or iced use ~25MB. The difference is really small and taking into account all the advantages of Tauri (more mature framework, easier packaging, better DX, better components library) I'm not very motivated to learn a native library just to save 20MB of RAM. PWA would be an interesting option (very similar to Tauri but maybe with easier distribution) but in the near future I want to work with Android Auto so I will need to work closely with native Android API and I already know how to do it with Tauri.

[–] ExLisper@lemmy.curiana.net 2 points 3 days ago

Firefox requires a PWA extension.

And the extension requires a package from a 3rd party repo. Probably that's why I missed it until now. It works nice on Android though. Maybe I should do a PWA... But it's like... learn new tools, host it somewhere... I will think about it. Thanks!