this post was submitted on 21 Mar 2025
1477 points (98.4% liked)

Programmer Humor

21809 readers
1844 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nutt_goblin@lemmy.world 23 points 1 day ago* (last edited 1 day ago) (1 children)

See: Webview2

Unfortunately, it is extremely painful to work withπŸ˜” Enjoy rolling your own script versioning and update systems instead of using squirrel et al

Edit: I think Tauri works by targeting this and webkitgtk via their wrapper library, unfortunately I can't get my coworkers to write rust

[–] kungen@feddit.nu 6 points 1 day ago (1 children)

Isn't that just the same pig, just wearing different makeup? I'm not a fan of msedgewebview2.exe allocating 500+ MB RAM just because Teams is open, but maybe that's Teams fault...

[–] nutt_goblin@lemmy.world 4 points 19 hours ago* (last edited 19 hours ago)

Not quite. instead of a bundled pinned version of electron, it is an arbitrary version of edge's WebKit fork shared across all programs using it. That means you don't need to keep multiple copies of the webkit libraries loaded into memory.

That's not to say that building things on web technology is an efficient use of resources. Even if multiple programs are sharing the webview2 library, they're still dealing with the fundamental performance and memory problems caused by building an app in JavaScript.

As for why teams is so memory hungry? I would blame Teams.

Discord manages to make a half decent, highly responsive webview app, and that's with the overhead of having its own separate instance of electron.

EDIT: the original poster was also talking about application binary size, not runtime memory consumption. Application binary size should actually be significantly helped by linking webview to instead of bundling electron.