develooper Front page | perl.perl5.porters | Postings from October 2002

Re: JIT Semantics Explanation (was Re: What is a JIT? (was Re: [RFC] jit.pm - load modules and subroutines just in time))

Thread Previous | Thread Next
From:
Tim Bunce
Date:
October 1, 2002 06:57
Subject:
Re: JIT Semantics Explanation (was Re: What is a JIT? (was Re: [RFC] jit.pm - load modules and subroutines just in time))
Message ID:
20021001134911.GX8593@dansat.data-plan.com
On Tue, Oct 01, 2002 at 12:24:35PM +0200, Roland Giersig wrote:
> After lurking for a while and seing that people are talking about 
> entirely different things, I would like to try to clear things up a 
> bit.  What are we really talking about?

Thanks.

> Coming back to Elizabeths initial idea (which has a lot of merit IMHO): 
> what she proposed was (if I understood it correctly) to introduce a new 
> way of autoloading: instead of searching a method in plain text she 
> wants to extract the autoloaded subs body text at compiletime and also 
> compile a corresponding sub prototype, so that the compiler can do 
> prototype checking.

Just for the record: both AutoLoader and SelfLoader extract prototypes:
http://search.cpan.org/author/JHI/perl-5.8.0/lib/AutoLoader.pm#Subroutine_Stubs
http://search.cpan.org/author/JHI/perl-5.8.0/lib/SelfLoader.pm#Classes_and_inherited_methods_

Though SelfLoader only does it it explicitly asked and so isn't a
drop-in replacement for AutoLoader in that regard.

(Also, it ought to be trivial to patch both so that "perl -c ..."
or setting an env var triggers loading and compilation of all subs.)

Tim.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About