While it's a long-running gag, I would like to remind everyone that swapping to zram is a thing on Linux (I don't know whether there's an equivalent on Darwin, and I think NT ships it by default), and the tech goes all the way back to RAM Doubler for MacOS (or at least, that's the earliest implementation that I know about). So for quite a long time you kind of have been able to do exactly that...