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 ]

Parrot released, perl6 passes sanity tests again,

Journal written by pmichaud (6013) and posted by brian_d_foy on 2007.12.18 17:30   Printer-friendly
Happy birthday, Perl!

On this 20th birthday of Perl, I'd like to express my appreciation to Larry Wall (and his family) for the many years of leadership, dedication, wit, wisdom, and sacrifice that he has put into Perl. Of course, there are many more people who deserve our thanks for Perl, too many to list here, but Larry has always been a fixture of the community and I'm so thankful for his efforts.

Today Parrot 0.5.1 (Hatachi) was released, and quite frankly it's another big leap in Parrot and Perl 6 development. So much has happened since my last journal post of a week ago that it's hard to know where to begin! The big news is that as of today the perl6 compiler is once again passing all of the 00-parrot and 01-sanity tests, so we can begin attacking the official test suite again. In other news:

* Jerry Gay made even more progress on the Punie (Perl 1) compiler under Parrot, using PCT and NQP he managed to get slurpy arguments working, and all of the tests passing. To me this is a signature achievement, and it shows that the compiler tools (PCT, PAST, and NQP) are working as we had intended.

* Jerry has also been instrumental in getting perl6 to pass its test suites again, particularly in adding constructs to the grammar, including "for", regexes, "END", and the like. So, we're passing the basic test suite again.
For those who might be concerned that we seem to have done a lot of work "just to get back to where we already were", I can only say that from an ease-of-development the perl6 compiler we have now is far ahead of what we had before. Unlike the previous compiler, we're finding that new features are easily added to the system, and that many changes aren't requiring me to shepherd many of the low-level details. For example...

* Flavio Glock joined the Parrot effort this week in a big way, and has been exploring NQP and perl6 and how they can fit in with the KindaPerl 6 (kp6) effort. Flavio has brought us many useful ideas and insights from kp6, and today he added BEGIN blocks to the perl6 compiler. We've also got some initial ideas about handling eval() in perl6, which will be very useful. Right now we're blocking on some issues dealing with lexical variable handling, but Jonathan Worthington has said he'll take a look at that.

* Jonathan Worthington has also been eager to play with junctions in Perl 6, so earlier this week he added an early implementation of a Junction object type. It even works for some simple things, although it doesn't yet do any sort of autothreading. On top of that, Jonathan also added postcircumfix:( ) (subroutine call), postcircumfix:{ } (hash index), and a working implementation of the '&' sigil. Of course, what I really liked best about this were his frequent comments about how easy and fun it was to work with the perl6 compiler. That makes me feel good.

Oh, and by the way, Jonathan also managed the Parrot 0.5.1 release today. Great work!

* chromatic implemented the "copy" opcode that we'll be needing to properly handle assignment in perl6 and other compilers. That was likely to become a huge obstacle to getting things to work properly, and I'm glad the ball for it is back in the PAST/perl6 court so that we can finish that off.

As for me, most of what I've been doing is answering questions on IRC and doing any refactors or cleanups that need to be done to allow others to implement features. So, I worked on things like
      * getting :slurpy to work in PAST (needed for Punie and perl6)
      * getting perl6 to talk directly to PGE again for regex matching
      * refactoring block generation in perl6 to better handle formal params
      * refactoring the PCT::HLLCompiler object and PAST/POST compilers to be a bit saner
      * describing various changes/improvements we're likely to want in Parrot

So, it's been a very productive week, and I'm hoping this next week can be equally productive. The things I plan to focus on for this week:

* some more documentation and articles about PCT, PAST, and NQP, and getting started with perl6 (including more detailed notes for new hackers)

* Scott Duff (PerlJam) has an article half-written about Perl 6 regexes that is waiting for a usable implementation, so I'd like to see perl6 get far enough along that he can publish his article based on perl6

* Jeff Horwitz is doing lots of amazing things with mod_parrot, and he says that if we can get modules working in perl6 that he'll be able to write mod_perl6 in Perl 6. So, 'module' is high on my list of things to accomplish.

* Of course, we're going to return to the effort of getting perl6 to pass as many of the official Perl 6 tests (from the pugs test suite) as we can, and refactoring tests as appropriate.

Stay tuned, take a look at the pieces that are coming together, and if you can, come join the fun!

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.
  • Sounds exciting. It's great to hear about the progress.
  • Do you have a way to package everything up into something that just exposes a "perl6" command on the command line?

    Something that we could at some point release as a sort of blessed Perl 6 Alpha 1?
    • We could merge all of the necessary PBC files into a single PBC file, and then transliterate that into a C program which links against libparrot. particle and I have a working PBC to C transliterator, written in Parrot.

      • That would be awesome to have automated, the ability to generate the perl6 binaries from the codebase.

        This would also be a godsend from a morale/marketing point of view, for all the people that keep asking "where is Perl 6 up to".

        And it would probably help to get a few more people generally mucking around with Parrot/Perl6 and getting them engaged.
    • I keep wondering if doesn't make sense to reduce the scope of "What is Perl 6" some, so a true Perl 6 release is easier and quicker to accomplish. Features wouldn't have to dropped, they could just be re-targetted as Perl 6.1 features, etc.

      I'd be happy if the functionality of Perl 6.0 was Perl 5 plus just a bit more, with a shinier, happier syntax.
  • Simply amazing. Parrot/Perl 6 development is really getting much more life recently. And what else could be more fitting for the world to see than an official Perl 6 alpha release.