Actually Queryable Executables
A follow-up to SELF turns the SQLite-backed executable from a file-format experiment into a stateful single-file application: code, routes, visitor logs, and mutable application state all live in one database.
The proof-of-concept self-httpd runs through the same binfmt_misc interpreter described in the earlier article, then uses SQLite WAL transactions to record requests and application data in the executable itself. The result eliminates the usual split between the binary, /var, /tmp, and application storage—at the cost of an unusual runtime and a much larger trust boundary around the interpreter and database.
The small Hacker News thread suggested backing a mount namespace and virtual filesystems with the same database, and reacted positively to the SQL-injection-to-arbitrary-code-execution novelty of the design. It is still a proof of concept, not a general deployment model.