News for hackers. Stuff that matters.
Re:Fedora change aims for 99% package reproducibility by apatheticonion on Friday April 11, 2025 @07:34PM (#43659861)
Another thing I'd love to see is more statically linked binaries. Something like Python, for instance, is a nightmare to install and work with
Re:Fedora change aims for 99% package reproducibility by theteapot on Friday April 11, 2025 @08:55PM (#43660325)
I think general consensus is against you. Fedora packaging policy [1]:

> Packages including libraries should exclude static libs as far as possible (eg by configuring with --disable-static). Static libraries should only be included in exceptional circumstances. Applications linking against libraries should as far as possible link against shared libraries not static versions.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/

Re:Fedora change aims for 99% package reproducibility by Brian_K_White on Friday April 11, 2025 @09:23PM (#43660467)
I'd far rather a static binary than a bundled vm for a single app which produces all the same bad points of a static binary plus 900 new bad points on top.

Packaging guidelines from a distros docs like this are not any kind of counter argument to that comment.

This is the current orthodoxy, so obviously all docs say it. We all know the standard argument for the current standard. Their comment was explicitly "I'd like to see a change from the current orthodoxy". They are saying that maybe that argument is not all it promised to be back in the 90's when we started using dynamic libs.

Re:Fedora change aims for 99% package reproducibility by booi on Friday April 11, 2025 @10:48PM (#43660903)
So instead of 1000 programs and 1000 libraries, you’d rather 1000 programs and 1,000,000 libraries?
Re:Fedora change aims for 99% package reproducibility by Brian_K_White on Friday April 11, 2025 @10:53PM (#43660934)
Baffled how you got there, but not interested.
Re:Fedora change aims for 99% package reproducibility by MyOutfitIsVague on Saturday April 12, 2025 @12:05AM (#43661270)
Their point is that if 1000 programs use the same 1000 libraries, static linking duplicates all those libraries across each binary, taking that much more storage and memory (which can hurt performance as well), effectively making 1000000 libraries in use.

Dynamic linking gives you M binaries + N libraries. Static linking is M * N.

Re:Fedora change aims for 99% package reproducibility by Brian_K_White on Saturday April 12, 2025 @12:43AM (#43661418)
But there are not 1000 programs being proposed. No one said every binary in a system. Only some binaries are a problem. That is silly hyperbole that isn't useful or any kind of valid argument.

What I said specifically is I'd rather a static binary than a flatpak/snap/appimage/docker/etc. That is a comparison between 2 specific things, and neither of them is "1000 programs using 1000 libraries"

And some binaries already ship with their own copies of all the libraries anyway, just in other forms than static linking. If there are 1000 flatpaks/snaps/docker images etc, then those million libraries are already out there in an even worse form than if they were all static binaries. But there are not, generally, on any give single system, yet, though the number is growing not shrinking.

For all the well known and obvious benefits of dynamic linking, there are reasons why sometimes it's not a good fit for the task.

And in those cases where, for whatever reason, you want the executable to be self-contained, there are any number of ways to arrange it, from a simple tar with the libs & bin in non-conflicting locations and a launcher script that sets a custom lib path (or bin is compiled with the lib path), to appimage/snap/etc, to a full docker/other container, to unikernel, to simple static bin.

All of those give different benefits and incur different costs. Static linking simply has the benefit of being dead simple. It's both space and complexity-efficient compared to any container or bundle system.

Re:Fedora change aims for 99% package reproducibility by josefx on Saturday April 12, 2025 @12:34AM (#43661376)
Given that the comment is talking about python he probably already has those 1.000.000 libraries.

The common thing to do for python programs that are not directly bundled with the os is to set up a separate virtual environment for each one and download/compile the exact version of each dependency from scratch.

Re:Fedora change aims for 99% package reproducibility by rcxdude on Saturday April 12, 2025 @07:48AM (#43663591)
That's already the result from most of these container formats, just messier
Re:Fedora change aims for 99% package reproducibility by Kudos on Saturday April 12, 2025 @06:46AM (#43663243)
I don't know why you'd go straight to a VM as the alternative when containers are the obvious choice.
Re:Fedora change aims for 99% package reproducibility by rcxdude on Saturday April 12, 2025 @07:46AM (#43663572)
not much difference from a dependency management point of view
Re:Fedora change aims for 99% package reproducibility by Brian_K_White on Saturday April 12, 2025 @10:29AM (#43664686)
A literal vm is hyperbole and sloppy language on my part. I meant all the different forms of containerising or bundling apps with all of their dependencies and os environment.
Re:Fedora change aims for 99% package reproducibility by hashstring on Friday April 11, 2025 @09:04PM (#43660360)
What do you mean with “a nightmare to install and work with” exactly?
Re:Fedora change aims for 99% package reproducibility by gessha on Friday April 11, 2025 @11:39PM (#43661132)
They use Windows. \s
Re:Fedora change aims for 99% package reproducibility by JodieBenitez on Saturday April 12, 2025 @12:27AM (#43661353)
Python has official installers for windows, is distributed in the Microsoft store and can also be pulled out by UV which works a breeze in Powershell.
Re:Fedora change aims for 99% package reproducibility by Iwan-Zotow on Tuesday April 15, 2025 @08:51AM (#43691968)
What is UV?
Re:Fedora change aims for 99% package reproducibility by wisenull on Tuesday April 15, 2025 @10:08AM (#43692906)
Re:Fedora change aims for 99% package reproducibility by supriyo-biswas on Saturday April 12, 2025 @12:03AM (#43661259)
For Python, take a look at the musl builds in python-build-standalone[1], which are statically linked.

I also have a tiny collection of statically linked utilities available here[2].

[1] https://github.com/astral-sh/python-build-standalone

[2] https://github.com/supriyo-biswas/static-builds

Re:Fedora change aims for 99% package reproducibility by throwaway48476 on Saturday April 12, 2025 @12:47AM (#43661438)
Were stuck with a computing paradigm from 50 years ago.

Ideally everything would be statically linked but thr sections would be marked and deduped by the filesystem.

Re:Fedora change aims for 99% package reproducibility by danieldk on Saturday April 12, 2025 @07:56AM (#43663632)
Even though the idea is much older, shared libraries were only introduced on Unix systems on SunOS 4.x and System V release 3 (?). Sun paper from 1988: https://www.cs.cornell.edu/courses/cs414/2001FA/sharedlib.pd...
Re:Fedora change aims for 99% package reproducibility by LtWorf on Sunday April 13, 2025 @03:31AM (#43670828)
They'd still be duplicated in RAM in the page cache… which is the real problem with static linking.
Re:Fedora change aims for 99% package reproducibility by kpcyrd on Sunday April 13, 2025 @12:46PM (#43674080)
Due to the python reference I think you mean "compiles into a single binary", not necessarily "static linking".

This binary may be statically linked, or link to system libraries. Quite a few times the only system library being linked is libc though.

But yes, I also hope this gets more prevalent instead of the python approach.