HN does not use a database?! Can you expand on that? It's very surprising to me.
I think that is just written to disk as something like file41207393 when you click reply.
When the system needs an item it sees if it's cached in memeory and otherwise reads it from disk and I think that is pretty much the whole memory system. Some other stuff like user id that works in the same sort of way.
that was all the rave for prototypes back then.
To be able to read and write you need native os apis, aka read() and write() otherwise how do you do it ?