Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Precompiled perl...

by htoug (Deacon)
on Oct 28, 2004 at 07:41 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://403297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 03:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found