News for hackers. Stuff that matters.
Re:Win32 is the stable Linux ABI by kccqzy on Tuesday December 30, 2025 @10:40AM (#46434383)
That’s actually an intentional nudge to make the software packaged by the distro, which usually implies that they are open source.

Who needs ABI compatibility when your software is OSS? You only need API compatibility at that point.

Re:Win32 is the stable Linux ABI by rep_lodsb on Tuesday December 30, 2025 @11:43AM (#46435086)
So every Linux distribution should compile and distribute packages for every single piece of open source software in existence, both the very newest stuff that was only released last week, and also everything from 30+ years ago, no matter how obscure.

Because almost certainly someone out there will want to use it. And they should be able to, because that is the entire point of free software: user freedom.

Re:Win32 is the stable Linux ABI by realusername on Tuesday December 30, 2025 @01:02PM (#46436058)
Not sure if it's the right solution but it's a description of what happens right now in practice yes.
Re:Win32 is the stable Linux ABI by bruce511 on Tuesday December 30, 2025 @01:50PM (#46436558)
It also makes support more or less impossible.

Even if we ship as source, even if the user has the skills to build it, even if the make file supports every version of the kernel, plus all other material variety, plus who knows how many dependencies, what exactly am I supposed to do when a user reports;

"I followed your instructions and it doesn't run".

Linux Desktop fails because it's not 1 thing, it's 100 things. And to get anything to run reliably on 95 of them you need to be extremely competent.

Distribution as source fails because there are too many unknown, and dependent parts.

Distribution as binary containers (Docker et al) are popular because it gives the app a fighting chance. While at the same time being a really ugly hack.

Re:Win32 is the stable Linux ABI by josephg on Tuesday December 30, 2025 @02:54PM (#46437256)
Yep. But docker doesn’t help you with desktop apps. And everything becomes so big!

I think Rob pike has the right idea with go just statically link everything wherever possible. These days I try to do the same, because so much less can go wrong for users.

People don’t seem to mind downloading a 30mb executable, so long as it actually works.

Re:Win32 is the stable Linux ABI by kccqzy on Wednesday December 31, 2025 @12:43PM (#46446376)
What do you mean docker doesn’t help you with desktop apps? I run complicated desktop apps like Firefox inside containers all the time. There are also apps like Citrix Workspace that need so specific dependency versions that I’ve given up on running outside containers.

If you don’t want to configure this manually, use distrobox, which is a nice shell script wrapper that helps you set things up so graphical desktop apps just work.

Re:Win32 is the stable Linux ABI by tuna74 on Wednesday December 31, 2025 @02:08AM (#46442090)
Then you only support 1 distro. If anyone wants to use your software on an unsupported distro they can figure out the rest themselves.
Re:Win32 is the stable Linux ABI by well_ackshually on Wednesday December 31, 2025 @10:57AM (#46445254)
No, they come online and whine that you didn't package your software for <obscure distro>, that your software is shit and you're incompetent.
Re:Win32 is the stable Linux ABI by immibis on Wednesday December 31, 2025 @08:29AM (#46443896)
And being 100 things is completely unavoidable when freedom is involved. You can force everyone to use the same 1 thing, if you make it proprietary. If people have freedom to customize it, of course another 99 people will come along and do that. We should probably just accept this is the price of freedom. It's not as bad as it seems because you also have the freedom to make your system present like some other system in order to run programs made for that system.
Re:Win32 is the stable Linux ABI by kwanbix on Tuesday December 30, 2025 @02:54PM (#46437265)
I am not an expert on this, but my question is, how does windows manages to achieve it? Why can't Linux do the same?
Re:Win32 is the stable Linux ABI by johnny22 on Tuesday December 30, 2025 @08:25PM (#46440277)
because they care about ABI/API stability.
Re:Win32 is the stable Linux ABI by nineteen999 on Wednesday December 31, 2025 @02:57AM (#46442284)
And have an ever decreasing market share, in desktop, hypervisor and server space. The API/ABI stability is probably the only thing stemming the customer leakage at all. It's not the be all and end all.
Re:Win32 is the stable Linux ABI by ogogmad on Wednesday December 31, 2025 @05:13AM (#46442909)
Decreasing market share in the desktop?
Re:Win32 is the stable Linux ABI by immibis on Wednesday December 31, 2025 @08:27AM (#46443887)
Yes, but Windows is even so bad, it's been decreasing market share of desktops.
Re:Win32 is the stable Linux ABI by kccqzy on Tuesday December 30, 2025 @04:05PM (#46437995)
Your tone makes it sound like this is a bad thing. But from a user’s perspective, I do want a distro to package as much software as possible. And it has nothing to do with user freedom. It’s all about being entitled as a user to have the world’s software conveniently packaged.
Re:Win32 is the stable Linux ABI by Rohansi on Tuesday December 30, 2025 @04:30PM (#46438250)
Software installed from your package manager is almost certainly provided as a binary already. You could package a .exe file and that should work everywhere WINE is installed.
Re:Win32 is the stable Linux ABI by kccqzy on Tuesday December 30, 2025 @10:08PM (#46440848)
That's not my point. My point is that if executable A depends on library B, and library B does not provide any stable ABI, then the package manager will take care of updating A whenever updating B. Windows has fanatical commitment to ABI stability, so the situation above does not even occur. As a user, all the hard work dealing with ABI breakages on Linux are done by the people managing the software repos, not by the user or by the developer. I'm personally very appreciative of this fact.
Re:Win32 is the stable Linux ABI by Rohansi on Wednesday December 31, 2025 @04:48AM (#46442765)
Sure, it's better than nothing, but it's certainly not ideal. How much time and energy is being wasted by libraries like that? Wouldn't it be better if library B had a stable ABI or was versioned? Is there any reason it needs to work like this?
Re:Win32 is the stable Linux ABI by kccqzy on Wednesday December 31, 2025 @11:18AM (#46445472)
And you can also argue how much time and energy is being wasted by committing to a stable ABI such that the library cannot meaningfully improve. Remember that even struct sizes are part of the ABI; so you either cannot add new fields to a struct, or you expose pointers only and have to resort to dynamic allocation rather than stack allocation most of the time.

Opinions could differ but personally I think a stable ABI wastes more time and energy than an unstable ABI because it forces code to be inefficient. Code is run more often than they are compiled. It’s better to allow code to run faster than to avoid extra compilations.

Re:Win32 is the stable Linux ABI by immibis on Wednesday December 31, 2025 @08:28AM (#46443893)
Actually the solution to this on Windows is for programs to package all their dependencies except for Windows. When you install a game, that game includes a copy of every library the game uses, except for Windows
Re:Win32 is the stable Linux ABI by grishka on Tuesday December 30, 2025 @07:11PM (#46439824)
What if you want to use a newer or older version of just one package without having to update or downgrade the entire goddamn universe? What if you need to use proprietary software?

I've had so much trouble with package managers that I'm not even sure they are a good idea to begin with.

Re:Win32 is the stable Linux ABI by Maskawanian on Tuesday December 30, 2025 @07:39PM (#46440018)
I know you are trying to make a point about complexity, but that is literally what NixOS allows for.
Re:Win32 is the stable Linux ABI by prmoustache on Wednesday December 31, 2025 @06:08AM (#46443186)
That is the point of flatpak or appimage but even before that you could do it by shipping the libraries with your software and use LD_LIBRARY_PATH to link your software to them.

That was what most well packaged proprietary software used to do when installing into /opt.

Re:Win32 is the stable Linux ABI by rixed on Tuesday December 30, 2025 @11:17PM (#46441205)
Those users will either check the source code and compile it themself, with all the proper options to match their system; or rely on a software distribution to do it for them.

People who are complaining would prefer a world of isolated apps downloaded from signed stores, but Linux was born at an optimistic time when the goal was software that cooperate and form a system, and which distribution does not depend on a central trusted platform.

I do not believe that there is any real technical issue discussed here, just drastically different goals.

Re:Win32 is the stable Linux ABI by ogogmad on Wednesday December 31, 2025 @05:14AM (#46442915)
No. People would prefer the equivalent of double-click `setup.exe`. Were you being serious?
Re:Win32 is the stable Linux ABI by anthk on Wednesday December 31, 2025 @08:14AM (#46443810)
That's Guix.
Re:Win32 is the stable Linux ABI by johncolanduoni on Tuesday December 30, 2025 @01:25PM (#46436292)
Even open-source software has to deal with the moving target that is ABI and API compatibility on Linux. OpenSSL’s API versioning is a nightmare, for example, and it’s the most critical piece of software to dynamically link (and almost everything needs a crypto/SSL library).

Stable ABIs for certain critical pieces of independently-updatable software (libc, OpenSSL, etc.) is not even that big of a lift or a hard tradeoff. I’ve never run into any issues with macOS’s libc because it doesn’t version the symbol for fopen like glibc does. It just requires commitment and forethought.

Re:Win32 is the stable Linux ABI by SkiFire13 on Tuesday December 30, 2025 @02:28PM (#46436956)
Everyone is mentioning ABI, but this is really an API problem, so "you only need API compatibility at that point" is a very big understatement.
Re:Win32 is the stable Linux ABI by cryptonector on Wednesday December 31, 2025 @12:24PM (#46446177)
The reason you're getting downvoted is that what you're saying implies a shit-ton of work for the distros -- that's expensive work that someone has to pay for (but nobody wants to, and think of the cost of opportunity).

But you're not entirely wrong -- as long as you have API compatibility then it's just a rebuild, right? Well, no, because something always breaks and requires attention. The fact is that in the world of open source the devs/maintainers can't be as disciplined about API compat as you want them to be, and sometimes they have to break backwards compatibility for reasons (security, or just too much tech debt and maint load for obsolete APIs). Because every upstream evolves at a different rate, keeping a distro updated is just hard.

I'm not saying that statically linking things and continuing to run the binaries for decades is a good answer though. I'm merely explaining why I think your comment got downvoted.