4 ms·
>Applications should just be folders that contain any resources the application requires that aren't in the base system (this requires a defined and stable base
by ghaff 9y ago
>Applications should just be folders that contain any resources the application requires that aren't in the base system (this requires a defined and stable base system)
You're basically describing OCI/docker/moby containers.
- AnIdiotOnTheNet 9y agoNo. Well, yes, to a certain extent, but they don't need all the abstraction of containers, they can just be regular old directories. DOS applications were managed this way, MacOS applications were managed this way, RiscOS, NextStep, and OSX (now confusingly renamed to MacOS again) worked this way. None of them use any containerization hackery to make it work, they just don't hardcode paths at compile time in their applications like UNIX developers do.
- vetinari 9y agoNo they do not hardcode paths, they just have to use some other mechanism (for example: registry) to find each other's location. MacOS doesn't really work this way either, half the apps available use installer and have their files somewhere in /Library. The time when applications were universes by themselves ended in 1990 with OLE.
- lrem 9y agoContainers go a step further, tossing out most of the system above the kernel. This works, but might be too expensive for personal computing.
- vetinari 9y agoFlatpak in linux uses bubblewrap (namespaces, cgroups, bindmounts, seccomp, basically the same tech behind containers), and constructs /usr based on the frameworks the application requires in its manifest. On the disk, it boils down to a single copy of each framework required. Additionally, the flatpak repository is content addressable, the constructed directory trees are hardlinks to the repository, so multiple versions or even separate frameworks will share identical files.