From: "Mauricio Fernández" Date: 2002-10-24T18:09:58+09:00 Subject: Re: NODE tree introspection On Thu, Oct 24, 2002 at 04:41:24AM +0900, Phil Tomson wrote: > 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.... Funny, I should have read more about previous attempts to do 'Ruby in Ruby', for I really thought that Simon's approach was THE approach :-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Problem solving under Linux has never been the circus that it is under AIX. -- Pete Ehlke in comp.unix.aix