4 ms·
I think garbage collection memory management can be thought of a delete optimized database.
by redox99 2y ago
I think garbage collection memory management can be thought of a delete optimized database.
- tybit 2y agoRuntimes with garbage collectors typically optimize for allocation, not deletion.
- mike_hearn 2y agoGenerational GC optimizes for both. They assume that most objects die young, so choose to relocate live objects and just mark the entire region that was evacuated as empty. So this is a very efficient way to delete data.
- SgtBastard 2y agoOnly if you profoundly misunderstand what GC is.
- actionfromafar 2y agoI have long day-dreamed of what a “use it (soon) or loose it” runtime would mean. Allocated blocks would just expire after a set time.
- okasaki 2y agoSo kind of like browsers work now with the tab unloading and Android killing apps? Personally I find it really obnoxious and disruptive.
- sitkack 2y agoYou would prefer something a little more persistent?
- dotancohen 2y agoI would prefer a 48 hour day, so that I could get everything done that needs to be done. Or maybe a 72 hour day, so I'd have time for things that I'd just enjoy.
- okasaki 2y agoI prefer to do my own app lifecycle management.