LWN.net Logo

GTK+ 3.8.0 released

GTK+ 3.8.0 released

Posted Mar 27, 2013 18:11 UTC (Wed) by HelloWorld (guest, #56129)
In reply to: GTK+ 3.8.0 released by Su-Shee
Parent article: GTK+ 3.8.0 released

Perl, unlike Ruby or Python, isn't able to collect reference cycles. That's a deal-breaker for me and many others.


(Log in to post comments)

GTK+ 3.8.0 released

Posted Mar 28, 2013 16:06 UTC (Thu) by whilteheat (guest, #90114) [Link]

In practise I have found Perl to leak memory far less than Python and especially Ruby VMs. So not a deal breaker :)

GTK+ 3.8.0 released

Posted Mar 29, 2013 15:47 UTC (Fri) by ebassi (subscriber, #54855) [Link]

that's not entirely correct: you can override DESTROY to release cycles. or you can use the 'weaken' function from Scalar::Util.

GTK+ 3.8.0 released

Posted Apr 2, 2013 11:03 UTC (Tue) by whilteheat (guest, #90114) [Link]

It is true in my experience....

- This time last year I had to constantly restart (sometimes daily!) a Ruby background process because it kept memory leaking :(

- While I have multiple Perl background processes I've written that continue to run without a restart for over 5 years :)

So yes you have to be careful and not leave something silly around with Perl (re: DESTROY / weaken) but I've had far more success with Perl compared to Ruby (libs/VM) on this!

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds