{
  "id": 3099572,
  "title": "Executable Is a SQLite Database",
  "url": "https://urgent.news/2026/08/24/executable-is-a-sqlite-database-3099572",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-24T04:48:20.000Z",
  "source": {
    "name": "Hacker News Best",
    "slug": "hacker-news-best",
    "url": "https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database"
  },
  "original_language": "en",
  "account": "In recent years, the author has been fascinated by two ideas: Nix and replacing ELF with SQLite as an executable format. They explored the latter during their PhD but found feedback from others unconvincing. The result was sqlelf, a tool for exploring ELF files declaratively using SQL. The author then developed a prototype called SELF, the Structured Executable & Linkable Format, which is now available on GitHub. By leveraging virtual tables over the ELF, SELF demonstrates that the ELF file format can be replaced by SQLite as an executable format. The SELF file requires two tables to run: self_meta, which stores the ELF header as key/value pairs, and segments, which hold the load image, with one row per program header containing the bytes in a BLOB. The symbol table replaces many of the ELF sections and the .gnu.hash index, providing a single table with a single index that is equivalent to .gnu.hash and .hash in ELF. This approach simplifies the format and allows for easier modification and querying. The author has created a tool called elf2self that converts ELF files into SELF files, and a small interpreter called self-exec that runs SELF files using SQLite. This new format simplifies the process of analyzing and modifying ELF files, as all tools that operate on ELF files can now be implemented as queries over the database.",
  "summary": "Article URL: https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database Comments URL: https://news.ycombinator.com/item?id=49415271 Points: 397 # Comments: 81",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Hacker News",
        "title": "Executable Is a SQLite Database",
        "url": "https://urgent.news/2026/08/24/executable-is-a-sqlite-database",
        "published": "2026-08-24T04:48:20.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}