11

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.

6
  • 1
    That's the old, archived FAQ you're looking at (note the /archive/ in the URL). The current FAQ doesn't mention it. Commented Jan 7, 2016 at 19:18
  • Does "pack up a bytecode file and parrot into a single executable" necessarily mean the executable will run on a machine without Perl on it? My first executable from Perl 6 shows how to create a "fake executable" that is dynamically linked to libparrot, which would fail if libparrot wasn't installed on the other system. Commented Jan 7, 2016 at 19:18
  • @cjm thanks for that. Updated the question to reference the fact that the FAQ was old and see if it's still possible. Commented Jan 7, 2016 at 19:21
  • @ThisSuitIsBlackNot The section of the old faq was under "stand-alone executable" so yes. I saw the link you mentioned too but 2009 commentary / how-to on perl 6 just can't be trusted to be relevant anymore. Commented Jan 7, 2016 at 19:22
  • 2024 update I'm briefly reviewing SOs related to producing a stand-alone exe. I've decided to write some FYI comments. I've found this SO plus 3 others: How can I compile perl6 file to exe, how to compile perl6 program to generate bytecode?, Deploying self contained Perl 6 script. Commented Jun 19, 2024 at 11:24

1 Answer 1

9

This is not possible with current Rakudo on MoarVM. There's still some dust that needs to settle regarding module loading and automatic compilation, but once that has happened, I see no reason why this ability couldn't be reintroduced if there is sufficient demand.

Sign up to request clarification or add additional context in comments.

1 Comment

@Stats4224: as far as I know, though I haven't really kept up with Perl6 development the last couple of months; the dust regarding automatic compilation has settled, so I'm not aware of any blockers stopping someone from taking a shot at implementing this...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.