logoalt Hacker News

arcfourtoday at 7:15 AM2 repliesview on HN

> you cant just go and download a precompiled blob from a website and run it everywhere, like you can with macOS and Windows.

Sure you can! It's called AppImage or Flatpak or Snap!

I'm also not sure why compiling is treated as some taboo? It's not like Windows where it's actually impossible to set up a toolchain. Your distro comes with one installed! So that means you can run a single installer file, just like in Windows, except this is a shell script or anything else—and it can just compile and link everything for you, quite easily! The user doesn't have to know or understand how this works at all.

Why is that bad? It's bad to run binary blobs...! It's good to tailor your software to your specific environment and hardware!


Replies

Asmod4ntoday at 7:28 AM

they don't run without a runtime, and that runtime is backed by glibc, they just moved the issue one more layer.

Virtually all software for the desktop is compiled once and then shipped to users and they never see the source.

This works for Windows and macOS because their ABI allows it. For Linux you have to target each and every distro like a whole OS and keep up with it or your app won't run anymore after a few years.

This is also the reason why Linux has package managers and windows didn't have a official one for nearly 40 years. So its not all bad.

show 3 replies
WhyNotHugotoday at 1:51 PM

Every AppImage I've seen so far dynamically linked some libraries, and wasn't truly compatible across Linux distributions.