Skip to content

Comment on Executable Is a SQLite Databaseparent

Comments

For sure, the main advantage is that since the SQLite file format is easy to use compared to ELF, it's more likely that such experiments would be even tried at all.

I got another one: bundling multiple (completely separate) executables with shared dependencies in the same SQLite, selected by argv[0] when called, like what busybox does

Also known as a directory.

If a directory was contiguous on disk.

Most files aren't contiguous on a disk either, you know.

Which makes inability to punch wholes in the middle of the files without having to read/write huge chunks of data quite annoying, especially when you write a linker or an archiver. Reserving enough space for the header is quite non-trivial.

Filesystems try fairly hard to make files mostly contiguous on disk, but they don't do the same to directories.

Also known as a zip file!

AboutSource Built by g1lg1l

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