Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-11-28 04:11 GMT
Find Nodes?
    Voting Booth?