Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Simon (89)

AOL IM: lathosjp (Add Buddy, Send Message)

Busy Man.

Journal of Simon (89)

Monday May 28, 2001
07:07 PM

Evil Idea du jour, alias "use Ruby;"

[ #221 ]
Well, this isn't really just an idea, because I've gone and done it. I added most of a B::Generate backend to Leon's Shiny compiler, and created some Perl bytecode out of some (admittedly very simple) Ruby. I could then execute this, or - even more fun - send it to B::Deparse. It worked. I was impressed. It probably won't impress you much - I sent in puts(10/bar(20)) and got out puts 10/bar(20). Not a big deal, uh? Well, it went through the intermediary stages of being parsed into an AST, compiled onto the Perl virtual machine, and then deparsed again.

use Ruby;. It's happening, people.