rakudo

how do I create a stand-alone executable with perl 6?

穿精又带淫゛_ 提交于 2019-12-06 20:18:59
问题 The OLD Perl 6 faq said: "Rakudo, a Perl 6 compiler based on Parrot, allows compilation to bytecode, and a small wrapper exists that can pack up a bytecode file and parrot into a single executable." So, it was possible to create a stand-alone executable, but I can not find any docs explaining how to go about this, or if it's still possible. So, I turn to you. What is the appropriate set of incantations required to convert Perl 6 code into a stand-alone executable that will work on a system

how do I create a stand-alone executable with perl 6?

末鹿安然 提交于 2019-12-05 01:37:08
The OLD Perl 6 faq said: "Rakudo, a Perl 6 compiler based on Parrot, allows compilation to bytecode, and a small wrapper exists that can pack up a bytecode file and parrot into a single executable." So, it was possible to create a stand-alone executable, but I can not find any docs explaining how to go about this, or if it's still possible. So, I turn to you. What is the appropriate set of incantations required to convert Perl 6 code into a stand-alone executable that will work on a system that does not have Perl 6 installed. This is not possible with current Rakudo on MoarVM. There's still

How do I invoke a Java method from perl6

本小妞迷上赌 提交于 2019-12-03 17:37:10
问题 use java::util::zip::CRC32:from<java>; my $crc = CRC32.new(); for 'Hello, Java'.encode('utf-8') { $crc.'method/update/(B)V'($_); } say $crc.getValue(); sadly, this does not work Method 'method/update/(B)V' not found for invocant of class 'java.util.zip.CRC32' This code is available at the following links. It is the only example I've been able to find Rakudo Perl 6 on the JVM (slides) Perl 6 Advent Calendar: Day 03 – Rakudo Perl 6 on the JVM 回答1: Final answer Combining the code cleanups

How can I use Perl 5 modules from Perl 6?

两盒软妹~` 提交于 2019-12-03 10:39:12
Is the a way to use Perl 5 modules from CPAN from Rakudo Perl 6? For example, how can I use the venerable Perl 5 module, CGI, which hasn't been ported yet, in Perl 6. Update: And what this funky code from some early Perl 6 module: use CGI:from<perl5>; Is the :from<perl5> directive used to evoke some kind of a Perl 5 compatibility layer? Can't seem to find any documentation about it. user7610 Inline::Perl5 Get it from http://modules.perl6.org/ panda install Inline::Perl5 Following example shows how to import and call Perl 5 module Text::Unidecode , "the Unicode transliteration of last resort"

How do I invoke a Java method from perl6

放肆的年华 提交于 2019-12-03 07:41:59
use java::util::zip::CRC32:from<java>; my $crc = CRC32.new(); for 'Hello, Java'.encode('utf-8') { $crc.'method/update/(B)V'($_); } say $crc.getValue(); sadly, this does not work Method 'method/update/(B)V' not found for invocant of class 'java.util.zip.CRC32' This code is available at the following links. It is the only example I've been able to find Rakudo Perl 6 on the JVM (slides) Perl 6 Advent Calendar: Day 03 – Rakudo Perl 6 on the JVM Final answer Combining the code cleanups explained in the Your answer cleaned up section below with Pepe Schwarz's improvements mentioned in the