3 ms·
The Windows registry is sort of a copy of the Mac's "resource fork". The original Mac had files with both a data fork, the file contents, and a "resource fork",
by Animats 4y ago
The Windows registry is sort of a copy of the Mac's "resource fork". The original Mac had files with both a data fork, the file contents, and a "resource fork", which is a tree-like database. Preferences and such were stored in resource forks. This was a good idea, implemented badly. Because it was originally designed for floppy disks, writes were very expensive. So resource forks were left open in an inconsistent state after modification, to be closed at program exit. After a crash, resource forks were damaged. Unfortunately, this flaw persisted long after the Mac line got hard drives and more speed.
Apple was on the right track with the concept that most programs needed a database for their state, but, because of the cram job needed to squeeze the original MacOS into 128K of RAM, got stuck on a bad design. Microsoft didn't have that excuse with their Registry.
- naikrovek 4y agofiles on NTFS also have alternate streams. this is how Windows knows you're executing a file downloaded from the internet via internet explorer, for example. it's easy to hide stuff in those streams as well.