Allen Wirfs-Brock wrote:
My experience is that Terrence is absolutely correct in this regard and that this position is share by virtually all experienced GC implementors. A former colleague of mine, George Bosworth, expressed it this way in an experience report at a ISMM a number of years ago:
George is right on, and over the years with SpiderMonkey embedders, we've fought people who wish, e.g., to have post-mortem finalization just to close a file descriptor (!) or release a db cursor. Total mismatch in terms of heuristics, resource scarcity, etc.
OTOH, the framework subject-observes-object (which might link back to subject) problem is real. It does not involve managing external or otherwise misaligned or not-affine resources. It's the main use-case I see for which developers request weak refs. And it has nothing to do withi ADGC!
Can we support this use-case more narrowly? If so, we should. /be _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals