Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Modern garbage collectors have come a long way.

Even not so modern ones: have you heard of generational garbage collection?

But even in eg Python they introduced 'immortal objects' which the GC knows not to bother with.



It doesn't matter. The GC does not know what heap allocations are in memory vs swap, and since you don't write applications thinking about that, running a VM with a moving GC on swap is a bad idea.


A moving GC can make sure to separate hot and cold data, and then rely on the kernel to keep hot data in RAM.


Yeah but in practice I'm not sure that really works well with any GCs today? Ive tried this with modern JVM and Node vms, it always ended up with random multi second lockups. Not worth the time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: