by codemac · 3y ago · 0 comments
I find a lot of the static binary hand wringing basically: did you ever solve how to ship more than 1 file to production? Did you ever need to virtualize any resource on your compute?
Then you're at a minimum using a chroot and containers.
If you aren't shipping to production, if you're really just copying files around between your laptops and you want them to run - you have glibc.
The moment we end up in a world where a "small CLI program" requires docker.. I give up. Time to retire from software and go raise sheep or something instead.
I think I just use linux enough that all the macos bugs I don't experience.
This is a real problem with Linux (not MacOS or other BSDs from what I understand) because it doesn't have a stable ABI (the ABI is basically glibc). It's a design choice, and a pain in the ass for people who want to distribute things as binaries. Which, well, it's not something I do, but, it has burned me using other people's things.
Could docker/containerization solve this problem? Yes, in the same way that a shotgun would serve for eliminating mosquitoes...
I agree with you about containers.
The article was about writing small cli programs, and compiling them yourself. I guess I assumed you would be able to rebuild in this discussion trivially - you wrote the program.