Skip to content

Comment on Executable Is a SQLite Database

Comments

ELF MECHANISM: .strtab / .dynstr > The database primitive it reinvents: string interning
Surprisingly a lot more falls out as well: .dynstr is gone, because name is TEXT and SQLite already interns strings

What's with this claim? SQLite does not intern strings, as far as I can find anywhere, and a quick test shows that duplicate strings are actually duplicated in a database file. You can intern strings in SQLite manually with an intern string table, but it doesn't happen automatically.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.