First, Perl ought to allow bytecode, already compiled,
to be loaded via a bytecode equivelant to eval(), if
this cannot be done already. This would work the same
way as executing Perl code via eval(). For instance,
perhaps through a new bceval function:
bceval($bytecode);. 

In addition, Perl should make sure to allow users to 
produce bytecode copies of programs and modules, and
allow modules compiled into bytecode to be easily
loaded into a perl program. I propose allowing a user
to create bytecode copies of a module, and saving the
bytecode under a filename with a .pmb extension, such
as module.pmb, which would be a compiled copy of
module.pm. If placed in the same directory as
module.pm in the path, Perl will load it instead of
module.pm. Perl would first look for module.pmb, and
if it couldnt find that, search for module.pm., if the
user types use module; in the their program.

Perl programs could compiled into bytecode could be
given the .plb extenstion, like program.plb. 

Allowing modules to be compiled into bytecode would
save compile time for very large programs. 




                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

Reply via email to