Skip Menu |
Report information
Id: 129909
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: dataf5l [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Felipe Valdes <dataf5l [...] gmail.com>
Subject: [BUG] cannot compile to jar files for client use using --target=jvm
To: rakudobug [...] perl.org
Date: Mon, 17 Oct 2016 23:41:38 -0500
I want my clients to be able to run jar files
generated by the perl6 command:

The program:

my $num = (1..100).pick;

my $guess_count = 0;


loop {

my $guess = prompt("guess");

if $guess == $num {

say "Well done";

last;

}

if $guess > $num {

say "Lower";

}

if $guess < $num {

say "Higher";

}

if $guess_count == 7 {

say "you suck!";

last;

}

$guess_count++;

}


the compilation command:

perl6 --target=jvm --output=guess.jar guess.p6


the result:

===SORRY!===

java.lang.NullPointerException


The version:

This is Rakudo version 2016.10-9-g906719c built on JVM

implementing Perl 6.c.


I think the error message is less than awesome.


Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm --output=guess.jar guess.p6 

Stage start      :   0.000

Stage parse      :   3.405

Stage syntaxcheck:   0.001

Stage ast        :   0.001

Stage optimize   :   0.140

Stage jast       :   0.395

Stage classfile  :   0.081

Stage jar        :   0.000

Stage jvm        :   0.006

===SORRY!===

java.lang.NullPointerException

Felipes-MacBook-Pro:backend2 a$ 




From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Re: [perl #129909] [BUG] cannot compile to jar files for client use using --target=jvm
To: "Felipe Valdes (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Tue, 18 Oct 2016 22:42:11 +0100
Download (untitled) / with headers
text/plain 1.6k
What happens if you add --ll-exception to the command line? Show quoted text
> On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Felipe Valdes > # Please include the string: [perl #129909] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 > > > > I want my clients to be able to run jar files > generated by the perl6 command: > > The program: > > my $num = (1..100).pick; > > my $guess_count = 0; > > > loop { > > my $guess = prompt("guess"); > > if $guess == $num { > > say "Well done"; > > last; > > } > > if $guess > $num { > > say "Lower"; > > } > > if $guess < $num { > > say "Higher"; > > } > > if $guess_count == 7 { > > say "you suck!"; > > last; > > } > > $guess_count++; > > } > > > the compilation command: > > perl6 --target=jvm --output=guess.jar guess.p6 > > > the result: > > ===SORRY!=== > > java.lang.NullPointerException > > > The version: > > This is Rakudo version 2016.10-9-g906719c built on JVM > > implementing Perl 6.c. > > > I think the error message is less than awesome. > > > Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm > --output=guess.jar guess.p6 > > Stage start : 0.000 > > Stage parse : 3.405 > > Stage syntaxcheck: 0.001 > > Stage ast : 0.001 > > Stage optimize : 0.140 > > Stage jast : 0.395 > > Stage classfile : 0.081 > > Stage jar : 0.000 > > Stage jvm : 0.006 > > ===SORRY!=== > > java.lang.NullPointerException > > Felipes-MacBook-Pro:backend2 a$
Date: Tue, 18 Oct 2016 18:10:25 -0500
From: Felipe Valdes <dataf5l [...] gmail.com>
Subject: Re: [perl #129909] [BUG] cannot compile to jar files for client use using --target=jvm
To: perl6-bugs-followup [...] perl.org
Download (untitled) / with headers
text/plain 2.2k

perl6 --target=jvm  --ll-exception --output=guess.jar guess.p6


java.lang.NullPointerException

  in command_eval (gen/jvm/stage2/NQPHLL.nqp:1217)

  in command_eval (src/Perl6/Compiler.nqp:27)

  in command_line (gen/jvm/stage2/NQPHLL.nqp:1181)

  in MAIN (gen/jvm/main.nqp:47)

  in <mainline> (gen/jvm/main.nqp:38)

  in  (gen/jvm/main.nqp)



On Tue, Oct 18, 2016 at 4:43 PM, Elizabeth Mattijsen via RT <perl6-bugs-followup@perl.org> wrote:
Show quoted text
What happens if you add --ll-exception to the command line?

> On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <perl6-bugs-followup@perl.org> wrote:
>
> # New Ticket Created by  Felipe Valdes
> # Please include the string:  [perl #129909]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 >
>
>
> I want my clients to be able to run jar files
> generated by the perl6 command:
>
> The program:
>
> my $num = (1..100).pick;
>
> my $guess_count = 0;
>
>
> loop {
>
> my $guess = prompt("guess");
>
> if $guess == $num {
>
> say "Well done";
>
> last;
>
> }
>
> if $guess > $num {
>
> say "Lower";
>
> }
>
> if $guess < $num {
>
> say "Higher";
>
> }
>
> if $guess_count == 7 {
>
> say "you suck!";
>
> last;
>
> }
>
> $guess_count++;
>
> }
>
>
> the compilation command:
>
> perl6 --target=jvm --output=guess.jar guess.p6
>
>
> the result:
>
> ===SORRY!===
>
> java.lang.NullPointerException
>
>
> The version:
>
> This is Rakudo version 2016.10-9-g906719c built on JVM
>
> implementing Perl 6.c.
>
>
> I think the error message is less than awesome.
>
>
> Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm
> --output=guess.jar guess.p6
>
> Stage start      :   0.000
>
> Stage parse      :   3.405
>
> Stage syntaxcheck:   0.001
>
> Stage ast        :   0.001
>
> Stage optimize   :   0.140
>
> Stage jast       :   0.395
>
> Stage classfile  :   0.081
>
> Stage jar        :   0.000
>
> Stage jvm        :   0.006
>
> ===SORRY!===
>
> java.lang.NullPointerException
>
> Felipes-MacBook-Pro:backend2 a$



RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 3.3k
On Tue Oct 18 18:07:05 2016, dataf5l@gmail.com wrote: Show quoted text
> perl6 --target=jvm --ll-exception --output=guess.jar guess.p6 > > > java.lang.NullPointerException > > in command_eval (gen/jvm/stage2/NQPHLL.nqp:1217) > > in command_eval (src/Perl6/Compiler.nqp:27) > > in command_line (gen/jvm/stage2/NQPHLL.nqp:1181) > > in MAIN (gen/jvm/main.nqp:47) > > in <mainline> (gen/jvm/main.nqp:38) > > in (gen/jvm/main.nqp) > > > > On Tue, Oct 18, 2016 at 4:43 PM, Elizabeth Mattijsen via RT < > perl6-bugs-followup@perl.org> wrote: >
> > What happens if you add --ll-exception to the command line? > >
> > > On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <
> > perl6-bugs-followup@perl.org> wrote:
> > > > > > # New Ticket Created by Felipe Valdes > > > # Please include the string: [perl #129909] > > > # in the subject line of all future correspondence about this issue. > > > # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 > > > > > > > > > > I want my clients to be able to run jar files > > > generated by the perl6 command: > > > > > > The program: > > > > > > my $num = (1..100).pick; > > > > > > my $guess_count = 0; > > > > > > > > > loop { > > > > > > my $guess = prompt("guess"); > > > > > > if $guess == $num { > > > > > > say "Well done"; > > > > > > last; > > > > > > } > > > > > > if $guess > $num { > > > > > > say "Lower"; > > > > > > } > > > > > > if $guess < $num { > > > > > > say "Higher"; > > > > > > } > > > > > > if $guess_count == 7 { > > > > > > say "you suck!"; > > > > > > last; > > > > > > } > > > > > > $guess_count++; > > > > > > } > > > > > > > > > the compilation command: > > > > > > perl6 --target=jvm --output=guess.jar guess.p6 > > > > > > > > > the result: > > > > > > ===SORRY!=== > > > > > > java.lang.NullPointerException > > > > > > > > > The version: > > > > > > This is Rakudo version 2016.10-9-g906719c built on JVM > > > > > > implementing Perl 6.c. > > > > > > > > > I think the error message is less than awesome. > > > > > > > > > Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm > > > --output=guess.jar guess.p6 > > > > > > Stage start : 0.000 > > > > > > Stage parse : 3.405 > > > > > > Stage syntaxcheck: 0.001 > > > > > > Stage ast : 0.001 > > > > > > Stage optimize : 0.140 > > > > > > Stage jast : 0.395 > > > > > > Stage classfile : 0.081 > > > > > > Stage jar : 0.000 > > > > > > Stage jvm : 0.006 > > > > > > ===SORRY!=== > > > > > > java.lang.NullPointerException > > > > > > Felipes-MacBook-Pro:backend2 a$
> > > > > >
The feature you're asking for does not exist at the moment. You can get the precompiled compilation unit of a Perl 6 program as a .jar with C<--target=jar>, but that doesn't help you, because it a compilation unit that can be understood by a Rakudo executable, not a jar file that can be understood by any JVM. The file at [1] is a shell script that includes the step that will eventually be integrated into the perl6 binary to generate a self-contained jar file from Perl 6 code, albeit in the simplest way possible. That is, bundle the whole interpreter and make that run a predefined compilation unit. There is a corresponding Rakudo branch Note though that the branch hasn't been updated in quite a while and might not necessarily merge cleanly against current HEAD. [1] https://github.com/perl6/nqp/blob/standalone-jar/tools/jvm/one-jar-script.sh
Date: Wed, 19 Oct 2016 13:09:14 -0500
Subject: Re: [perl #129909] [BUG] cannot compile to jar files for client use using --target=jvm
To: perl6-bugs-followup [...] perl.org
From: Felipe Valdes <dataf5l [...] gmail.com>
Thank you for the prompt response.

I'll review the JVM script provided, it may run!

Since the feature isn't finished, is there a way to generate a MOAR file I can provide my users which "just runs" but doesn't include the secret sauce?

or is this an unreasonable expectation?



On Wed, Oct 19, 2016 at 12:00 PM, Pepe Schwarz via RT <perl6-bugs-followup@perl.org> wrote:
Show quoted text
On Tue Oct 18 18:07:05 2016, dataf5l@gmail.com wrote:
> perl6 --target=jvm  --ll-exception --output=guess.jar guess.p6
>
>
> java.lang.NullPointerException
>
>   in command_eval (gen/jvm/stage2/NQPHLL.nqp:1217)
>
>   in command_eval (src/Perl6/Compiler.nqp:27)
>
>   in command_line (gen/jvm/stage2/NQPHLL.nqp:1181)
>
>   in MAIN (gen/jvm/main.nqp:47)
>
>   in <mainline> (gen/jvm/main.nqp:38)
>
>   in  (gen/jvm/main.nqp)
>
>
>
> On Tue, Oct 18, 2016 at 4:43 PM, Elizabeth Mattijsen via RT <
> perl6-bugs-followup@perl.org> wrote:
>
> > What happens if you add --ll-exception to the command line?
> >
> > > On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <
> > perl6-bugs-followup@perl.org> wrote:
> > >
> > > # New Ticket Created by  Felipe Valdes
> > > # Please include the string:  [perl #129909]
> > > # in the subject line of all future correspondence about this issue.
> > > # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 >
> > >
> > >
> > > I want my clients to be able to run jar files
> > > generated by the perl6 command:
> > >
> > > The program:
> > >
> > > my $num = (1..100).pick;
> > >
> > > my $guess_count = 0;
> > >
> > >
> > > loop {
> > >
> > > my $guess = prompt("guess");
> > >
> > > if $guess == $num {
> > >
> > > say "Well done";
> > >
> > > last;
> > >
> > > }
> > >
> > > if $guess > $num {
> > >
> > > say "Lower";
> > >
> > > }
> > >
> > > if $guess < $num {
> > >
> > > say "Higher";
> > >
> > > }
> > >
> > > if $guess_count == 7 {
> > >
> > > say "you suck!";
> > >
> > > last;
> > >
> > > }
> > >
> > > $guess_count++;
> > >
> > > }
> > >
> > >
> > > the compilation command:
> > >
> > > perl6 --target=jvm --output=guess.jar guess.p6
> > >
> > >
> > > the result:
> > >
> > > ===SORRY!===
> > >
> > > java.lang.NullPointerException
> > >
> > >
> > > The version:
> > >
> > > This is Rakudo version 2016.10-9-g906719c built on JVM
> > >
> > > implementing Perl 6.c.
> > >
> > >
> > > I think the error message is less than awesome.
> > >
> > >
> > > Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm
> > > --output=guess.jar guess.p6
> > >
> > > Stage start      :   0.000
> > >
> > > Stage parse      :   3.405
> > >
> > > Stage syntaxcheck:   0.001
> > >
> > > Stage ast        :   0.001
> > >
> > > Stage optimize   :   0.140
> > >
> > > Stage jast       :   0.395
> > >
> > > Stage classfile  :   0.081
> > >
> > > Stage jar        :   0.000
> > >
> > > Stage jvm        :   0.006
> > >
> > > ===SORRY!===
> > >
> > > java.lang.NullPointerException
> > >
> > > Felipes-MacBook-Pro:backend2 a$
> >
> >
> >

The feature you're asking for does not exist at the moment.

You can get the precompiled compilation unit of a Perl 6 program as a .jar with C<--target=jar>, but that doesn't help you, because it a compilation unit that can be understood by a Rakudo executable, not a jar file that can be understood by any JVM.

The file at [1] is a shell script that includes the step that will eventually be integrated into the perl6 binary to generate a self-contained jar file from Perl 6 code, albeit in the simplest way possible. That is, bundle the whole interpreter and make that run a predefined compilation unit. There is a corresponding Rakudo branch

Note though that the branch hasn't been updated in quite a while and might not necessarily merge cleanly against current HEAD.

[1] https://github.com/perl6/nqp/blob/standalone-jar/tools/jvm/one-jar-script.sh

RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 4.5k
There are plans to make that a possibility eventually, but as far as I know that's not a priority of what the developers are focusing on at the moment. On Wed, 19 Oct 2016 13:55:47 -0700, dataf5l@gmail.com wrote: Show quoted text
> Thank you for the prompt response. > > I'll review the JVM script provided, it may run! > > Since the feature isn't finished, is there a way to generate a MOAR > file I > can provide my users which "just runs" but doesn't include the secret > sauce? > > or is this an unreasonable expectation? > > > > On Wed, Oct 19, 2016 at 12:00 PM, Pepe Schwarz via RT < > perl6-bugs-followup@perl.org> wrote: >
> > On Tue Oct 18 18:07:05 2016, dataf5l@gmail.com wrote:
> > > perl6 --target=jvm --ll-exception --output=guess.jar guess.p6 > > > > > > > > > java.lang.NullPointerException > > > > > > in command_eval (gen/jvm/stage2/NQPHLL.nqp:1217) > > > > > > in command_eval (src/Perl6/Compiler.nqp:27) > > > > > > in command_line (gen/jvm/stage2/NQPHLL.nqp:1181) > > > > > > in MAIN (gen/jvm/main.nqp:47) > > > > > > in <mainline> (gen/jvm/main.nqp:38) > > > > > > in (gen/jvm/main.nqp) > > > > > > > > > > > > On Tue, Oct 18, 2016 at 4:43 PM, Elizabeth Mattijsen via RT < > > > perl6-bugs-followup@perl.org> wrote: > > >
> > > > What happens if you add --ll-exception to the command line? > > > >
> > > > > On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <
> > > > perl6-bugs-followup@perl.org> wrote:
> > > > > > > > > > # New Ticket Created by Felipe Valdes > > > > > # Please include the string: [perl #129909] > > > > > # in the subject line of all future correspondence about this > > > > > issue. > > > > > # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 > > > > > > > > > > > > > > > > I want my clients to be able to run jar files > > > > > generated by the perl6 command: > > > > > > > > > > The program: > > > > > > > > > > my $num = (1..100).pick; > > > > > > > > > > my $guess_count = 0; > > > > > > > > > > > > > > > loop { > > > > > > > > > > my $guess = prompt("guess"); > > > > > > > > > > if $guess == $num { > > > > > > > > > > say "Well done"; > > > > > > > > > > last; > > > > > > > > > > } > > > > > > > > > > if $guess > $num { > > > > > > > > > > say "Lower"; > > > > > > > > > > } > > > > > > > > > > if $guess < $num { > > > > > > > > > > say "Higher"; > > > > > > > > > > } > > > > > > > > > > if $guess_count == 7 { > > > > > > > > > > say "you suck!"; > > > > > > > > > > last; > > > > > > > > > > } > > > > > > > > > > $guess_count++; > > > > > > > > > > } > > > > > > > > > > > > > > > the compilation command: > > > > > > > > > > perl6 --target=jvm --output=guess.jar guess.p6 > > > > > > > > > > > > > > > the result: > > > > > > > > > > ===SORRY!=== > > > > > > > > > > java.lang.NullPointerException > > > > > > > > > > > > > > > The version: > > > > > > > > > > This is Rakudo version 2016.10-9-g906719c built on JVM > > > > > > > > > > implementing Perl 6.c. > > > > > > > > > > > > > > > I think the error message is less than awesome. > > > > > > > > > > > > > > > Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm > > > > > --output=guess.jar guess.p6 > > > > > > > > > > Stage start : 0.000 > > > > > > > > > > Stage parse : 3.405 > > > > > > > > > > Stage syntaxcheck: 0.001 > > > > > > > > > > Stage ast : 0.001 > > > > > > > > > > Stage optimize : 0.140 > > > > > > > > > > Stage jast : 0.395 > > > > > > > > > > Stage classfile : 0.081 > > > > > > > > > > Stage jar : 0.000 > > > > > > > > > > Stage jvm : 0.006 > > > > > > > > > > ===SORRY!=== > > > > > > > > > > java.lang.NullPointerException > > > > > > > > > > Felipes-MacBook-Pro:backend2 a$
> > > > > > > > > > > >
> > > > The feature you're asking for does not exist at the moment. > > > > You can get the precompiled compilation unit of a Perl 6 program as a > > .jar > > with C<--target=jar>, but that doesn't help you, because it a > > compilation > > unit that can be understood by a Rakudo executable, not a jar file > > that can > > be understood by any JVM. > > > > The file at [1] is a shell script that includes the step that will > > eventually be integrated into the perl6 binary to generate a self- > > contained > > jar file from Perl 6 code, albeit in the simplest way possible. That > > is, > > bundle the whole interpreter and make that run a predefined > > compilation > > unit. There is a corresponding Rakudo branch > > > > Note though that the branch hasn't been updated in quite a while and > > might > > not necessarily merge cleanly against current HEAD. > > > > [1] https://github.com/perl6/nqp/blob/standalone-jar/tools/jvm/ > > one-jar-script.sh > >
From: Felipe Valdes <dataf5l [...] gmail.com>
To: perl6-bugs-followup [...] perl.org
Date: Wed, 9 Nov 2016 00:32:31 -0500
Subject: Re: [perl #129909] [RFC] cannot compile to jar files for client use using --target=jvm
Download (untitled) / with headers
text/plain 5.3k
This breaks my heart, since I was planning on delivering a compiled binary to my clients, I was planning on this since I saw the feature in the docs.

Is there a way to compile using MOARVM and build a "moarvm" file, similar to a jar file, which can be run by the client without them having the sources?

Is this planned for this year?
Should I use a compiled language instead?



On Tue, Nov 8, 2016 at 12:35 PM, Zoffix Znet via RT <perl6-bugs-followup@perl.org> wrote:
Show quoted text
There are plans to make that a possibility eventually, but as far as I know that's not a priority of what the developers are focusing on at the moment.


On Wed, 19 Oct 2016 13:55:47 -0700, dataf5l@gmail.com wrote:
> Thank you for the prompt response.
>
> I'll review the JVM script provided, it may run!
>
> Since the feature isn't finished, is there a way to generate a MOAR
> file I
> can provide my users which "just runs" but doesn't include the secret
> sauce?
>
> or is this an unreasonable expectation?
>
>
>
> On Wed, Oct 19, 2016 at 12:00 PM, Pepe Schwarz via RT <
> perl6-bugs-followup@perl.org> wrote:
>
> > On Tue Oct 18 18:07:05 2016, dataf5l@gmail.com wrote:
> > > perl6 --target=jvm  --ll-exception --output=guess.jar guess.p6
> > >
> > >
> > > java.lang.NullPointerException
> > >
> > > in command_eval (gen/jvm/stage2/NQPHLL.nqp:1217)
> > >
> > > in command_eval (src/Perl6/Compiler.nqp:27)
> > >
> > > in command_line (gen/jvm/stage2/NQPHLL.nqp:1181)
> > >
> > > in MAIN (gen/jvm/main.nqp:47)
> > >
> > > in <mainline> (gen/jvm/main.nqp:38)
> > >
> > > in  (gen/jvm/main.nqp)
> > >
> > >
> > >
> > > On Tue, Oct 18, 2016 at 4:43 PM, Elizabeth Mattijsen via RT <
> > > perl6-bugs-followup@perl.org> wrote:
> > >
> > > > What happens if you add --ll-exception to the command line?
> > > >
> > > > > On 18 Oct 2016, at 05:42, Felipe Valdes (via RT) <
> > > > perl6-bugs-followup@perl.org> wrote:
> > > > >
> > > > > # New Ticket Created by  Felipe Valdes
> > > > > # Please include the string:  [perl #129909]
> > > > > # in the subject line of all future correspondence about this
> > > > > issue.
> > > > > # <URL: https://rt.perl.org/Ticket/Display.html?id=129909 >
> > > > >
> > > > >
> > > > > I want my clients to be able to run jar files
> > > > > generated by the perl6 command:
> > > > >
> > > > > The program:
> > > > >
> > > > > my $num = (1..100).pick;
> > > > >
> > > > > my $guess_count = 0;
> > > > >
> > > > >
> > > > > loop {
> > > > >
> > > > > my $guess = prompt("guess");
> > > > >
> > > > > if $guess == $num {
> > > > >
> > > > > say "Well done";
> > > > >
> > > > > last;
> > > > >
> > > > > }
> > > > >
> > > > > if $guess > $num {
> > > > >
> > > > > say "Lower";
> > > > >
> > > > > }
> > > > >
> > > > > if $guess < $num {
> > > > >
> > > > > say "Higher";
> > > > >
> > > > > }
> > > > >
> > > > > if $guess_count == 7 {
> > > > >
> > > > > say "you suck!";
> > > > >
> > > > > last;
> > > > >
> > > > > }
> > > > >
> > > > > $guess_count++;
> > > > >
> > > > > }
> > > > >
> > > > >
> > > > > the compilation command:
> > > > >
> > > > > perl6 --target=jvm --output=guess.jar guess.p6
> > > > >
> > > > >
> > > > > the result:
> > > > >
> > > > > ===SORRY!===
> > > > >
> > > > > java.lang.NullPointerException
> > > > >
> > > > >
> > > > > The version:
> > > > >
> > > > > This is Rakudo version 2016.10-9-g906719c built on JVM
> > > > >
> > > > > implementing Perl 6.c.
> > > > >
> > > > >
> > > > > I think the error message is less than awesome.
> > > > >
> > > > >
> > > > > Felipes-MacBook-Pro:backend2 a$ perl6 --stagestats --target=jvm
> > > > > --output=guess.jar guess.p6
> > > > >
> > > > > Stage start      :   0.000
> > > > >
> > > > > Stage parse      :   3.405
> > > > >
> > > > > Stage syntaxcheck:   0.001
> > > > >
> > > > > Stage ast        :   0.001
> > > > >
> > > > > Stage optimize   :   0.140
> > > > >
> > > > > Stage jast       :   0.395
> > > > >
> > > > > Stage classfile  :   0.081
> > > > >
> > > > > Stage jar        :   0.000
> > > > >
> > > > > Stage jvm        :   0.006
> > > > >
> > > > > ===SORRY!===
> > > > >
> > > > > java.lang.NullPointerException
> > > > >
> > > > > Felipes-MacBook-Pro:backend2 a$
> > > >
> > > >
> > > >
> >
> > The feature you're asking for does not exist at the moment.
> >
> > You can get the precompiled compilation unit of a Perl 6 program as a
> > .jar
> > with C<--target=jar>, but that doesn't help you, because it a
> > compilation
> > unit that can be understood by a Rakudo executable, not a jar file
> > that can
> > be understood by any JVM.
> >
> > The file at [1] is a shell script that includes the step that will
> > eventually be integrated into the perl6 binary to generate a self-
> > contained
> > jar file from Perl 6 code, albeit in the simplest way possible. That
> > is,
> > bundle the whole interpreter and make that run a predefined
> > compilation
> > unit. There is a corresponding Rakudo branch
> >
> > Note though that the branch hasn't been updated in quite a while and
> > might
> > not necessarily merge cleanly against current HEAD.
> >
> > [1] https://github.com/perl6/nqp/blob/standalone-jar/tools/jvm/
> > one-jar-script.sh
> >






This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org