|
|
|
May 31st, 2005
11:22 pm - self definition Up until now, the quickest way to contribute to Perl6 was to write tests for pugs (in Perl6). The next step was typically to add a simple primitive to the language, but you had to learn a little Haskell to do that.
I just checked in some code that automatically includes a standard (and Perl6) "Prelude.pm" module in the pugs build, so now you can hack Perl6 in Perl6. For example, the builtins for opening files are there, since they take complex options and it's a shame to parse those in Haskell when you have Perl so near by. I'd been worrying about this for a while but it turned out to be pretty easy to do. I love dynamic languages :-)
The next thing to do here is make it so that the build actually compiles the Prelude and inlines the AST inside the pugs executable, and not the Perl source, so it doesn't slow down the load time, but I think I'll let people with robes and pointy hats do that bit.
|
![[User Picture]](https://l-userpic.livejournal.com/17254939/2207121) | | From: | util |
| Date: | May 31st, 2005 08:34 pm (UTC) |
|---|
| | | (Link) |
|
This sounds awesome. I look forward to playing with this sometime. ![[User Picture]](https://l-userpic.livejournal.com/265901/210712) | | From: | gaal |
| Date: | May 31st, 2005 09:03 pm (UTC) |
|---|
| | | (Link) |
|
Why not today? :)
apt-get install ghc-cvs ; cpan Perl6::Pugs |
|
|
|
|
LiveJournal.com |