An executable made of rows
Farid Zakaria stored a Linux program as rows in a SQLite database and taught the kernel to run the database directly.
Ask Linux what kind of file `hello` is and it answers: a SQLite database. Run it and it prints Hello, world. Both answers are true. Zakaria took the layout every compiled Linux program has been stored in for thirty years, rebuilt it as database rows, and registered a small loader with the kernel so the file runs exactly as it sits on disk.
The loader that runs these files cannot itself be one of them.
A program's internal bookkeeping then becomes ordinary SQL. Stripping the debug data out of a binary, normally the job of a dedicated command, is now one statement: delete the rows, compact the file, and what is left still runs. Asking which libraries a program needs stops being a separate tool and becomes a query. Switching a debugging library on across an entire installed system becomes a single transaction that either lands or doesn't.
It works because the old format was already a database, hand-built and badly. It keeps every name in one shared pool so repeats cost nothing, carries lookup tables that are indexes in all but name, and opens with a header describing its own layout. The kernel, the loader, the debugger and the packaging tools each write that parser again from scratch. Zakaria threw all of them away and handed the job to an engine that already does the work.
What does not survive the translation is memory sharing. A normal program is mapped straight off the disk, so fifty running copies point at the same physical pages; code kept in database rows has to be copied out instead, so nothing is shared and every launch pays a few fixed milliseconds to open the file first. Zakaria is candid that this is a prototype and not a proposed replacement, and the measurements are his own, published a day ago. The exercise still names something the format never advertised about itself: most of its complexity was a database nobody called one, and the part that refuses to dissolve into rows, the mapping, is what it was quietly buying all along.
Point the repo's elf2self converter at any Linux binary and you get one of these database-files back; one Nix command boots a whole demo system where every command on it is a SQLite file.
Open the repo at github.com →The lenses
The facts
How this connects
Tap a node to open it