Re: Will Perl 6 save a compiled version of a source program like Python?
On Mon, May 18, 2015 at 7:46 AM, Tobias Leichwrote: > We precompile modules using a command line option like in: 'perl6 > --target=mbc --output=foo.pm.moarvm'. ... > We are working on creating executables such as 'foo.exe' from a given > Perl 6 script, though I expect that this takes a few months before this > feature lands. Tobia, any update on progress of script compilation? It seems, given the current state of non-compiled scripts (see bug discussion: <[perl #127330] [SLOW] 10_000 lines with 「say ‘a’;」 take 16 seconds to run>), a compilation capability would give Perl 6 advocacy a boost while other optimizations mentioned by Liz in the bug discussion continue. > These executable would contain the Perl 6 interpreter, and the > precompiled script in one file. Could auto-compilation be an option (and an auto-recompile based on the source script's hash)? Thanks. Cheers! -Tom
Re: Will Perl 6 save a compiled version of a source program like Python?
On 18 May 2015, at 14:28, Tom Browder tom.brow...@gmail.com wrote: I found some discussion of such a capability on the Perl Mongers' site but haven't found anything official yet in the Synopses. But I did find there an option that might do something related: --output-format (which is implementation defined). However, I do not see that option in Rakudo Perl 6. Can anyone point me to more info or say yes or no to possible support of a save-compilation feature? A large part of Perl 6 is written in Perl 6. This currently consists of about 28000 lines of code. This code is pre-compiled, so that it can be loaded in just over .1 second. This pre-compilation is a normal part of the install process of *any* module if you’re using either rakudobrew or panda. The compiled version differs by VM backend. If JVM is the backend, the compiled version is stored as a standard .jar. On MoarVM, it has the extension .moarvm, and has its own version. The compiled version is also, one can say, “statically linked” as it were to the version of Rakudo that compiled it. So if you upgrade rakudo, new compiled versions need to be created. This is also part of rakudobrew and the panda rebootstrap process. Hope this answers your question. Liz
Will Perl 6 save a compiled version of a source program like Python?
I found some discussion of such a capability on the Perl Mongers' site but haven't found anything official yet in the Synopses. But I did find there an option that might do something related: --output-format (which is implementation defined). However, I do not see that option in Rakudo Perl 6. Can anyone point me to more info or say yes or no to possible support of a save-compilation feature? Thanks. Cheers! -Tom
Re: Will Perl 6 save a compiled version of a source program like Python?
We precompile modules using a command line option like in: 'perl6 --target=mbc --output=foo.pm.moarvm'. Though, since this is for modules, only this incantation will work: 'perl6 -I. -Mfoo -e1' We are working on creating executables such as 'foo.exe' from a given Perl 6 script, though I expect that this takes a few months before this feature lands. These executable would contain the Perl 6 interpreter, and the precompiled script in one file. Am 18.05.2015 um 14:28 schrieb Tom Browder: I found some discussion of such a capability on the Perl Mongers' site but haven't found anything official yet in the Synopses. But I did find there an option that might do something related: --output-format (which is implementation defined). However, I do not see that option in Rakudo Perl 6. Can anyone point me to more info or say yes or no to possible support of a save-compilation feature? Thanks. Cheers! -Tom
Re: Will Perl 6 save a compiled version of a source program like Python?
On Mon, May 18, 2015 at 7:47 AM, Elizabeth Mattijsen l...@dijkmat.nl wrote: On 18 May 2015, at 14:28, Tom Browder tom.brow...@gmail.com wrote: ... Can anyone point me to more info or say yes or no to possible support of a save-compilation feature? ... [good answer to my question...] Thanks Liz and Tobias! Cheers! -Tom