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

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.

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

Replies are listed 'Best First'.
Re^6: Perl 6 - I hope it won't take a decade
by Anonymous Monk on Jan 19, 2006 at 01:55 UTC
    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?
        Right. You'd use your Perl6 compiler (Pugs, for the sake of argument) to compile a P6 version of PGE down to PIR or PASM bytecode. Then you'd be able to use it with anything that runs under Parrot. Just like how CPAN6 libraries are supposed to be usable with Ruby-on-Parrot, Python-on-Parrot, etc.

      There's sort of a bootstrapping problem there.

        There's sort of a bootstrapping problem there.
        Que? Are you saying that there's been a review of the situation and for technical reasons it wouldn't be optimal? Or are you saying you don't understand how bootstrapping a compiler in general works? The hard work is already done, since you can use Pugs as your bootstrap compiler.