Questions tagged [rakudo-star]

rakudo-star is a distribution of rakudo, and bundles the rakudo Perl 6 compiler, the Parrot virtual machine, many modules, and documentation, including the latest draft of a book on Perl 6.

rakudo-star is an usable and useful production distribution of Perl 6, which bundles the rakudo compiler, the MoarVM virtual machine, many modules, and documentation, including the latest draft of a book on Perl 6.

Use this one instead of the tag when your problem is specifically about the star distribution.

23 questions
17
votes
3 answers

Is it possible to compile/install Perl6 on a Raspberry Pi 3?

I am trying to install Rakudo Star 2018.04 on a Raspberry Pi 3. I do: sudo perl Configure.pl --gen-moar --gen-nqp --prefix ~/rakudo and it completes successfully. And then I try: sudo make-install but it fails with: The following step can take a…
ryn1x
  • 1,052
  • 2
  • 8
  • 19
9
votes
1 answer

RAKUDO_RAKUAST=1 raku --target=ast is not yet available

It has been almost a year since I saw Jonathan Worthington presenting the new RakuAST in the YouTube video A Raku API to Raku programs the journey so far from TRC 2021. In the video, he showed that we could dump this new RakuAST using…
WhiteMist
  • 885
  • 4
  • 13
9
votes
2 answers

Install Raku (Perl 6) in Ubuntu along with Perl 5.26

I am eager to learn Raku(Perl 6) and its syntax. I already have Perl 5 installed in my Ubuntu machine. vinod@ubuntu-s-1vcpu-1gb-nyc1-01:~$ perl -v This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67…
vkk05
  • 3,137
  • 11
  • 25
8
votes
2 answers

What is the proper way to load Raku modules using rakudo-star?

I have the following project $ tree . ├── lib │   └── MyModule.raku └── main.raku $ cat lib/MyModule.raku use v6; unit module MyModule; sub hello { say 'hello' } $ cat lib/main.raku use v6; use MyModule; MyModule.hello(); I would like to run…
littlebenlittle
  • 833
  • 2
  • 9
  • 18
8
votes
1 answer

perl6: do I need the @-sigil for userdefined variables?

Is there something I can't do without the '@'-sigil when working with user-defined variables? #!perl6 use v6; my $list = ; my @list = ; $list.list.perl.say; @list.perl.say;…
sid_com
  • 24,137
  • 26
  • 96
  • 187
8
votes
1 answer

Strange behavior of Buf.subbuf in Perl 6

Today I installed Rakudo Star 2012.07 and tryed to write a simple Perl 6 script: #!/usr/bin/env perl6 use v6; use LWP::Simple; my $html = LWP::Simple.get('http://perl6.org'); say $html; It doesn't work because of the following error: No such…
Aleksander Alekseev
  • 1,854
  • 4
  • 25
  • 57
7
votes
1 answer

Perl6 script on MSYS2 causes 'failed to stat file' error

When I try to run a simple perl6 script on MSYS2-64 (bash.exe) on Windows 7 it says: Could not open my-perl6-script.pl. Failed to stat file: no such file or directory The same script runs perfectly fine on CMD.exe so I guess it's some…
Terry
  • 1,206
  • 1
  • 10
  • 26
6
votes
1 answer

What is the purpose of appending the :from suffix to the module name in a 'use' statement in Perl 6?

What's the purpose of use statement below which I stumbled across in some Perl 6 module? use CGI:from; ... ... The rest of the code is just mundane usage of the Perl 5 CGI module, as far as I can tell. Is the ":from" suffix used to invoke…
GeneQ
  • 7,485
  • 6
  • 37
  • 53
6
votes
1 answer

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:…
Ankur Sethi
  • 3,508
  • 5
  • 23
  • 17
5
votes
1 answer

How is determined which modules are included with the Rakudo Star release

Rakudo Star is a release targeted towards end users (if I'm not mistaken). As such, it includes a number of useful modules that can be used in a wide range of projects. But how does the team behind it decide which modules to include? Do module…
Tyil
  • 1,797
  • 9
  • 14
5
votes
2 answers

perl6/rakudo: Does perl6 enable "autoflush" by default?

#!perl6 use v6; my $message = "\nHello!\n\nSleep\nTest\n\n"; my @a = $message.split( '' ); for @a { sleep 0.3; .print; } Does perl6 enable "autoflush" by default. With perl5 without enabling "outflush" I don't get this behavior.
sid_com
  • 24,137
  • 26
  • 96
  • 187
5
votes
2 answers

perl6/rakudo: Unable to parse postcircumfix:sym<( )>

Why do I get this error-message? #!perl6 use v6; my @a = 1..3; my @b = 7..10; my @c = 'a'..'d'; for zip(@a;@b;@c) -> $nth_a, $nth_b, $nth_c { ... }; # Output: # ===SORRY!=== # Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at…
sid_com
  • 24,137
  • 26
  • 96
  • 187
5
votes
3 answers

how to compile perl6 program to generate bytecode?

I am trying to understand perl6 and its changes than perl5. I come to know that perl 6 is compiled languages but I am not getting how? It is not generating any intermediate code (directly executable or jvm bytecode)? I am not getting any option to…
Gaurav Pant
  • 4,029
  • 6
  • 31
  • 54
4
votes
2 answers

perl6/rakudo: How could I disable autoflush?

I tried this, but it didn't work: $*OUT.autoflush( 0 );
sid_com
  • 24,137
  • 26
  • 96
  • 187
4
votes
2 answers

perl6/rakudo: How can I change the data-type of a variable?

#!perl6 use v6; my $m = 70; my $n = 30; ( $m div $n ).say; The first examples works, but the second doesn't. I suppose it's because in the second example the variable-values are strings. If my guess is right, how could I change the…
sid_com
  • 24,137
  • 26
  • 96
  • 187
1
2