<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: More Subroutine Benchmarking</title>
	<atom:link href="http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/</link>
	<description>Leveraging Perl and Emacs</description>
	<lastBuildDate>Tue, 07 May 2013 11:25:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Perl Compiler Speed &#8211; It&#8217;s Fast! &#171; A Curious Programmer</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8331</link>
		<dc:creator><![CDATA[Perl Compiler Speed &#8211; It&#8217;s Fast! &#171; A Curious Programmer]]></dc:creator>
		<pubDate>Tue, 31 Aug 2010 07:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8331</guid>
		<description><![CDATA[[...] More Subroutine Benchmarking [...]]]></description>
		<content:encoded><![CDATA[<p>[...] More Subroutine Benchmarking [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8232</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Tue, 27 Jul 2010 07:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8232</guid>
		<description><![CDATA[Nice post kbenson.  And the results are fairly close to what I would have expected too.]]></description>
		<content:encoded><![CDATA[<p>Nice post kbenson.  And the results are fairly close to what I would have expected too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kbenson</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8219</link>
		<dc:creator><![CDATA[kbenson]]></dc:creator>
		<pubDate>Wed, 21 Jul 2010 20:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8219</guid>
		<description><![CDATA[@juster -
Well, I didn&#039;t see I was called out to actually compare Perl threading to Python until today, but I took the challenge.

http://yaketyhack.blogspot.com/2010/07/threading-perl-vs-python.html

I&#039;ve done quite a log of threading in Perl, and am aware of it&#039;s limitation.  I said &quot;I doubt&quot; instead of &quot;I know&quot; because I think that&#039;s the only responsible way to speak when referring to how threads perform in a language in general.  There&#039;s so many different ways to use them, and the different threading models will have different strengths and weaknesses for each.]]></description>
		<content:encoded><![CDATA[<p>@juster -<br />
Well, I didn&#8217;t see I was called out to actually compare Perl threading to Python until today, but I took the challenge.</p>
<p><a href="http://yaketyhack.blogspot.com/2010/07/threading-perl-vs-python.html" rel="nofollow">http://yaketyhack.blogspot.com/2010/07/threading-perl-vs-python.html</a></p>
<p>I&#8217;ve done quite a log of threading in Perl, and am aware of it&#8217;s limitation.  I said &#8220;I doubt&#8221; instead of &#8220;I know&#8221; because I think that&#8217;s the only responsible way to speak when referring to how threads perform in a language in general.  There&#8217;s so many different ways to use them, and the different threading models will have different strengths and weaknesses for each.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8172</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Mon, 05 Jul 2010 22:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8172</guid>
		<description><![CDATA[No worries Nilson.  It was good to correct the errors, thanks for pointing them out.

I agree with you about list vs shifting (makes sense right? - shifting does more work)

And yes, your explanation of the python string advantage makes sense.  It can just pass the references around.

Cheers]]></description>
		<content:encoded><![CDATA[<p>No worries Nilson.  It was good to correct the errors, thanks for pointing them out.</p>
<p>I agree with you about list vs shifting (makes sense right? &#8211; shifting does more work)</p>
<p>And yes, your explanation of the python string advantage makes sense.  It can just pass the references around.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilson</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8162</link>
		<dc:creator><![CDATA[Nilson]]></dc:creator>
		<pubDate>Mon, 05 Jul 2010 13:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8162</guid>
		<description><![CDATA[Thanks for updating the results. I think it shows that list assignment instead of shifting arguments is indeed slightly faster (but maybe not enough to warrant a style-change recommendation?)

By the way, I just realized that Python is probably even faster with string arguments (when compared to Perl) because I think it uses immutable strings. Perl actually copies those strings every time when passing by value.]]></description>
		<content:encoded><![CDATA[<p>Thanks for updating the results. I think it shows that list assignment instead of shifting arguments is indeed slightly faster (but maybe not enough to warrant a style-change recommendation?)</p>
<p>By the way, I just realized that Python is probably even faster with string arguments (when compared to Perl) because I think it uses immutable strings. Perl actually copies those strings every time when passing by value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zloyrusskiy</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8141</link>
		<dc:creator><![CDATA[zloyrusskiy]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 07:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8141</guid>
		<description><![CDATA[@jared

2. I know it, you - idiot. I am writing this because I think that doing the right thing.
3. Your benchmarks are meaningless with such attitude. You optimize python code and using bad written Perl code. WOW, it&#039;s a very correct comparison.]]></description>
		<content:encoded><![CDATA[<p>@jared</p>
<p>2. I know it, you &#8211; idiot. I am writing this because I think that doing the right thing.<br />
3. Your benchmarks are meaningless with such attitude. You optimize python code and using bad written Perl code. WOW, it&#8217;s a very correct comparison.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8140</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 07:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8140</guid>
		<description><![CDATA[@zloyrusskiy -

2. This isn&#039;t a task - none of these subroutines do anything useful.  Are you an imbecile or do you just play one on my blog?
3. Er, no.

@juster - I didn&#039;t mention python coroutines, you did.  You&#039;re moving the goalposts.

Most of my code has to work on Win32 so Coro is not particularly useful to me and fork is built over threads in any case.]]></description>
		<content:encoded><![CDATA[<p>@zloyrusskiy -</p>
<p>2. This isn&#8217;t a task &#8211; none of these subroutines do anything useful.  Are you an imbecile or do you just play one on my blog?<br />
3. Er, no.</p>
<p>@juster &#8211; I didn&#8217;t mention python coroutines, you did.  You&#8217;re moving the goalposts.</p>
<p>Most of my code has to work on Win32 so Coro is not particularly useful to me and fork is built over threads in any case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juster</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8139</link>
		<dc:creator><![CDATA[juster]]></dc:creator>
		<pubDate>Wed, 30 Jun 2010 22:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8139</guid>
		<description><![CDATA[You guys don&#039;t sound very confident about perl threads.  kbenson says, &quot;I doubt&quot;... Jared says &quot;I suspect&quot; that threads are faster than python&#039;s coroutines.

Checkout the mandelbrot or chameneos benchmark at the debian language shootout:
http://shootout.alioth.debian.org/u32q/perl.php

I&#039;m not bashing perl, just perl &quot;threads&quot;.  Use fork() or the Coro module (omg coroutines).  Yes on a multi-core machine Coro still outperforms threads.  Try it yourself... benchmark!

PS I agree using unnamed subroutine arguments is ridiculous.]]></description>
		<content:encoded><![CDATA[<p>You guys don&#8217;t sound very confident about perl threads.  kbenson says, &#8220;I doubt&#8221;&#8230; Jared says &#8220;I suspect&#8221; that threads are faster than python&#8217;s coroutines.</p>
<p>Checkout the mandelbrot or chameneos benchmark at the debian language shootout:<br />
<a href="http://shootout.alioth.debian.org/u32q/perl.php" rel="nofollow">http://shootout.alioth.debian.org/u32q/perl.php</a></p>
<p>I&#8217;m not bashing perl, just perl &#8220;threads&#8221;.  Use fork() or the Coro module (omg coroutines).  Yes on a multi-core machine Coro still outperforms threads.  Try it yourself&#8230; benchmark!</p>
<p>PS I agree using unnamed subroutine arguments is ridiculous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zloyrusskiy</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8138</link>
		<dc:creator><![CDATA[zloyrusskiy]]></dc:creator>
		<pubDate>Wed, 30 Jun 2010 22:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8138</guid>
		<description><![CDATA[@Jared

2. In such small tasks - always
3. If you don&#039;t care, use &quot;range&quot; (not &quot;xrange&quot;) in python code]]></description>
		<content:encoded><![CDATA[<p>@Jared</p>
<p>2. In such small tasks &#8211; always<br />
3. If you don&#8217;t care, use &#8220;range&#8221; (not &#8220;xrange&#8221;) in python code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/06/24/more-subroutine-benchmarking/#comment-8136</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Wed, 30 Jun 2010 20:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1083#comment-8136</guid>
		<description><![CDATA[@zloyrusskiy -

2. How often do you write Perl subroutines without explicitly unpacking @_?  Your version of f2 is disingenuous.
3. Don&#039;t care.
4. Yep, got that wrong, sorry.  Note (if you&#039;re trying to improve your English/manners), Nilson pointed that my error with f2a much more nicely.

You rude git.

@Anonymous - I considered using Benchmark.pm, but I don&#039;t know the Python equivalent.  You&#039;re right though, readers are probably more interested in intra-Perl comparison.

@Juster - I suspect proper parallelizable code on a multi-core system will make Perl threads look good in comparison to Python threads.  And if you&#039;re just trying to avoid blocking, why not use something like AnyEvent (or is that your point)?

@Nilson - Thanks - I&#039;ll fix up f2a (and call the Python in a non-void context) and update the post.]]></description>
		<content:encoded><![CDATA[<p>@zloyrusskiy -</p>
<p>2. How often do you write Perl subroutines without explicitly unpacking @_?  Your version of f2 is disingenuous.<br />
3. Don&#8217;t care.<br />
4. Yep, got that wrong, sorry.  Note (if you&#8217;re trying to improve your English/manners), Nilson pointed that my error with f2a much more nicely.</p>
<p>You rude git.</p>
<p>@Anonymous &#8211; I considered using Benchmark.pm, but I don&#8217;t know the Python equivalent.  You&#8217;re right though, readers are probably more interested in intra-Perl comparison.</p>
<p>@Juster &#8211; I suspect proper parallelizable code on a multi-core system will make Perl threads look good in comparison to Python threads.  And if you&#8217;re just trying to avoid blocking, why not use something like AnyEvent (or is that your point)?</p>
<p>@Nilson &#8211; Thanks &#8211; I&#8217;ll fix up f2a (and call the Python in a non-void context) and update the post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
