Unofficial Hacker News companion — get notified on comment replies, and more.

All software sucks (2007) (opens external site)

166 points by archargelod 9 hours ago harmful.cat-v.org 197 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (1)

  1. For NSS and iconv glibc explicitly drags in dynamic linking for startup on whatever system it is on. And for many areas where people wanted static linking and now use musl libc, the blocker, the only blocker for static linking was glibc. Apparently, FreeBSD system libc handles static linking just fine. Glibc is actively hostile to static linking and its developers are very open about that.

    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.