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

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.

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

Replies are listed 'Best First'.
Re^5: Perl 6 - I hope it won't take a decade
by chromatic (Archbishop) on Jan 18, 2006 at 23:20 UTC

    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.

Re^5: Perl 6 - I hope it won't take a decade
by duff (Parson) on Jan 19, 2006 at 00:19 UTC

    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?
        PGE is the Perl Grammar Engine, but it's a Parrot distribution. It's meant to be usable in any language that runs on Parrot, not just Perl. In a way, it'll replace the pcre engine.

        My criteria for good software:
        1. Does it work?
        2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

        There's sort of a bootstrapping problem there.

Re^5: Perl 6 - I hope it won't take a decade
by jdporter (Paladin) on Jan 18, 2006 at 22:04 UTC

    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.