Zram is actually a general purpose block device, you can format it with ext4 and have a compressed RAM disk.
There is also zswap, which is a transparent compressed RAM cache in front of your cache partition. Most distros have it enabled by default, so make sure you don't use it together with swap in zram.
It looks like Windows also has memory compression.
I believe that OS X has memory compression turned on by default.