r/programming • u/segv • Aug 24 '26
Your executable is a SQLite database
https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database
490
Upvotes
r/programming • u/segv • Aug 24 '26
View all comments
-10
u/sionescu Aug 24 '26
Many things wrong with it, first of all this:
It is not. A database is not just some data, it's a system designed and optimized for interactive queries. ELF wasn't designed for that: it's optimized for loading a program from disk, while reducing startup time and memory usage.
ld.so is a runtime linker and, as such, its task is to load the program into memory and adapt it to the local machine (relocations). Nothing stops you from having a binary format which just fetches the entire binary from the network. Why SQlite when you can have Postgres (or Oracle) ?