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…
There used to be a graph that tracked the implementation of Perl6 against the test suite for Perl6. I was interested in watching it progress (and, regress). What happened to that graph, it used to be hosted on the site www.rakudo.de
Is there any…
I am currently trying to use hashes in an array to find the keys and values of each specific item in the array. I am able to do this and both the keys and the values are separate when I haven't sorted the array, but when I create a sorted array such…
Yes, still going with this. My impression is that there's this powerful facility in Raku, which is not really easy to use, and there's so little documentation for that. I'd like to kind of mitigate that.
In this case, I'm trying to force…
I would like to download some sophisticated graphical interface for Raku for Windows 8.
Where can I find one ?
I have installed the following, which looks good, but I cannot currently run the oppened script:
EDIT
EDIT 2
I cannot enter the path…
I'm trying to link libzip to Raku, and it uses a void struct or a struct with no body, like this:
struct zip;
typedef struct zip zip_t;
I declare it in my Raku program in the same way:
class zip_t is repr('CStruct'){};
This fails with:
Class zip_t…
I am reading Think Perl 6 by Laurent Rosenfeld, with Allen B. Downey
recently which is a very good reading.
It has its .tex files available in github here.
It has code examples like this:
I believe it would be very useful to have the code blocks…
In perl6 I can create an array of fixed size as so:
my @array[5];
How can I then change the size of the array later on to be larger, for instance I want array to be of size 7 now
Thanks
I have a rakudo instance that will do nothing other than respond with "Could not load oplib 'nqp_dyncall_ops'".
Using the REPL:
perl6
Could not load oplib 'nqp_dyncall_ops
exit
Unable to load setting CORE; maybe it is missing a…
I'm trying to precompile external files to get their assets with this script:
#!/usr/bin/env perl6
use v6;
use nqp;
my $precomp-store = CompUnit::PrecompilationStore::File.new(prefix => "/tmp".IO);
our $precomp =…
Here's my test program:
use Readline;
shell 'clear';
my $r = Readline.new;
loop {
my $a = $r.readline("> ");
{say ''; last} if not defined $a;
$r.add-history( $a );
say $a;
}
After I enter any string, it exits with the following…
I'm trying to install Readline.
(The system is Linux Mint Mate 18.3, the same is true for Lubuntu 17.10).
$ zef install Readline
The installation process begins but later is aborted with the following messages:
===> Searching for: Readline
===>…
In Perl 6 the Str type is immutable, so it seems reasonable to use a mutable buffer instead of concatenating a lot of strings. Next, I like being able to use the same API regardless if my function is writing to stdout, file or to an in-memory…
#!perl6
use v6;
my $list = 'a' .. 'f';
sub my_function( $list ) {
for ^$list.elems -> $e {
$list[$e].say;
}
}
my_function( $list );
First I tried this in perl5-style, but it didn't work:
for @$list -> $e {
$e.say;
}
#…