Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Memory leak on definition of anonymous code?

by jonadab (Parson)
on Oct 06, 2003 at 20:16 UTC ( #297063=note: print w/replies, xml ) Need Help??


in reply to Memory leak on definition of anonymous code?

Yes, we're still waiting to find out whether Perl6 will get real garbage collection that would fix this, or have the same reference counting that Perl5 has.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Replies are listed 'Best First'.
Re: Re: Memory leak on definition of anonymous code?
by sandfly (Beadle) on Oct 06, 2003 at 20:46 UTC
    I believe the issue has been decided - Perl 6 will have real GC.
      I believe the issue has been decided - Perl 6 will have real GC.

      Really? Cooool.


      $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
Re^2: Memory leak on definition of anonymous code?
by Aristotle (Chancellor) on Oct 07, 2003 at 06:57 UTC
    Yes it will, courtesy of the Parrot VM it will run on, which (AFAIK) uses a mark and sweep type GC.

    Makeshifts last the longest.

      [Thinks about this answer for a brief moment.] So, if the GC is built into Parrot... does that mean Ponie will get it too?


      $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
Re: Re: Memory leak on definition of anonymous code?
by Elian (Parson) on Oct 07, 2003 at 15:04 UTC
    No we're not. The decision's been made for years... No refcounting for perl 6.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-09-23 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?