4 comments

[ 2.5 ms ] story [ 22.6 ms ] thread
I've seen this in action a couple of times and it is awesome. This is a fantastic way to demo the heap to people who have had some experience in Ruby, but only a touch of compsci fundamentals.
To stress your browser, open viz.html and in irb do:

    module Example ; class Foo ; def bar ; end ; end ; end
    100.times {  Example::Foo.new ; sleep 1 }
And then, to save yourself:

    GC.start
Any known results with actor-based scenarios, such as with Celluloid?

Those situations tend to be infinitely recursive, but would be priceless to map visually.