From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-10-24T04:41:24+09:00 Subject: Re: NODE tree introspection In article <20021023172146.GB26640@student.ei.uni-stuttgart.de>, Mauricio Fern�ndez wrote: >On Thu, Oct 24, 2002 at 12:59:54AM +0900, Simon Cozens wrote: >> >> I've been considering writing something for Ruby similar to the Perl >> B.pm module; this is a module which provides Perl-level access to the >> bytecode op tree, so that other modules can walk the op tree in >> various interesting ways. This is the way the Perl to C compiler was >> implemented. (however unsuccessfully...) >> >> It seems reasonably easy to do in Ruby, just by wrapping the NODE* >> structures as Ruby objects. Has anyone already done this or tried >> working on it? > > >http://www.rubygarden.org/ruby?RubyInRuby >http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/8693 >http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/6885 > >I believe somebody attempted to ... uhmmm... do something using rockit. > Yes there are other projects out there with the goal of doing what Simon is trying to accomplish (see also Ruth). However, it seems that perhaps the approach that he is taking might lead to something.... Phil