Comment by LorenPechtel

14 days ago

I'd love to see this.

Bring back the "segmented" memory architecture. It was not evil because of segments, but because of segment size. If any segment can be any size the bad aspects fall away.

File handles aren't needed anymore. You open a file, you get back a selector rather than an ID. You reference memory from that selector, the system silently swaps pages in as needed.

You could probably do the same thing with directories but I haven't thought about it.

The idea as I stated it is super half-baked but

> You could probably do the same thing with directories but I haven't thought about it.

For example in the FAT filesystem, a directory is just a file with a special flag set in its file descriptor and inside said file there is just a list of file descriptors. Not sure if something so simple would a good idea, but it certainly works and has worked IRL.