The executable you can roll back
Farid Zakaria made a database file that Linux will run as a program, then fit 723 programs and 400 libraries from a working Linux system inside one.
Mark a SQLite database file as runnable, and Linux runs it. The file that prints "Hello, world!" is the same file you can open in a database client to ask which libraries it depends on. Farid Zakaria, a systems engineer who works on Nix, a tool for installing software reproducibly, took ELF, the thirty-year-old layout every compiled Linux program has been stored in, and rebuilt it as database tables the kernel executes directly.
"ELF is already a database. It just implements many database primitives by hand." — Farid Zakaria
Nothing is unpacked at launch. The machine code, the index of function names and the list of required libraries all live in rows, and a small loader reads them and jumps to the program's starting point. The hard parts work. Programs that pull in shared libraries at startup load correctly by two separate routes, one of them a loader written entirely in database queries. Zakaria then converted a whole Linux system's software into a single file: 612 MB, against 644 MB for the ordinary files it replaced, because identical chunks get stored once instead of over and over.
The cost is real, and he names it before anyone else can. Several copies of the same program running at once no longer share their code in memory, because the bytes have to be copied out of the database rather than pointed at on disk, and every launch pays a fixed few milliseconds to open the file first. This is a prototype measured by its author, published a day ago and not yet reproduced by anyone else.
What a database buys in return is reversibility. Because every program on the machine now sits in one transactional store, Zakaria can insert a memory-tracing library into all of them in a single commit, run the system, watch what happens and roll the whole thing back. Nothing in an ordinary Linux install has an undo button for a thousand executables at once.
Point the repo's converter at any Linux binary and it hands back one of these database-files; the NixOS virtual machine demo boots an entire system on the format if you want to watch it run.
Open the repo at fzakaria.com →The lenses
The facts
How this connects
Tap a node to open it