in reply to Precompiled perl...

It is possible to get this precompiled thing already. It is called bytecode.
# build a precompiled bytecode script named xyz perl -MO=Bytecode,-H,-oxyz -e 'print "moin\n"' # the script can be called with this line perl xyz
Boris

Replies are listed 'Best First'.
Re^2: Precompiled perl...
by Eyck (Priest) on Oct 27, 2004 at 10:03 UTC
    Yeah, but what about pre-compiled libraries,

    What I would like to achieve is to have all /usr/share/perl5 pre-compiled, this could be very nifty..

      Not really. Other people have reported that it tends to be slightly more expensive to load a perl program from compiled form than from original source code. I wouldn't spend too much time worrying about this problem. Things like mod_perl exist so that the compilation process happens once and then the in-memory program is just re-used. That avoids the cost of *both* scenarios.

        I would expect that, because it looks like in current form this byte-loader thing is sitting on top of perl, so it's not really bypassing anything.

        Also, you seem to be using perl only for web-serving, and quite often I use it stand-alone, and there it would be nice to have fast-loading apps.

        And although precompiling apps might have negligible effect on performance ( very rarely I write >10k LOC apps ), precompiling libs would be huge.

        And probably it would require much less resources from the host, thus enabling perl-written apps on embeded platforms.