in reply to Re^2: Perl 6 - I hope it won't take a decade
in thread Perl 6 - I hope it won't take a decade

demerphq,
Glad to see everything I was telling you about this sunk in ;-). pmichaud originally wrote PGE in C but the current project is in PIR. PIR (Parrot Intermediate Representation) is just marginally higher than Parrot assembly (PASM). Don't let that deter you though since PASM is an OO assembly language.

Besides the information in the parrot repository, you can search for PGE related posts in Perl6.Compiler. I would also recommend talking to Patrick directly.

Cheers - L~R

  • Comment on Re^3: Perl 6 - I hope it won't take a decade

Replies are listed 'Best First'.
Re^4: Perl 6 - I hope it won't take a decade
by Anonymous Monk on Jan 18, 2006 at 21:53 UTC
    pmichaud originally wrote PGE in C but the current project is in PIR.

    Wow. There must be a good reason for this, but for the life of me, I can't figure it out. Why would you write this in an assembly languge (can you say maintenance nightmare?!?), instead of a high level language? Isn't that what compilers are for? I'm beginning to think a decade is optimistic. Is it just me, or does it seem like anything that touches Parrot turns to stone? Thank goodness for Pugs and A. Tang & Co.

      Have you ever written anything in PIR, read anything about PIR, or even looked at what PIR code supports?

      That's a rhetorical question, by the way. It's a lot easier to work with than C. Patrick has said the same thing.

      Sorry but PIR is a high level language :-) Perhaps you're confusing PIR with PASM which is more akin to an assembly language. Writing PIR is closer to writing in Perl in many ways.

        OK. What am I missing? All the PIR code I look at seems very similar to assembly language (with the possible exception that the jump instruction has been renamed goto ;-). Combine that with the fact the most descriptions (follow the link to PDF) pretty much state that "PIR is a slightly higher level language than PASM". I'm just curious, why isn't PGE written in (a possibly restricted version of) Perl6?

      C isn't a high level language. It's a portable assembly language.

        • The sky is blue.
        • Two and two is four.
        • There are seven days in a week.
        Who said C was a high level language? Last time I checked Pugs was written in Haskell.