logoalt Hacker News

charcircuittoday at 8:35 AM3 repliesview on HN

Each program having its own loader is an anti pattern. Such a requirement is overkill. You can have a single loader that supports everything on the system.


Replies

roblablatoday at 8:43 AM

Not with NixOS. ld.so is tied to a version of glibc, in ways that can be subtly incompatible. And nixos can have multiple glibc version installed on a single machine.

Besides, it allows for upgrades/downgrades to be done in a way that's much less error-prone.

show 2 replies
HexDecOctBintoday at 8:45 AM

Unfortunately, Glibc and loader are linked together intrinsically in the Linux ecosystem. So, if you want to be able to launch a program reliably, shipping your own loader and libc might actually be the only way.

show 1 reply
kazinatortoday at 5:49 PM

If I had to choose between 16 dockers, or 16 processes with different ld.so, guess what I'm choosing ...