develooper Front page | perl.perl5.porters | Postings from August 2010

Re: Order of evaluation of terms (was peephole optimiser couldprune more dead code)

Thread Previous | Thread Next
From:
Zefram
Date:
August 7, 2010 10:52
Subject:
Re: Order of evaluation of terms (was peephole optimiser couldprune more dead code)
Message ID:
20100807175241.GA4887@lake.fysh.org
Jan Dubois wrote:
>It will be very hard to get the core to call FETCH only once per
>"logical access" to a variable, and it will be *impossible* to get this
>right for most CPAN modules containing XS code.

What *is* a "logical access", anyway?  I generally don't attempt to
do magic processing at all in my XS code, pending some way to get the
"logical access" thing consistent between XS and Perl implementations
of the same thing.  (Prime example: XML::Easy.)  Something implemented
in Perl is likely to process get magic several times in one sub call,
which leaks internal implementation details if the magic isn't idempotent.

-zefram

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