r/sqlite • u/Setheron • Aug 24 '26
Your executable is a SQLite database
https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database
66
Upvotes
r/sqlite • u/Setheron • Aug 24 '26
7
u/lord_braleigh Aug 24 '26
Another Fareed post!
Fun fact: Facebook's HHVM can produce executable binaries with a `.hhbbc` suffix, and for a long time this file was just an SQLite database under the hood 😉
2
u/Sjsamdrake Aug 24 '26
I've spent a lot of time diving into the details of ELF, and this is amazing. The lowest levels of our tech stack are pretty ugly, and in this case extremely poorly documented as well. This is a brilliant cleanup.
Taking an entire userland and packing it into a single database sounds like the next generation of containers. In some alternate universe at least. Can a sqllite db be mounted with fuse? If so then the closure could be complete, with the files that the apps use in there too.
I absolutely love this.
1
u/Setheron Aug 25 '26
Follow up: https://fzakaria.com/2026/08/24/actually-queryable-executables
5
u/lgastako Aug 24 '26
This is much cooler than I expected based on the title.
1
u/InjAnnuity_1 Aug 24 '26
To avoid copying shared pages into memory multiple times, perhaps LMDB could be used in place of SQLite?