3 ms·
> Linux is no better with no stable ABI. I’m confused. Linus has repeatedly stated that the ABI should be stable, “we don't break user space”. There are except
by rbanffy 3y ago
> Linux is no better with no stable ABI.
I’m confused. Linus has repeatedly stated that the ABI should be stable, “we don't break user space”. There are exceptions, but any proposal that makes a breaking change to the kernel’s external symbols is very hard to push through.
I don’t remember anything breaking because of a new kernel version except device drivers, which are part of the kernel anyway and should be compiled for a specific kernel version. They are not applications, so they shouldn’t rely on assumptions about the ABI.
Most Linux distros offer mechanisms to compile a version-dependent interface to isolate a version-independent driver or program that messes too closely with the kernel.
> Some extinct “grown-up” OS like VMS?
I’d say the age of binary compatibility ended with most of those “grown-up” OSs becoming legacy. I usually test (compile and test) my C code on multiple platforms, ranging from Windows to Solaris on SPARC (emulated these days, sadly). I haven’t yet figured out a cost-effective way to test it under IBM z/OS’s USS (which makes z/OS a certified UNIX).
- aleph_minus_one 3y ago> Linus has repeatedly stated that the ABI should be stable, “we don't break user space”. Linus said that the userspace API to the kernel should be stable, which it mostly is. But a GNU/Linux system contains a lot more APIs (in userspace).
- psychphysic 3y agoDrivers being kernel specific is really annoying
- IronWolve 3y agoMajor problem with android, stuck with whatever version of android due to binary blob drivers.
- pjmlp 3y agoThe major problem is Google not enforcing updates via their contracts. Project Treble has made Android a pseudo microkernel with stable ABI for drivers. However Google has decided it is still up to OEMs to decide if driver are to be shipped or not. With no legal enforcement for accessing Google services, OEMs rather sell updated hardware.
- Zambyte 3y agoThe obvious problem seems to be propriety device drivers, no? If they didn't shoot themselves in the foot with their licensing, the drivers would work with any kernel version.
- matheusmoreira 3y agoAll they have to do is upstream their drivers into the kernel instead of shipping proprietary blobs. Why is this so hard?
- nani8ot 3y agoBecause the Linux kernel has stringent guidelines how a driver should be written and work. Companies don't want to put in the work (i.e. pay someone with experience) to upstream their drivers. Whether this makes sense monetarily isn't really relevant to many decision makers. At least that's how I explain why Nvidia and Broadcom don't upstream their drivers.
- rbanffy 3y ago> Because the Linux kernel has stringent guidelines how a driver should be written and work Preventing poorly-written software to be added to the kernel is a Good Thing. The system is working as planned.
- babypuncher 3y agoThe kernel userspace APIs are pretty stable, the APIs provided by the rest of what constitutes a complete Linux "operating system" are not. I've ended up using a lot of hacks and tricks to get some early Linux games running on modern systems. Some applications designed for X still have broken features in Wayland, and likely won't be fixed without new versions of said apps because making Wayland compatible would break the entire security model. It's generally not a huge issue in Linux, because most of the software you use day to day is open source and probably maintained. The real problem children, across all operating systems, is proprietary video games. They're closed source, unmaintained, and their cultural value makes them highly desired targets for ongoing compatibility and preservation.
- rbanffy 3y ago> The real problem children, across all operating systems, is proprietary video games. They can be distributed packaged with the requirements (Wayland and X still would be an issue) but things like snaps of flatpacks solve that.
- account42 3y ago> The kernel userspace APIs are pretty stable, the APIs provided by the rest of what constitutes a complete Linux "operating system" are not. There are plenty of userspace ABIs that are extremely stable, including whaever you need to run a game (like the C runtime). There are also APIs without stability guarantees (like the C++ standard runtime). A lot of games that no longer work depend on some of the latter libraries. There are also ABI bugs, no compatibility is perfect, but those usually do get fixed when found unless doing so would break more programs. > Some applications designed for X still have broken features in Wayland, and likely won't be fixed without new versions of said apps because making Wayland compatible would break the entire security model. That's not a long term compatibility problem but using a zero trust mobile phone security model on a desktop problem. That security model should be broken and moved to /dev/null where it belongs. But really at some point you are going to need compatibility layers anyway. We already have Wine with great support for old Windows apps, there is nothing preventing something similar for legacy Linux on modern Linux emulation - except a lack of interest because there really aren't that many Linux-only legacy applications.