this post was submitted on 11 Sep 2023
1128 points (96.9% liked)

Programmer Humor

32480 readers
335 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] theamigan@lemmy.dynatron.me 49 points 1 year ago (14 children)

It seems every new shiny technology today tries its darndest to short-circuit 40+ years of advances in OS virtual memory design. Between Electron and Docker, the entire idea of loading an image into memory once and sharing its pages among hundreds of processes is basically dead. But at least there's lower support burden!!!1111

[–] boeman@lemmy.world 32 points 1 year ago (11 children)

Docker is just a lightweight container that has the app and OS all in one package. It uses the underlying kernel of the host system. No where near the same as electron apps.

[–] Carighan@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (4 children)

Still the same issue of a still pretty big overhead that is unnecessary in the vast majority of situations.

At my current workpalce, ~20% of hardware goes to docker. Is it still worth it? For the company it is I assume, since we can let developers with fuck all operations experience deploy stuff without bricking our servers. But we could also be hiring operations people who know how to run applications on servers without fucking them up, but of course in a money game docker wins out for ease and speed.

Importantly, comparing stuff like Electron though, we can scale up the hardware and that's included in the cost of running docker. Desktop users stuck with shit like VSCode, Beekeeper or Mongo Compass can't realistically do that though, PC upgrades aren't something you do in 10 minutes and even then your options are limited.

So for companies and servers, docker makes a lot of sense. Especially on the business side. For a private end user, these virtualization tools remove the potential performance all that fancy hardware nowadays could provide. And in the case of Electron shit, they also make for a worse inconsistent UI and laggy interactions.

[–] crmsnbleyd@sopuli.xyz 4 points 1 year ago (1 children)

Hey, what do you mean 20% of your hardware goes to docker? If you're not running linux then docker isn't the issue, it's the VM. If you are running linux, it should be just as lightweight as say, systemd

[–] axo@feddit.de 6 points 1 year ago

Yea, docker only eats up storage. And not even much, if you share the same base image.

Not really any CPU or RAM overhead

load more comments (2 replies)
load more comments (8 replies)
load more comments (10 replies)