logoalt Hacker News

askltoday at 3:12 PM4 repliesview on HN

Somehow my first thought from the title was using sqlite as a format for applications. So like a replacement for ELF. I think this idea is both fascinating and horrifying.


Replies

trwstoday at 3:18 PM

I worked @fzakaria on developing that idea. It actually worked surprisingly well. The benefits are mostly in the ability to analyze the binary afterward though rather than any measurable benefit in load time or anything like that though. I don’t have the repo for the musl-based loader handy, but here’s the one for the virtual table plugin for SQLite to read from raw ELF files: https://github.com/fzakaria/sqlelf

show 1 reply
giancarlostorotoday at 4:07 PM

Forget elf, imagine having a SQLite file that stores elf, exe and DMG binaries. I would not mind working on something like this.

show 1 reply
yreadtoday at 4:20 PM

Or a replacement for Access

show 1 reply
gjvctoday at 3:44 PM

wonder if this would make hot-swap functions easier, if every function had its own section and every section was in the db

show 1 reply