<?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"
	>
<channel>
	<title>Comments on: Ruby web spider Part 1: The scheduler</title>
	<atom:link href="http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/feed/" rel="self" type="application/rss+xml" />
	<link>http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/</link>
	<description>freelance software developer</description>
	<pubDate>Tue, 06 Jan 2009 23:57:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jim</title>
		<link>http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-87</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 14 May 2006 11:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-87</guid>
		<description>Warren,

I wanted to thank you for your piece on Ruby Spidering. I've been trying to find some sample code with little luck.  I trying to learn Ruby and develop an application that scrapes horse racing pages and inserts the results into a MySql database.   

Your work have been very helpful.  Thanks again. 

Can't wait for the next installmnet. 

Jim</description>
		<content:encoded><![CDATA[<p>Warren,</p>
<p>I wanted to thank you for your piece on Ruby Spidering. I&#8217;ve been trying to find some sample code with little luck.  I trying to learn Ruby and develop an application that scrapes horse racing pages and inserts the results into a MySql database.   </p>
<p>Your work have been very helpful.  Thanks again. </p>
<p>Can&#8217;t wait for the next installmnet. </p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: assaf</title>
		<link>http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-36</link>
		<dc:creator>assaf</dc:creator>
		<pubDate>Tue, 14 Mar 2006 00:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-36</guid>
		<description>If the object is stateless, then does it really matter? You're not losing any state when it gets garbage collected, you're not building any state when you create it. The cost of creating a new object is lower than the cost of pooling it.

It matters in EJB because a "stateless" session bean is void of application state, but is packed with container state.  So it's not really stateless. What EJB does is ask you to help manage those "stateless" objects by writing code that pretends they are really stateless, but acting as if they're really stateful.

How they managed to pull it off (and how I fell for it for so long) is still a mystery.</description>
		<content:encoded><![CDATA[<p>If the object is stateless, then does it really matter? You&#8217;re not losing any state when it gets garbage collected, you&#8217;re not building any state when you create it. The cost of creating a new object is lower than the cost of pooling it.</p>
<p>It matters in EJB because a &#8220;stateless&#8221; session bean is void of application state, but is packed with container state.  So it&#8217;s not really stateless. What EJB does is ask you to help manage those &#8220;stateless&#8221; objects by writing code that pretends they are really stateless, but acting as if they&#8217;re really stateful.</p>
<p>How they managed to pull it off (and how I fell for it for so long) is still a mystery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: warren</title>
		<link>http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-35</link>
		<dc:creator>warren</dc:creator>
		<pubDate>Mon, 13 Mar 2006 13:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-35</guid>
		<description>hi assaf, thanks for the advice. in particular, what you say about native threads makes perfect sense in hindsight. again, that's me still thinking in Java, ugh. 

It's true that object pooling is obsolete when you have relatively cheap object instantiation, but in this instance I was wondering whether repeatedly creating and deleting objects which are stateless is a waste of cycles that I can design out without any overhead...</description>
		<content:encoded><![CDATA[<p>hi assaf, thanks for the advice. in particular, what you say about native threads makes perfect sense in hindsight. again, that&#8217;s me still thinking in Java, ugh. </p>
<p>It&#8217;s true that object pooling is obsolete when you have relatively cheap object instantiation, but in this instance I was wondering whether repeatedly creating and deleting objects which are stateless is a waste of cycles that I can design out without any overhead&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: assaf</title>
		<link>http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-34</link>
		<dc:creator>assaf</dc:creator>
		<pubDate>Sun, 12 Mar 2006 01:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://warrenseen.com/blog/2006/03/08/ruby-web-spider-part-1-the-scheduler/#comment-34</guid>
		<description>Ruby doesn't have native threads, so I don't see how thread pooling makes a difference. You'll spend more CPU handling the pool than on actual object creation.

Java had us stop obsessing about memory allocation and deallocation. Then it reincarnated them as object pooling. Ruby goes a long way to let us stop obsession about object pooling. I hope they keep it that way.

Similarly, don't worry too much about using blocks.</description>
		<content:encoded><![CDATA[<p>Ruby doesn&#8217;t have native threads, so I don&#8217;t see how thread pooling makes a difference. You&#8217;ll spend more CPU handling the pool than on actual object creation.</p>
<p>Java had us stop obsessing about memory allocation and deallocation. Then it reincarnated them as object pooling. Ruby goes a long way to let us stop obsession about object pooling. I hope they keep it that way.</p>
<p>Similarly, don&#8217;t worry too much about using blocks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
