develooper Front page | perl.perl6.language | Postings from February 2001

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

From:
Robin Berjon
Date:
February 12, 2001 14:27
Subject:
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
4.1.20010212232213.014c6b18@mail.knowscape.net
At 15:37 12/02/2001 -0500, Dan Sugalski wrote:
>It *is* rare in OO perl, though. How many of the variables you use are 
>really, truly in need of finalization? .1 percent? .01 percent? Less? Don't 
>forget that you need to count every scalar in every array or hash, and 
>every iteration over a block with my declarations. Perl churns through a 
>*lot* of SV pointers in its average run, and most of them aren't in need of 
>finalization.

Couldn't we simply (for non-implementer values of simply) provide a way for
people to ask for finalization on an object ? Given that most of the time
it isn't needed, it wouldn't be too much of a burden for programmers to
have to write i_want_some_finalization($object, [finalization params]) ?

That would avoid burdening Perl with more dwimity. Dwimity's cool but it
usually has consequences and costs, and those ought to be balanced against
what it costs not to have it.

just my E0.02,

-- robin b.
There's too much blood in my caffeine system. 




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