From: Santiago Pastorino Date: 2010-10-19T01:23:25+09:00 Subject: [ruby-core:32843] Re: WeakHash Yeah I've read this one and this one http://eigenclass.org/hiki/deferred-finalizers-in-Ruby The thing is (at least as I see it) MRI should provide a WeakRef implementation that doesn't use ObjectSpace._id2ref or fix the implementation. Also avoid Thread.critical in every branch, I think the one on master is not using it anymore but could be nice to have that on 1.8.7 and 1.9.2. Thanks. On Mon, Oct 18, 2010 at 11:00 AM, Mike Dalessio wrote: > > > On Fri, Oct 15, 2010 at 7:21 PM, Santiago Pastorino > wrote: >> >> Hi guys, >> >> �I'm wondering why Ruby doesn't provide a WeakHash implementation. Do >> you think could be a nice thing to add?. >> >> Best. >> > > A great treatise on the > subject:�http://eigenclass.org/hiki/weakhash+and+weakref�which references > some useful ruby-talk threads and some candidate solutions.