I see that one of the applications of hackity hack is a gui-irb.

 To _why, Will you be implementing the irb similar to expert-irb.rb
from the Shoes samples? If so I have some questions / suggestions, but
first, a preamble: I am in a situation in which one of the
applications I am working on implements a gui-irb, see:
http://code.inhocsignovinces.net/EggShellDemo.mov

I am currently doing this with JRuby and Swing, but I would very much
like to use Shoes instead. Or at least get Shoes to be able to do
this. I feel that the current expert-irb.rb is inadequate for a couple
reasons, including the inability to execute an infinite loop (I think
this is because it attempts to evaluate the entire loop, and runs out
of memory), and lack of a true "shell" feel. To solve these issues, I
have been writing a function to hook into the runtime streams. The
resulting widget from such a function would be similar to Swing's
viewports(telling a block where it will be getting it's data from).

This solution will not just benefit a gui-irb (that's fun to say), but
would also further an MVC design approach which could be used with
many other applications.
Some pseudo code to show what would be nice:

dynamicText = ioHooker.new(Irb.new(workspace))
#Somewhere in your Shoes.app
animate { dynamicText }

Thoughts suggestions?

Reply via email to