4 ms·
There are three kinds of semantics for non-collaborating programs that people want from files that are completely incompatible: - update immediately(ish) seen
by pjc50 7y ago
There are three kinds of semantics for non-collaborating programs that people want from files that are completely incompatible:
- update immediately(ish) seen by other users of the file (e.g. database); the default UNIX semantics, even for executables
- update seen by other users at the next point they open the file (what you want for update-without reboot, can be achieved on UNIX because deleted inodes hang around)
- it's completely impossible for other users to write, rename etc the file (Windows default)
- SketchySeaBeast 7y agoThanks! I guess each come with their own tradeoffs - immediate updates have a good chance of blowing away the current users work as well as continually searching for file updates, and a versioning system then needs to figure out what to do when the user saves a stale file.
- BubRoss 7y agogvim already handles this. If a file changes it prompts you to update or not. If you try to save an old file over a new one, it makes you confirm what you are doing.
- SketchySeaBeast 7y agoAs it should, and as all apps have to, otherwise you end up with problems in any shared workspace.