<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LRU cache solution: a case for linked lists in Python</title>
	<atom:link href="http://www.algorithm.co.il/blogs/programming/python/lru-cache-solution-a-case-for-linked-lists-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.algorithm.co.il/blogs/challenges/lru-cache-solution-a-case-for-linked-lists-in-python/</link>
	<description>Algorithms, for the heck of it</description>
	<lastBuildDate>Tue, 21 Jun 2011 21:07:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: lorg</title>
		<link>http://www.algorithm.co.il/blogs/challenges/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-72</link>
		<dc:creator>lorg</dc:creator>
		<pubDate>Mon, 25 May 2009 15:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/index.php/programming/python/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-72</guid>
		<description>I finally uploaded the fixed version. Thanks for the fix Aaron!</description>
		<content:encoded><![CDATA[<p>I finally uploaded the fixed version. Thanks for the fix Aaron!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.algorithm.co.il/blogs/challenges/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-71</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 07 May 2009 17:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/index.php/programming/python/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-71</guid>
		<description>The Python list type is not an array in the sense that you are probably thinking of.  It is a complex data type optimized for typical use cases.</description>
		<content:encoded><![CDATA[<p>The Python list type is not an array in the sense that you are probably thinking of.  It is a complex data type optimized for typical use cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Digulla</title>
		<link>http://www.algorithm.co.il/blogs/challenges/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-70</link>
		<dc:creator>Aaron Digulla</dc:creator>
		<pubDate>Sat, 18 Apr 2009 08:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/index.php/programming/python/lru-cache-solution-a-case-for-linked-lists-in-python/#comment-70</guid>
		<description>I tried your LRU implementation but after a while, I get:

  File &quot;/home/digulla/packages/scanner/lru.py&quot;, line 145, in get
    self.age_list.remove(link)
  File &quot;/home/digulla/packages/scanner/lru.py&quot;, line 110, in remove
    old_prev.next = old_next
ReferenceError: weakly-referenced object no longer exists

I&#039;m not 100% sure if this is a bug in your code or mine; I&#039;m using the LRUMap in two threads but I&#039;ve added locks in get() and put(). That didn&#039;t help.

When I remove the weakrefs, it works. So I&#039;m wondering: why are you using proxy() in the linked list implementation?</description>
		<content:encoded><![CDATA[<p>I tried your LRU implementation but after a while, I get:</p>
<p>  File &#8220;/home/digulla/packages/scanner/lru.py&#8221;, line 145, in get<br />
    self.age_list.remove(link)<br />
  File &#8220;/home/digulla/packages/scanner/lru.py&#8221;, line 110, in remove<br />
    old_prev.next = old_next<br />
ReferenceError: weakly-referenced object no longer exists</p>
<p>I&#8217;m not 100% sure if this is a bug in your code or mine; I&#8217;m using the LRUMap in two threads but I&#8217;ve added locks in get() and put(). That didn&#8217;t help.</p>
<p>When I remove the weakrefs, it works. So I&#8217;m wondering: why are you using proxy() in the linked list implementation?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

