News for hackers. Stuff that matters.
Re:“Static Linking Considered Harmful” Considered Harmful by Wowfunhappy on Sunday October 03, 2021 @08:16AM (#28736586)
Simplicity. If everything is statically linked, then updating package A can never break package B.

As I see it, the entire world of Docker containers exists primarily to solve the problem that static linking already solved.

Something like Nix would work as well, and I think I would love Nix if I knew how to use it. But I don't, and I don't really have the time to learn.

Re:“Static Linking Considered Harmful” Considered Harmful by Brian_K_White on Sunday October 03, 2021 @11:07AM (#28737760)
AppImage, Flatpack, Snaps... all seem to be largely reinventing the primary qualities, good and bad, of static binaries in a new and much more complicated form.

At least a container provides more function than mere bundling, but a lot of containers actually get used merely for bundling.

Re:“Static Linking Considered Harmful” Considered Harmful by lrem on Sunday October 03, 2021 @09:36AM (#28737060)
I don't think that makes a lot of sense in a distro. If package A gets an update, it means a sufficiently bad bug was discovered in it. If it happens to be a library, you want to make sure you update every package B that uses it. Which, conveniently, the distro solves for you too.
Re:“Static Linking Considered Harmful” Considered Harmful by Wowfunhappy on Sunday October 03, 2021 @11:09AM (#28737770)
This is true, but only if I'm actually getting everything from the distro repository and I'm able to keep all of it on the latest version. In practice, I sadly tend to run into situations where I need stuff from other places.
Re:“Static Linking Considered Harmful” Considered Harmful by lrem on Sunday October 03, 2021 @11:26AM (#28737905)
But then you don't want the software from the distro to be statically linked, but the software from other places. In which case it doesn't matter that much what does the distro do.
Re:“Static Linking Considered Harmful” Considered Harmful by Wowfunhappy on Sunday October 03, 2021 @12:02PM (#28738173)
Basically, the distros aren't perfect and I sometimes run into conflicts. Also, with static binaries it would be much easier to pin specific software at old versions without affecting anything else, even just temporarily for testing.

IMO, when stuff is self-contained, everything becomes easier! This isn't to say some stuff like OpenGL can't be dynamically linked, but some day I'd love to use a distro with a static-first approach, because right now it simply isn't an option.