arya dradjicabal4e@tech.lgbt
Jul 2, 2026, 1:59 PMmadvise(2) MADV_FREE seems pretty handy for implementing an in-memory cache, at least on Linux. It instructs the kernel that the corresponding set of pages should be freed whenever there is memory pressure, setting them to zeros. You could design a data structure around this with some careful "if a loaded value is zero give up" semantics. Cool!