Static Linking

September 30, 2021  |  Programming  ·  Bitcoin

What makes software like Miniflux, Syncthing, or even Bitcoin Core so great? It’s always tempting to look for a single cause when we’re trying to analyze a complex phenomenon.

Modern software is complex, but that doesn’t mean all of its complexity is necessary. There are ways to reduce software complexity without compromising on features or quality, and that’s what good programs do.

Let’s take Syncthing as an example. It ships as a single binary. Copy it to any computer sharing the same ISA and operating system, and it will just work.

Bitcoin Core follows a similar model. Its release builds link Boost, libevent, SQLite, and libsecp256k1 statically. The only dynamic dependency left is a deliberately outdated system C library, which means the binaries can run on any modern Linux distribution.

Now, compare this approach with installing thousands of scripts, setting up a container runtime, orchestration tools and a reverse proxy. By the way, that’s what you need to do in order to properly install Nextcloud. Software that praises self-sovereignty should be easy to set up, otherwise it’s no more than a marketing bluff.