On Wed, Apr 16, 2008 at 01:02:42AM +0900, Rocky Bernstein wrote: > Is anyone aware of or working on a package/gem for facilitation VM > instruction manipulation? Things like replace, insert or delete a sequence > of VM instructions. I understand rubinius may have something like this. I > ask because a colleague is considering writing one. > > (I've posted a query on ruby-talk but so there's been silence which I guess > means there's been nothing.) Nodewrap will provide access to the AST (on 1.8 series) or to the VM instruction sequence (on 1.9 series) for a given method. The library is being renamed to Ruby/Internal to reflect this. There is not yet any support for manipulating sequences, because I don't know how to do this safely. Paul