Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It means the application compiles down to one binary.


I wonder if they're using appendvfs, too https://www.sqlite.org/src/file/ext/misc/appendvfs.c

> This file implements a VFS shim that allows an SQLite database to be appended onto the end of some other file, such as an executable.

(A quick search of their codebase reveals no results for "appendvfs", so I guess not. So single-file was a lie!)


I'm no rustacean but to me it looks like start() in https://github.com/trailbaseio/trailbase/blob/main/trailbase... consumes a file and returns a database connection. If it were to step into the file and seek out an embedded file system I suspect that function would look different.


"single file" terminology in the context of applications does not typically include the DB. It is common for single file executables to use external config files and DB files.


But then how should redbean describe itself? There you have the executable plus any configuration files or other files you might possible need zipped inside one single file (and if you need a DB, also one more file for the sqlite database next to it, OK).


I'm aware, the same definition was given in the comment I was replying to.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: