Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Compiling Perl

by jeffenstein (Hermit)
on Mar 22, 2002 at 15:01 UTC ( [id://153567]=note: print w/replies, xml ) Need Help??


in reply to Compiling Perl

Not really a response to the question, but...

Python will let you compile to bytecode, then save the bytecode in another file. Perl also compiles to bytecode, so wouldn't it be possible for perl to do something along the same lines?

This would mean you would still need to install perl to run a compiled perl script, but it would also mean that people could distribute scripts or modules without having to worry about others being able to see their source code. (At least no more danger than being able to see the source of a java app distributed as a .class file.)

Perhaps this is something that will be possible with Perl 6?

Replies are listed 'Best First'.
(Ovid) Re: Re: Compiling Perl
by Ovid (Cardinal) on Mar 22, 2002 at 16:40 UTC

    Currently, this is not realistic for Perl5. Because of eval, the /e switch on substitutions, and other language features, Perl requires that the Perl interpreter always be available to call upon, if need be.

    A experimental JIT compiler is being developed for Parrot, so I do expect that Perl 6 will offer some fantastic possibilities in this area.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-29 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found