Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT/Native-image support #875

Open
TisonKun opened this Issue Jun 12, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@TisonKun
Copy link
Contributor

TisonKun commented Jun 12, 2018

Is it in considered that MoarVM supports AOT/native-image so one is able to compile a Perl 6/NQP program to an executable running on machine without MoarVM?

@jnthn

This comment has been minimized.

Copy link
Member

jnthn commented Jun 13, 2018

No, this isn't supported today.

The most likely path to something like in the medium term is building a tool that builds an executable with a static MoarVM linked in to it, and all the precompilations of modules embedded, plus a custom module loader that can locate these.

That's probably blocked at the moment by the Rakudo extops, which rely on being loaded dynamically and would frustrate such an effort. However, those are going away, which would unblock work on such a tool.

That's still not really AOT, but it does give a "one executable to distribute" solution.

@TisonKun

This comment has been minimized.

Copy link
Contributor Author

TisonKun commented Jun 13, 2018

The most likely path to something like in the medium term is building a tool that builds an executable with a static MoarVM linked in to it, and all the precompilations of modules embedded, plus a custom module loader that can locate these.

Yes it's common approach of AOT at present.

I'm glad to hear that the blocker has gone, and this issue is as a proposal. There are many benefits if we implement AOT. The most exciting might be efficiency improvement, but the most important, our user base would be expanded( user always likes new things :-) ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.