On Wed, 2002-10-16 at 02:21, Phil Tomson wrote: > In article <slrnaqpbo0.73l.whitton / grub.atlantic.net>, > Travis Whitton <whitton / atlantic.net> wrote: > >There's an interesting article on IBM developerWorks about a new program > >called Psyco, which hooks into the guts of Python's interpreter and does > >a kind of just-in-time compilation substituting bytecode for native machine > >code. Apparently, this allows python to achieve near C like speeds without > >having to rewrite any code, and it sounds like a really cool project. > >Unfortunately, I don't care much for Python, but I do love Ruby. This leads > >me to the question of whether there are any similar programs available for > >Ruby. If not, would such a project be possible? > > It's an interesting idea, but first we need a bytecode interpreter. As it > stands now, Ruby is interpreted by walking an AST. Why would it not be possible to compile the AST to native code? That's what a traditional compiler does, after all. Cheers, Nat. -- Dr. Nathaniel Pryce, Technical Director, B13media Ltd. Studio 3a, 22-24 Highbury Grove, London N5 2EA, UK http://www.b13media.com