<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 06/05/2011 18:07, Glyph Lefkowitz wrote:
<blockquote
cite="mid:8F83194F-5A5C-496E-920A-A2488F9949E4@twistedmatrix.com"
type="cite">
<div>
<div>On May 6, 2011, at 12:31 PM, Michael Foord wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span"
style="border-collapse: separate; font-family: Menlo;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;"><span class="Apple-style-span"
style="font-family: monospace;">pypy and .NET choose to
arbitrarily break cycles rather than leave objects
unfinalised and memory unreclaimed. Not sure what Java
does.<br>
</span></span></blockquote>
</div>
<br>
<div>I think that's a mischaracterization of their respective
collectors; "arbitrarily break cycles" implies that user code
would see broken or incomplete objects, at least during
finalization, which I'm fairly sure is not true on either .NET
or PyPy.</div>
</blockquote>
<br>
<a class="moz-txt-link-freetext" href="http://morepypy.blogspot.com/2008/02/python-finalizers-semantics-part-1.html">http://morepypy.blogspot.com/2008/02/python-finalizers-semantics-part-1.html</a><br>
<br>
"Therefore we decided to break such a cycle at an arbitrary place,
which doesn't sound too insane."<br>
<br>
All the best,<br>
<br>
Michael Foord<br>
<blockquote
cite="mid:8F83194F-5A5C-496E-920A-A2488F9949E4@twistedmatrix.com"
type="cite">
<div><br>
</div>
<div>Java definitely has a collector that can handles cycles too.
(None of these are reference counting.)</div>
<div><br>
</div>
<div>-glyph</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a>
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing <a class="moz-txt-link-freetext" href="http://www.sqlite.org/different.html">http://www.sqlite.org/different.html</a>
</pre>
</body>
</html>