All software sucks (2007) (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (1)
Add overlay filesystems to Linux kernel just to statically bundle or link glibc against glibc's express efforts to undermine static linking. Just tar it all up and ship it.
Docker also basically added TCP port and UDP port linking information to ELF with compose files.
Aside: Traefik solves the problem of OpenSSL refusing to play nice with shell pipelines like where SSH just slots in.
Replies (1)
This has nothing to do with glibc, everyone simply copied SUN/Solaris dynamic Linking system. It is 'bad' the same way on effectively every OS; windows, BSDs, Linux, and proprietary Unixes. The implementation was very short sighted, had very few opinions/options/systems to handle name-spacing, isolation, permission boundaries, and versioning. Isolating 1 tree of dynamic libraries from the other requires either hard system boundaries (namespaces/containers/jails or vms) or super weird system hacks (nixos) neither which addresses the core issues of the standard.
It is only more recently that Apple & Microsoft have taken steps to address this. The solution for Linux/Unix was always chroot/jail/namespace, from the onset. Docker just this accessible.
---
glibc is bad in a million other ways, mostly to do with just down right weird extensions, state management, and preserving harmful behavior in non-standard & barely used extensions for the sake of 'backward compatibility'.
Replies (2)
Golang went so far as to directly call Linux syscalls. Which doesn't work anywhere else, because only Linux keeps its syscall ABI relatively stable.
Chroot was too complicated for most people, the same way Docker user namespace mapping is causing problems now, just with file system paths and breaking out of chroots.
FreeBSD jails seem reminiscent of IBM logical partitions, because each jail ID has its own userid 0 and group id 0 and filesystem root. But most software that people want to actually run is shipped on Debian not FreeBSD.
If you want a static linking experience on Debian without shipping an entire Debian VM, then the answer is Docker and the empirical blocker for just typing `gcc -static` is glibc.
Glibc was so much against dynamic linking that now Docker (a.k.a. Linux namespaces, groups) exists to get around that.
I'm curious - what are these steps? Are they a new optional system or something intended as a full replacement?