Kurt Stephens

Nerd Up!

Ruby: MRI WeakRefs in C

Kurt on Tue, 2011-01-11 04:11.

links: Kurt's blog | add new comment | 2455 reads

Update


This is becoming a proposal for a standard Ruby Reference API that should be portable across all Ruby implementations.

The current MRI implementation has support for native WeakReference, SoftReference and ReferenceQueue. Charles Nutter (JRuby) and Brian Durand (ref gem) has been providing feedback and ideas.

See for more details:

https://github.com/kstephens/ruby/tree/trunk-weakref-c

— Kurt

More progress....


The patches for MRI 1.8, REE 1.8 and MRI 1.9 have been refactored into a fork of the ref gem:

https://github.com/kstephens/ref/tree/master-mri-gc_api

Primary links

Syndicate

Syndicate content

Browse archives

« February 2012  
Mo Tu We Th Fr Sa Su
    1 2 3 4 5
6 7 8 9 10 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29