Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Precompiled perl...

by htoug (Deacon)
on Oct 28, 2004 at 07:41 UTC ( #403297=note: print w/ replies, xml ) Need Help??


in reply to Precompiled perl...

It is part of the plans for Perl6/Parrot. The parrot byte code should be compact enough to be able to be loaded faster than the original program.

That is not the case in Perl5, where the byte code is just a serialization of the internal syntax tree and is tightly integgrated (in obscure ways) with the compiler. AFAICR is has been discussed several times and been given up as nearly impossible. Grahams Barr's attempts at a perl compiler has given us the B:: namespace, that contains many useful modules, but no compiler that speeds up loading.

You do have to load the entire perl compiler to be able to interpret eg evals, requires and uses, so the loadtime will be high whatever you do.


Comment on Re: Precompiled perl...
Re^2: Precompiled perl...
by Eyck (Priest) on Oct 28, 2004 at 08:06 UTC
    The point of this excercise is not to get rid of loading perl compiler, but bypassing compilation of whole lot of code ( AFAIK "use Sth" compiles Sth, and then compiles everything that Sth depends on. If you've got your Sth already compiled into parse tree, then you just load your parse tree and go on with execution ).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://403297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-26 01:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls