Oh, like back in the Before Times when everything was statically linked?
[deleted]
Submitted 1 year ago by niemand@discuss.tchncs.de to nostupidquestions@lemmy.world
Comments
al177@lemmy.sdf.org 1 year ago
echo64@lemmy.world 1 year ago
You’re basically describing windows and osx.
Tb0n3@sh.itjust.works 1 year ago
Windows has DLLs. I think OP is asking how big it would be if everything were statically linked or didn’t use linked libraries. Like every single thing was a flatpak.
echo64@lemmy.world 1 year ago
Yeah, this is what windows and osx do. Two games/apps don’t share the same dlls. The os can do some stuff to reduce memory footprint if they do, but it requires them to be the same version, effectively the same dll.
Generally apps on windows and osx do not share libraries between apps, they ship the libraries they need and run them.
CondorWonder@lemmy.ca 1 year ago
I’m not sure how consistent it is but the static binaries I have for btrfs-progs are about 2x larger than their dynamic counterparts. If you statically compile it only the functions actually used are included in the binary, so it really depends on how much of the library is used.
Zeth0s@lemmy.world 1 year ago
I guess nobody knows. It also really depends on the program installed. If you need all qt, jdk, java for each program with a ui… You’d run out of space soon
abbadon420@lemm.ee 1 year ago
Nobody knows and nobody wants to know. Some stones are better left unturned.
jasondj@ttrpg.network 1 year ago
How far you wanna go with this?
Your shell itself is actually a docker container that just runs bash and mounts the root filesystem, and everything in /bin is just an alias to a dedicated minimal container?