News for hackers. Stuff that matters.
Re:"Rust does not have a stable ABI" by choeger on Thursday August 13, 2020 @05:47AM (#24141567)
First of all, you can do that already. No one stops you. So I guess what you actually want is someone to fix the problems that come with your wishes, but do not agree with the way the distributions try to do so. You know what? Thet really don't owe you anything. Go ahead, build the system you want. But please don't come along whining when it ends up unmaintainable, instable, or starts acting against you, like, you know, Windows does.

Second, linux distribution maintainers are usually much better informed about the technical details of installing software in a stable manner than any software vendor. Sure you can get your software from the vendor. But then you should be willing to accept that it is often broken, inefficient, and insecure. Software vendors have no interest whatsoever in installing their software in a professional and sustainable way on your system, package maintainers do.

Re:"Rust does not have a stable ABI" by jcelerier on Thursday August 13, 2020 @06:02AM (#24141666)
> But please don't come along whining when it ends up unmaintainable, instable, or starts acting against you, like, you know, Windows does.

As a die-hard linux user, this line of thinking really plays against Linux. Software distribution hasn't caused problems in windows since XP. Likewise, all mac users seem pretty happy with .app bundles.

> Second, linux distribution maintainers are usually much better informed about the technical details of installing software in a stable manner than any software vendor. Sure you can get your software from the vendor. But then you should be willing to accept that it is often broken, inefficient, and insecure. Software vendors have no interest whatsoever in installing their software in a professional and sustainable way on your system, package maintainers do.

Do you realise how insulting this comes across ? As a software dev, my personal experience of "professional linux distro packagers" is people literally removing random lines of code of my software until it builds - who cares if it crashes as soon as you do more than open it anyways. I'd rather not have my software packaged than have it like that. My subjective experience from the software I use is that stuff like AppImage made straight by the dev is generally much more stable and works much better than whatever chtonian hack a debian packager decided to apply.

Re:"Rust does not have a stable ABI" by totony on Thursday August 13, 2020 @06:18AM (#24141757)
>As a software dev, my personal experience of "professional linux distro packagers" is people literally removing random lines of code of my software until it builds - who cares if it crashes as soon as you do more than open it anyways.

That is, at least in my experience, very false. They often do care about build systems more than the maintainers, as they're the ones who have to make it work for everyone.

I've worked with the Gentoo packagers and those people I have interacted with have a lot of knowledge about how to distribute software. It's not for nothing the Gentoo community has to push changes upstream when upstream assumptions don't hold up downstream.

Re:"Rust does not have a stable ABI" by plorkyeran on Thursday August 13, 2020 @12:03PM (#24144815)
> They often do care about build systems more than the maintainers, as they're the ones who have to make it work for everyone.

Every interaction I've had with packagers has been them trying to make the build system work for their single distro. None of them have ever tried to help make it work for "everyone" running linux, much less spend any time thinking about the other two platforms that have 90% of the actual users.

IME they also tend to be much more focused on making the build system work on their distro than making the actual software work. Not surprising given that that's what they know, but they tend to be perfectly happy to make changes which cause functional problems to get things to build.

Re:"Rust does not have a stable ABI" by amoe_ on Thursday August 13, 2020 @06:18AM (#24141749)
Software distribution in Windows and Mac comes with a lot of problems, they are simply problems that you-personally don't see as part of the class of "distribution problems". Please don't tell me you've never encountered post-install errors with Windows and Mac software. Linux packages have a higher bar to meet for integration quality, and also have a more difficult job to do because of the more-fragmented nature of the platform.

> As a software dev, my personal experience of "professional linux distro packagers" is people literally removing random lines of code of my software until it builds

I'm sorry this happened, but I can assure you that the vast majority of maintainers do not do anything like this.

Re:"Rust does not have a stable ABI" by coldtea on Thursday August 13, 2020 @06:55AM (#24141958)
>Please don't tell me you've never encountered post-install errors with Windows and Mac software.

Mac user here, can't ever remember encountering post-install errors with Mac software in 15+ years (bugs sure, like every software has, but nothing related to incomplete installation or whatever)...

>Linux packages have a higher bar to meet for integration quality

Isn't it actually a lower bar?

They don't have to follow the platform's look and feel and UI libs (there isn't a standard, a distro can package Gnome, GTK+ only, KDE, XFCE, even CDE and Athena stuff, plus all kinds of ad-hoc UIs). They don't have to work with the same shortcuts, use the same system for configuration, or even play well with the same window compositor...

When it comes to "integration quality" in Linux it's mostly "compiles with the distro's version of libs".

Re:"Rust does not have a stable ABI" by qayxc on Thursday August 13, 2020 @06:59AM (#24141986)
> lease don't tell me you've never encountered post-install errors with Windows and Mac software.

Sorry to say, but I have to raise my hand here.

The only post-installation issues I ever had on Mac and Windows were related to drivers, not applications.

Plus since like a decade or so, I rarely "install" software on Windows anyway, because all the tools I use come as a "portable" version, which is just a ZIP archive.

In an Apple-like fashion, these "just work" after unpacking to an arbitrary location (e.g. a USB-stick or SD-card)...

What am I doing wrong here? ¯\_(ツ)_/¯

Re:"Rust does not have a stable ABI" by fvdessen on Thursday August 13, 2020 @06:42AM (#24141884)
One specific problem I always had in Linux but never had on other systems is installing a newer version of a software than the one that is present or supported by the official package manager.

It's most of the time difficult, and sometimes impossible, which is very user hostile; I, the user, should be deciding which version of the software I want to run, not the distribution.

Re:"Rust does not have a stable ABI" by UncleEntity on Thursday August 13, 2020 @02:12PM (#24146317)
> One specific problem I always had in Linux but never had on other systems is installing a newer version of a software than the one that is present or supported by the official package manager.

Because the newer version (of the lib, I presume) changes the ABI and borks all the packages that were compiled against the old version?

Trying to upgrade something like Mesa from Rawhide or whatever is just going to mess up your install like nobody's business but if you just need a couple minor libs (for a specific program) I've not had any problems.

For programs, I've had ones running for years after they got dropped from the distros with zero problems or that I built and installed from some random srpm I found on the interwebs.

In all honesty the only 'song & dance' I have to do on a semi-regular basis is rebuild my python modules when Python gets updated on a distro upgrade.

Re:"Rust does not have a stable ABI" by petepete on Thursday August 13, 2020 @10:06AM (#24143457)
There are distributions that cater for the bleeding edge, there are distributions that focus on stability, there are plenty that fall somewhere between.

But with any distro, you call install whatever you like wherever you want. You, the user, make that call. You, the user, should have the knowledge to tidy up if it goes wrong.

Re:"Rust does not have a stable ABI" by watermelon0 on Thursday August 13, 2020 @10:38AM (#24143777)
What if I want a stable distribution, but need latest versions of some software?

Installing anything outside of distro repositories and Flatpak (& alternatives) is, in most cases, PITA.

Tracking down missing dependencies, figuring out which libraries are compatible, downloading source for those libraries, because the system provided are outdated, etc. You can literally spend a whole day just building a somewhat simple application.

I'm not a fan of binary blobs, like it's customary on macOS/Windows, but at least I can actually use an application in a minute or so, after downloading it. There is no fussing around, it just simply works.

Re:"Rust does not have a stable ABI" by choeger on Thursday August 13, 2020 @02:05PM (#24146236)
> There is no fussing around, it just simply works.

Because they have huge teams maintaining API and ABI stability.

On any Linux distribution worth its name you can also use the software within seconds after installation. The teams are just smaller and their approach is more centralised and principled, but I never had a problem using, e.g., emacs after installing it.

You need to fuss around with software from their parties. Simply because these third parties do not care enough about your Linux to make the installation work well. These same third parties also do not care much about how stuff is supposed to work under windows, they just drop their binaries and assume that the windows ABI will somehow keep working.

Re:"Rust does not have a stable ABI" by ghthor on Thursday August 13, 2020 @12:00PM (#24144780)
You should try out Arch linux or one of its derivatives. I never have any of the issue you're talking about, were almost always at the bleeding edge, and for packages that aren't, we have the AUR which is straightforward to build into your system from upstream git repositories.
Re:"Rust does not have a stable ABI" by atoav on Friday August 14, 2020 @03:34AM (#24154953)
Arch looks tempting but my feeling is that a lot of software built by devs who run Arch needs initial help to run on Ubuntu/Debian. The other way around works better (software built to run on the latest Debian usually runs everywhere).

Maybe that observation is incorrect, please give me data points. Also this won't mean you have to run Debian (but maybe a VM with Debian in it).

Re:"Rust does not have a stable ABI" by ghthor on Saturday August 15, 2020 @02:13AM (#24166442)
If you need to run something that only runs within debian, you'll likely be able to that in a straightforward way using LXC or docker containers. I wouldn't reach for a VM unless I needed the extra layer of security offered by the VM.
Re:"Rust does not have a stable ABI" by jcelerier on Thursday August 13, 2020 @09:06AM (#24142911)
> Please don't tell me you've never encountered post-install errors with Windows and Mac software.

I don't remember the last time that happened. Not that I'd exchange my ArchLinux setup against either but you gotta be honest - installing stuff on windows and mac is a solved problem.

However the number of times a Debian or Ubuntu update borked something... that I don't have enough fingers nor toes - I had at least 3 installs of debian that I fucked up enough that I couldn't recover them in the last ten years - in comparison the last time that happened for me on windows was in 98' era. Not that windows doesn't suck - I still get the occasional BSOD even on win10 while Linux kernel panics are... uncommon for me but that's just my experience).

Re:"Rust does not have a stable ABI" by curt15 on Thursday August 13, 2020 @11:10AM (#24144121)
> Please don't tell me you've never encountered post-install errors with Windows and Mac software

For most user-facing Mac software that comes with a GUI, there are no post-install. Installation simply consists of copying the application bundle into the /Applications folder.

Re:"Rust does not have a stable ABI" by MrScruff on Thursday August 13, 2020 @06:55AM (#24141957)
What do you mean by post-install errors?
Re:"Rust does not have a stable ABI" by progval on Thursday August 13, 2020 @07:03AM (#24142008)
> As a software dev, my personal experience of "professional linux distro packagers" is people literally removing random lines of code of my software until it builds

That's sad. But fortunately, not all packagers are like this. As a software dev too, I have a great experience with packagers from various distributions. When they have an issue (either build or runtime) they tell me about it and we discuss a patch together that I include in my next release.

> My subjective experience from the software I use is that stuff like AppImage made straight by the dev is generally much more stable and works much better than whatever chtonian hack a debian packager decided to apply.

Sure it works if you are in the most common case (Linux on x86_64), but it has some downsides:

* It only supports CPU architectures the dev can build for

* It only supports operating systems the dev can build for

* The dev needs to publish an update every time there is a vulnerability in a bundled dependency (assuming they are even watching for vulnerabilities)

Re:"Rust does not have a stable ABI" by vaylian on Thursday August 13, 2020 @06:48AM (#24141921)
> As a die-hard linux user, this line of thinking really plays against Linux. Software distribution hasn't caused problems in windows since XP. Likewise, all mac users seem pretty happy with .app bundles.

If you don't know what you are missing, you won't miss it.

Re:"Rust does not have a stable ABI" by mixmastamyk on Thursday August 13, 2020 @01:26PM (#24145808)
Agreed. What happens in two weeks when a security vulnerability or data loss bug is identified and fixed?

Nothing, unless you have a application-specific upgrade daemon running. Sounds like a good design, right? :)

Re:"Rust does not have a stable ABI" by AnIdiotOnTheNet on Thursday August 13, 2020 @02:17PM (#24146392)
> What happens in two weeks when a security vulnerability or data loss bug is identified and fixed?

The automatic update process breaks software by making incompatible changes, thus preventing a security problem by just not allowing me to run the software in the first place?

Re:"Rust does not have a stable ABI" by Krssst on Thursday August 13, 2020 @08:30PM (#24151733)
Don't Linux distributions like Debian avoid this by backporting security fixes rather than upgrading to an incompatible version? https://www.debian.org/security/faq#oldversion
Re:"Rust does not have a stable ABI" by littlestymaar on Thursday August 13, 2020 @07:03AM (#24142010)
> Software distribution hasn't caused problems in windows since XP.

The windows way of installing software (download random .exe or .msi files from random websites on the internet) has been a problem for every non tech-savy people and the people helping them manage their computer forever.

Every modern OS comes with its own package manager nowadays for a good reason.

Re:"Rust does not have a stable ABI" by atoav on Friday August 14, 2020 @03:37AM (#24154970)
Windows has chocolatey, which works quite okay. I usually use this with with automatic update scripts to keep the software on my parents windows machines up to date.
Re:"Rust does not have a stable ABI" by tarsinge on Thursday August 13, 2020 @11:04AM (#24144040)
Maybe differentiating between types of software could help? Desktop apps or games don't seem to have the same requirements as system and development stuff. As a Mac user I'm indeed pretty happy to have both app bundles and the Homebrew subsystem depending on the type of software I want to install.
Re:"Rust does not have a stable ABI" by mindslight on Thursday August 13, 2020 @12:01PM (#24144786)
I don't really agree with the comment you're responding to, but your comment is needlessly incendiary and not particularly useful. All software critique has an assumed element of "if the developers wish to make this better for users like me", and so remarks like "[they] don't owe you anything" should be reserved for people who lean into specific developers with demands, not people earnestly offering suggestions to make the third-party software ecosystem better.
Re:"Rust does not have a stable ABI" by AnIdiotOnTheNet on Thursday August 13, 2020 @02:23PM (#24146472)
One of the big problems with the Linux Desktop evangelism community is that they've entangled their identity with their OS of choice, and thus interpret all criticism as a personal attack.

I still maintain that for all its many technical and architectural faults, the biggest thing holding back wider Linux Desktop adoption is the Linux Desktop community itself.

Re:"Rust does not have a stable ABI" by auggierose on Thursday August 13, 2020 @06:10AM (#24141703)
If you think that some linux distribution maintainer knows my software better than I do, then you are high as a kite.
Re:"Rust does not have a stable ABI" by rleigh on Thursday August 13, 2020 @01:38PM (#24145934)
That's not quite the right perspective.

You most likely do know your software better, after all, you wrote it. However, their concern is the integration of your software into larger system, and they may well be more familiar with those issues than you are.

In all my years of (Debian) distribution maintenance, this was the most typical cause of disagreement between packagers and upstreams. It's very common for upstreams to make fairly arbitrary decisions which might make sense in the context of an individual project, but which are not appropriate when considered as part of the system as an integrated whole. Neither are wrong per se, but as an upstream, your focus is on your project and it's easy to miss the bigger picture issues. Conversely, packagers' focus upon the system as a whole, so their view is at a higher level.

Additional to this, don't just discount the knowledge and expertise of distribution maintainers. There are of course some who just blindly package up other people's work and aren't experts. However, there are others who are software authors in their own right, with decades of accumulated experience and understanding. The latter may well know more than you do, and might be able to provide some keen insights you could benefit from. There are an awful lot of developers who don't know how to make software releases properly in a way that allows it to be consumed straightforwardly by others, with proper understanding of API and ABI issues, proper versioning, and proper use of build systems.

[dead]
Re:"Rust does not have a stable ABI" by Jasper_ on Thursday August 13, 2020 @10:10AM (#24143494)
> Ok, smartass, where and how do you locate the fonts installed in a system?

Rabbit's nest but the commonly accepted community API for font discovery is fontconfig.

> How do you know if the system is on battery?

Again, rabbit's nest but the commonly accepted community API for this used to be DeviceKit-Power. Then pm-utils. Now I think you're supposed to use UPower or poke through /sys/class/power_supply?

https://upower.freedesktop.org/docs/Device.html

I wrote the battery applet five years ago in gnome-shell and even I can't keep up.

> How do you make sure that the temporary directory your service needs is actually mounted and writable?

In theory /run and systemd-tempfiles are new enough standards but that hasn't stopped a misguided packager from misinterpreting a policy and patching my software to support /tmp, which was not a tmpfs on their distribution, causing users to blame me and send bugs my way.

For all the things it gets wrong, Docker removes an entire class of misconfiguration errors that allows for more reproducibility and automation in configuring systems, and they do this partly by making the distribution irrelevant.

For Linux to be a world-class OS, it needs to step up its ABI and distribution game and figure out how to squash bickering over things like application menu standards.

Re:"Rust does not have a stable ABI" by UncleMeat on Thursday August 13, 2020 @10:55AM (#24143934)
> If you only ever develop desktop client software for Apple and Windows Systems where there is a whole fucking company to tell you these things via an API you are really not even in the same league as a developer that tries to ship software to different Unix like systems and at least somewhat adhere to standards and technical best practices that have been developed by a community.

Isn't this an admission that linux is worse? Less skilled developers can successfully create working applications for Windows/Mac because they have unified and documented APIs to access these operations. But on linux you have a heterogeneous system that uses standards developed 50 years ago and require greater expertise to work with.

"My system is harder to use" is not a selling point.

Re:"Rust does not have a stable ABI" by AnIdiotOnTheNet on Thursday August 13, 2020 @02:19PM (#24146415)
> "My system is harder to use" is not a selling point.

Unless you're a Linux Desktop evangelist, then it is because it lets you feel smugly superior to people who don't like wasting their time with shit like this.

Re:"Rust does not have a stable ABI" by atoav on Friday August 14, 2020 @03:50AM (#24155062)
I run a dual boot system since half a year now (have been running windows for more than a decade).

And the one thing I absolutely loved about Linux is that it does what I say. On Windows 10 there are things that are impossible to get rid of. That new browser that automatically adds itself to the desktop icons? Or the Onedrive icon in the explorer which you can only remove through registry hacks (and which might come back at any time after a update).

Customising Windows is so amazingly hard and cumbersome, I was just blown away how easy and straightforward this was on Linux.

I once gave my mother a Ubuntu installation after I had been particularilly annoyed by a malware she managed to catch on her Windows 7 machine. She has no idea how to use computers, but she really loved Ubuntu and told me it feels much clearer. She used it for nearly 4 years till the hardware died. To my surprise she had significantly less questions about how to do $x than before.

My feeling is that the Linux desktop can be great for people with very simple needs or very advanced needs. It is that middle ground where it currently sucks I guess.

Re:"Rust does not have a stable ABI" by salawat on Friday August 14, 2020 @05:43AM (#24155815)
>My system is harder to use" is not a selling point.

It kind of is when the reason it is is a corollary to fundamentally supporting letting you and your User community do whatever they want. I've used Slackware, Debian, Ubuntu and MacOS; and to be frank, at least with Linux, even if I do have some greater degree of exposure to dependency/ABI hell, I'm free to determine my own approach to meeting those challenges.

With Windows/MacOS,you have a 500 pound gorilla shoving sh*t down your throat because they decided it's better for them. I simply cobble together a workable solution for the use-cases my Users really need, keep it simple, well-defined and documented, and most importantly, kick software or decisions that impact my freedom as a sysadmin to run the system I'm fine and dandy to maintain to the curb.

To hell with devs who don't respect rule number 1 of system architecture: the System one is helpless to influence or get to understand is the first thing to go when the chips are on the table. At least for me anyway.

Re:"Rust does not have a stable ABI" by choeger on Thursday August 13, 2020 @02:54PM (#24146872)
> My system is harder to use" is not a selling point.

No one is trying to sell you a system. If you want your software to work well on Red Hat, Debian, and BSD then you either play with their respective standards or you let the maintainers do their job. Just stop whining that these systems are not windows and you need someone to that work for free but exactly the way you want it done.

If you feel well inside Apples walled garden, have fun there, but don't come complaining when some Unix tool or programming language does not work there.

And no, Red Hat or Debian is not harder to use than MacOS. It just supports way more nontrivial use cases out of the box. That comes with a certain complexity. If you don't need that, no one suggests you run it on your desktop.

Re:"Rust does not have a stable ABI" by jabirali on Saturday August 15, 2020 @06:45AM (#24167887)
> No one is trying to sell you a system. [...] If you don't need that, no one suggests you run it on your desktop.

I disagree. People have been recommending Linux to people with non-complex needs for a long time, especially since Ubuntu went mainstream. “No one suggests you run it on your desktop” is thus wrong.

> If you feel well inside Apples walled garden, have fun there, but don't come complaining when some Unix tool or programming language does not work there.

Is this really an issue? As far as I’ve heard, macOS is a POSIX-compatible system with a BSD userland, and most Unix tools work fine. Checking out the Homebrew repos, it seems like all the Unix tools I’m used to are there. And even some Linux-specific systems like FUSE have been ported to macOS. As far as I can tell, macOS thus supports Unix tools and programming languages as well as most Linux distros.

Re:"Rust does not have a stable ABI" by untog on Thursday August 13, 2020 @04:29PM (#24148464)
"It's not harder to use it's just more complex" is a wonderful summation of Linux on the Desktop™
Re:"Rust does not have a stable ABI" by marcinzm on Thursday August 13, 2020 @10:07AM (#24143461)
So your argument is that Linux is missing a massive number of standardized apis which other operating systems have had for years? That sounds like a massive gap that should be fixed and not something to just accept and shrug and have hacks to work around.
Re:"Rust does not have a stable ABI" by throwaway5752 on Thursday August 13, 2020 @10:33AM (#24143719)
It's open source, go write them, then. I'm serious. That's the whole point of this article and thread ultimately.
Re:"Rust does not have a stable ABI" by marcinzm on Thursday August 13, 2020 @10:39AM (#24143788)
The Linux ecosystem is managed by people and convincing dozens (or hundreds) of people to support what I write (which is required for an API to be anything but a N+1 toy) is no small effort. I play enough politics in my day job and have little desire to do so in my free time.

As I see it, it'd take someone with a lot of political connections and political capital in the Linux ecosystem to be able to pull it off successfully. I have neither.

Re:"Rust does not have a stable ABI" by auggierose on Thursday August 13, 2020 @10:31AM (#24143702)
It's called an API. I'd say an operating system that doesn't have that, is not much of an operating system. Do you really think that a missing API is fixed by some distro maintainer packaging your app properly? No.