问题描述
旧的 Perl 6 常见问题 说:Rakudo,一个基于 Parrot 的 Perl 6 编译器,允许编译为字节码,并且存在一个小包装器,可以将字节码文件打包并复制到单个可执行文件中."
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."
因此,可以创建一个独立的可执行文件,但我找不到任何文档来解释如何进行此操作,或者是否仍然可能.所以,我转向你.将 Perl 6 代码转换为可在未安装 Perl 6 的系统上运行的独立可执行文件需要哪些适当的咒语?
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.
推荐答案
这在 MoarVM 上的当前 Rakudo 中是不可能的.关于模块加载和自动编译还有一些需要解决的问题,但是一旦发生这种情况,如果有足够的需求,我认为没有理由不能重新引入此功能.
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.
这篇关于如何使用 perl 6 创建独立的可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!