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 ]

autrijus (1505)

  (email not shown publicly)

Journal of autrijus (1505)

Thursday May 05, 2005
05:22 PM

Day 94: "pugs -BParrot" runs!

[ #24557 ]
Pugs can now evaluate PIR via embedded Parrot, as seen on #perl6:

    <autrijus> $ ./pugs -e 'eval_parrot<print "Hi!\n">'
    <jhorwitz> woohoo!
    <Juerd> autrijus: TBH, that could have been normal eval ;)
    <autrijus> rofl, Juerd
    <jhorwitz> Juerd++

It can even compile Perl 6 to PIR, evaluating it in memory, as seen on #parrot:

    <autrijus> $ ./pugs -BParrot -e 'say "The answer is: { 7 * 6 }"'
               The answer is: 42
    <leo> autrijus: hey, great and the answer is correct

Thanks to jhorwitz for all the heavy lifting to make this possible, and for Leo's help on getting the neccessary API calls.

In unrelated news, Limbic_Region and iblech were crazy (and impatient) enough to figured out how to write genuine OO code, even before Pugs has native support for it. It all begins with Limbic_Region's cashiers.p6 example to demonstrate state() variables, but iblech escalated it by writing two working modules, Net::IRC and Algorithm::TokenBucket, in this style.

Not to be undone, and not satisfied with Pugs's builtin YAML parsing support, Limbic_Region then ported Config::Tiny over as well. Help, I'm surrounded by mad people! :)

Due to excessive turbulence of such insanity (as well as other factors), I'm too exhaused to summarize the rest of the nearly 100 changes today. So see you tomorrow...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.