dysfun@treehouse.systems ("gaytabase") wrote:
i am attempting to come up with a design for buffy the buffer slayer, which as you'll recall i thought i wasn't going to have to write at all.
you see, with a flat mmap, i could just let readers do whatever they want provided i make published data immutable. with a buffer manager, i have to handle paging in and out blocks myself. readers will need to use it too, so even a reader can become a writer to memory now. nightmare stuff when you consider that readers only had to synchronise to take a snapshot of the database before.
at a minimum it starts to look like a concurrent hashmap but in all likelihood it's really more a concurrent LRU cache, a vibrantly active research area i know very little about.