Your executable is a SQLite database
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
A working open-source pattern lets Linux executables live inside SQLite database files, executable directly via binfmt_misc, a curiosity rather than a production technique.
Programmer Farid Zakaria built a tool called selfdb that turns a Linux executable file, a program a computer can run directly, into a SQLite database, which is the file format normally used to store data. He does this by rearranging the program's internal pieces (the ELF format) into database tables. A helper interpreter called self-exec, written in C, runs the program. It is a clever trick published on his blog, with code on GitHub.
This is a niche developer experiment, not a product: Farid Zakaria's selfdb project stores the internals of a Linux executable (ELF format) inside a SQLite database and runs it via a C interpreter called self-exec, using the kernel's binfmt_misc mechanism for registration. No performance figures, licensing details or adoption are given. Competitive and business impact is essentially nil; it matters as a technique for single-file packaging enthusiasts.
selfdb (github.com/fzakaria/selfdb) writes an executable as SQLite tables per a schema at schema/self.sql, setting the SQLite header's 4-byte application ID at byte offset 68 to the magic string SELF, so binfmt_misc can match executables by pattern. A C loader, loader/self-exec.c, extracts and runs the pieces; the author demonstrates registration on NixOS and shows a generic /proc/sys/fs/binfmt_misc/register line. No benchmarks, limitations or compatibility data are provided.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Node graph engine that runs big diffusion models on 4GB VRAM
ComfyUI's asynchronous weight streaming lets large diffusion models run on 4GB VRAM, meaning practitioners with modest GPUs no longer need expensive hardware for local image, video and audio generation.
iCloud apps for Windows, Linux and Android, written in Rust
Skykeep gives Rust-based native iCloud apps for Windows, Linux and Android, ending the iCloud.com-browser workaround for non-Apple-device users.
An open-source video editor covering auto-captions, voice isolation and keyframes
Very little for most professionals: Concat is a free, pre-1.0 open-source video editor that makes basic auto-captions and voice isolation available on mobile and desktop without a subscription.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
A Flipper Zero CAN bus toolkit for Tesla, from $14
An open-source $14 ESP32/Flipper Zero build replicates $200+ commercial Tesla dongles at the CAN bus level, including FSD region-gate bypass and TLSSC restore, with real VIN-ban risk.