3 ms·
I wish that embedding resources in programs as const byte arrays were more common. I think that approach leads to a tightly integrated, low-overhead app, especi
by mwcampbell 13y ago
I wish that embedding resources in programs as const byte arrays were more common. I think that approach leads to a tightly integrated, low-overhead app, especially on platforms (not iOS) where users and third-party programs are free to do stupid things with the file system; the app either works completely or isn't there at all.
- gte910h 13y agoI agree bundles are a pain in the ass. This is a bit overboard for some libraries and can have unforeseen memory issues
- mwcampbell 13y agoWhat memory issues? const data can be mapped and unmapped on demand.
- liuliu 13y agoYou mean like: https://github.com/liuliu/mopack https://github.com/liuliu/mopack? But unable to inspect the embedded resource at programming time is a big show-stopper for me.
- deleted 13y ago[deleted]