So last time I wrote, I hoped not to get too many issues that kept me from hacking on Perl 6 and Parrot. As it happens, I did get sick and that wiped me out for about a week.
Amongst it all, I found time to write a few lines of code for the Perl 6 compiler. I really, really didn't want to go to Ukraine and talk about the Perl 6 object model without people being able to play with it. So...I started implementing it. And now you can have classes with methods and attributes.
class Foo {
has $a;
method set {
$a = "w00t";
}
method get {
say $a;
}
}
my $x = Foo.new();
$x.set();
$x.get(); # prints w00t
No accessor and/or mutator methods yet, but I plan to do those next. Then I will do compile time role composition, provided everyone is happy with me doing so. I already implemented roles and the composition algorithm in Parrot anyway, so it should be relatively easy to get the basics of that into the Perl 6 compiler too.
Beyond that, my personal roadmap (as in, what I plan to hack on if it doesn't get in the way of what others are doing) is:
Is there anything runnable? (Score:1)
Is this available as part of the perl6 executable? or the Radoku compiler? How can I start playing with this?
We have accumulated well over 3000 unit tests in Moose and Class::MOP, and I am sure at least 1/2 to 2/3rds of them are relevant enough to Perl 6 that they would be useful here. Especially some of the nasty edge cases we have discovered with Role composition, it would save you from having to find them on your own. Feel free to pop over to #moose on irc.perl.org or email me directly.
- Stevan
Re: (Score:2)
This should mean I can port my Hilbert's Curve code from Perl and C++ and add it to the "What can I do with Perl 6 today" wiki page.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re: (Score:1)
The tests sound very interesting. I guess the place for them really is the Perl 6 test repository (in the Pugs SVN), then we can pull them down for testing Radoku but they are available f
Publicizing (Score:2)
--
xoa