in reply to Re: Rakudo Star (Perl 6 bundle) now supports MoarVM and JVM backends
in thread Rakudo Star (Perl 6 bundle) now supports MoarVM and JVM backends

From jnthn's examples of calling Java code:

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();

As you can see, it requires an arcane string in place of a regular method name. Aiui jnthn knows what they have to do to fix this (so you can just use a regular method name) but I don't think any core hacker currently has it high on their todo list.

  • Comment on Re^2: Rakudo Star (Perl 6 bundle) now supports MoarVM and JVM backends
  • Download Code