rakudo

How do I get started with Perl 6?

I'd like to get your opinion on How to get started with Perl 6? Shall one use Rakudo which is being build on Parrot or still better go with the Pugs implementation? If Rakudo, what is the best way to install it? The monthly releases of Parrot, right from the SVN of Parrot, other? ...

Where Can I Find Demo/Sample Code For Perl 6?

Hi all, I've got myself a copy of Rakudo and I'd love to give it a test drive. After looking around the Internet I found some code snippets of cool Perl 6 stuff, but no complete scripts. Any sites that make practical Perl 6 scripts available would be appreciated. Thanks guys, Ehtyar. ...

Trouble using grammar with rakudo perl6

The simplest grammar usage gives me complation error. use v6; grammar Foo { token bar { \w+ } } say 'abc' ~~ /<Foo::bar>/; Invoked like src/rakudo/perl6 simple.p6, it fails with regex assertion not terminated by angle bracket at line 7, near "::bar>/;\n" ... I tried a number of known-to-work examples with similar results, so I ...

How to know the version of perl6/rakudo I am running?

Trying the -v switch, I get the parrot svn revision: $ perl6 -v This compiler is built with the Parrot Compiler Toolkit, parrot revision 45822. but how do I know the rakudo version, either a vx.xx or {some-git-hash}? Thanks, ...

What performance increases can we expect as the Perl 6 implementations mature?

Each time I have downloaded a new copy of Rakudo Perl 6, I have run the following expression just to get an idea of its current performance: say [+] 1 .. 100000; And the speeds have been increasing, but each time, there is a noticeable delay (several seconds) for the calculation. As a comparison, something like this in Perl 5 (or oth...

Why do I get 'divide by zero` errors when I try to run my script with Rakudo?

I just built Rakudo and Parrot so that I could play with it and get started on learning Perl 6. I downloaded the Perl 6 book and happily typed in the first demo program (the tennis tournament example). When I try to run the program, I get an error: Divide by zero current instr.: '' pc -1 ((unknown file):-1) I have my perl6 binary in...

How to load parrot SDL pir module in rakudo?

I don't know how to load de parrot SDL module in rakudo. I've found a example to do that with pir code. But... there is any way to load pir SDL module into rakudo with perl code? ...

Sockets code in Rakudo Perl

I've been trying to run some sockets code in Rakudo Perl (freshly built from the repository at http://github.com/rakudo/rakudo) but the implementation of IO::Socket::INET appears to be incomplete. The code I'm trying to run is here: http://github.com/carlins/irc-client/blob/master/lib/IRC/Client.pm This is the error: Method 'inpu...