Thu Jun 18 13:50:28 CEST 2009

GC and Cache

They are related but not quite the same.

What if it would be possible to use non-GCd data as a cache?

I.e. define a collection of objects that are essentially stored on
disk, but which sometimes need to be loaded into memory.  The object
in memory is GC-able, but is it possible to provide some special
mechanism to see if it got GC'd?

I guess I'm looking for weak references.

[1] http://docs.plt-scheme.org/reference/weakbox.html