Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Perl and Garbage Collection

by andal (Hermit)
on Oct 04, 2016 at 07:44 UTC ( #1173215=note: print w/replies, xml ) Need Help??

in reply to Perl and Garbage Collection

The GC of Perl does very good work, it collects all variables that it is supposed to :) But each GC has its limitations. Otherwise, there would be no need in things like "weak references". They are available in Java, C#, Perl and few other languages.

Creating memory leak in Java is very easy. Just add event listener while building GUI, and then discard it without unregistering. GC is convenient, but it does not mean, that programmer should not think about memory management. That thing is unavoidable. So, just like in any other programming language, one has to know about peculiarities of GC in Perl, and then manage memory appropriately.

On a side note, I believe C is the best language for development. Simply because it does not pretend, that one should not worry about memory management :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-11-29 04:52 GMT
Find Nodes?
    Voting Booth?