<?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: Ruby vs. Haskell &#8211; project Euler #25 deathmatch</title>
	<atom:link href="http://blog.mostof.it/ruby-vs.-haskell-project-euler-25-deathmatch/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/</link>
	<description>Where the rising ape meets the falling angel</description>
	<lastBuildDate>Sun, 22 Apr 2012 19:03:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ssmm987</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-248</link>
		<dc:creator>Ssmm987</dc:creator>
		<pubDate>Sun, 26 Dec 2010 15:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-248</guid>
		<description>Nice post, but personally I prefer using C#.

P.s. I blog about project euler too!</description>
		<content:encoded><![CDATA[<p>Nice post, but personally I prefer using C#.</p>
<p>P.s. I blog about project euler too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atul Kash</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-247</link>
		<dc:creator>Atul Kash</dc:creator>
		<pubDate>Tue, 23 Mar 2010 08:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-247</guid>
		<description>Thanks for the clarification, great article</description>
		<content:encoded><![CDATA[<p>Thanks for the clarification, great article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-243</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Thu, 18 Feb 2010 14:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-243</guid>
		<description>&lt;p&gt;Right, thanks for the clarification. Someone also posted a specific faster solution for this problem using simple addition &#8211; which I avoided by decision. But again, probably that&#8217;s even more imperative&#8230; :)&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0krwri&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Right, thanks for the clarification. Someone also posted a specific faster solution for this problem using simple addition &#8211; which I avoided by decision. But again, probably that&#8217;s even more imperative&#8230; <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0krwri" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lpsmith</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-242</link>
		<dc:creator>lpsmith</dc:creator>
		<pubDate>Thu, 18 Feb 2010 05:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-242</guid>
		<description>&lt;p&gt;Matrix exponentiation, while a very fast way to calculate an arbitrary fibonacci number, is much slower than simple addition when all you want to do is get the next fibonacci number. However, you get *two adjacent* fibonacci numbers from one matrix exponentiation, which you can then use to get the next (or previous) number. So you might consider some kind of search (e.g. binary, although there would be better choices given the nature of the problem), combined with a linear scan once you get close enough. But really, that level of algorithmic sophistication is overkill for this particular problem&#8230;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0krety&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Matrix exponentiation, while a very fast way to calculate an arbitrary fibonacci number, is much slower than simple addition when all you want to do is get the next fibonacci number. However, you get *two adjacent* fibonacci numbers from one matrix exponentiation, which you can then use to get the next (or previous) number. So you might consider some kind of search (e.g. binary, although there would be better choices given the nature of the problem), combined with a linear scan once you get close enough. But really, that level of algorithmic sophistication is overkill for this particular problem&#8230;</p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0krety" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-240</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-240</guid>
		<description>Web technologies like PHP, Javascript, HTML, CSS also seem a must to learn. Even if you are not going to be a pro in these, they help when you want to maintain or tweak your website or blog.</description>
		<content:encoded><![CDATA[<p>Web technologies like PHP, Javascript, HTML, CSS also seem a must to learn. Even if you are not going to be a pro in these, they help when you want to maintain or tweak your website or blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rlaksana</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-241</link>
		<dc:creator>rlaksana</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-241</guid>
		<description>&lt;p&gt;Ruby vs. Haskell – project Euler #25 deathmatch &#8211; &lt;a href=&quot;http://su.pr/9wyESj&quot; rel=&quot;nofollow&quot;&gt;http://su.pr/9wyESj&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://twitter.com/rlaksana/statuses/9239921532&quot; rel=&quot;nofollow&quot;&gt;Twitter&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Ruby vs. Haskell – project Euler #25 deathmatch &#8211; <a href="http://su.pr/9wyESj" rel="nofollow">http://su.pr/9wyESj</a></p>
<p><i>This comment was originally posted on <a href="http://twitter.com/rlaksana/statuses/9239921532" rel="nofollow">Twitter</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Laksana</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-239</link>
		<dc:creator>Richard Laksana</dc:creator>
		<pubDate>Wed, 17 Feb 2010 15:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-239</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;Ruby vs. Haskell – project Euler #25 deathmatch - http://su.pr/9wyESj&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">Ruby vs. Haskell – project Euler #25 deathmatch &#8211; <a href="http://su.pr/9wyESj" rel="nofollow">http://su.pr/9wyESj</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaze</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-238</link>
		<dc:creator>gaze</dc:creator>
		<pubDate>Wed, 17 Feb 2010 06:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-238</guid>
		<description>&lt;p&gt;Either way&#8230; it&#8217;s kinda silly given that there&#8217;s a closed form soln for fibonacci&#8230;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0kp8r7&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Either way&#8230; it&#8217;s kinda silly given that there&#8217;s a closed form soln for fibonacci&#8230;</p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0kp8r7" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-237</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 21:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-237</guid>
		<description>@Edvin Aghanian, Thanks for the kind words, but they are right that I made a mistake with choosing a title that suggests a benchmark, so that criticism is fair, I feel. I&#039;m also happy about the constructive additions people made - and I&#039;m glad the post proved useful :)</description>
		<content:encoded><![CDATA[<p>@Edvin Aghanian, Thanks for the kind words, but they are right that I made a mistake with choosing a title that suggests a benchmark, so that criticism is fair, I feel. I&#8217;m also happy about the constructive additions people made &#8211; and I&#8217;m glad the post proved useful <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edvin Aghanian</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-236</link>
		<dc:creator>Edvin Aghanian</dc:creator>
		<pubDate>Tue, 16 Feb 2010 21:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-236</guid>
		<description>@ochronus, I don&#039;t think you need to apologize. You wrote some comparison code in two languages, which resulted in a conversation and contributions from people on how to improve your code in both languages. I drew benefit from seeing some Haskell in action, and then seeing how it can be reformatted to look very elegant. Frankly, I&#039;m amazed how negatively people react to these kinds of posts.</description>
		<content:encoded><![CDATA[<p>@ochronus, I don&#8217;t think you need to apologize. You wrote some comparison code in two languages, which resulted in a conversation and contributions from people on how to improve your code in both languages. I drew benefit from seeing some Haskell in action, and then seeing how it can be reformatted to look very elegant. Frankly, I&#8217;m amazed how negatively people react to these kinds of posts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-234</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-234</guid>
		<description>@Shot, and also don&#039;t calculate 10**999 in every cycle :)</description>
		<content:encoded><![CDATA[<p>@Shot, and also don&#8217;t calculate 10**999 in every cycle <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shot</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-233</link>
		<dc:creator>Shot</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-233</guid>
		<description>…although the actual answer to the question is obtained with

fibs.find { &#124;f&#124; f &gt;= 10**999 }

:)</description>
		<content:encoded><![CDATA[<p>…although the actual answer to the question is obtained with</p>
<p>fibs.find { |f| f &gt;= 10**999 }<br />
 <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-232</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-232</guid>
		<description>@Shot, Nice one, thanks :) I like it!</description>
		<content:encoded><![CDATA[<p>@Shot, Nice one, thanks <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I like it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shot</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-231</link>
		<dc:creator>Shot</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-231</guid>
		<description>Not as concise as Haskel, but based on the same idea:

fibs = Enumerator.new { &#124;y&#124; a, b = 0, 1; loop { y.yield a; b, a = a, a+b } }

fibs.take_while { &#124;f&#124; f &lt; 10**999 }.last</description>
		<content:encoded><![CDATA[<p>Not as concise as Haskel, but based on the same idea:</p>
<p>fibs = Enumerator.new { |y| a, b = 0, 1; loop { y.yield a; b, a = a, a+b } }</p>
<p>fibs.take_while { |f| f &lt; 10**999 }.last</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-230</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-230</guid>
		<description>@solrize, thanks for the idea, that&#039;s right - it&#039;s easier to comprehend.</description>
		<content:encoded><![CDATA[<p>@solrize, thanks for the idea, that&#8217;s right &#8211; it&#8217;s easier to comprehend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: solrize</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-229</link>
		<dc:creator>solrize</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-229</guid>
		<description>I like to write:

Prelude&gt; let fib x y = y:fib y (x+y)
Prelude&gt; take 20 $ fib 0 1
[1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765]


That is a little easier to understand than the zip version, I think.</description>
		<content:encoded><![CDATA[<p>I like to write:</p>
<p>Prelude&gt; let fib x y = y:fib y (x+y)<br />
Prelude&gt; take 20 $ fib 0 1<br />
[1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765]</p>
<p>That is a little easier to understand than the zip version, I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mfcastellani</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-235</link>
		<dc:creator>mfcastellani</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-235</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;rt @ruby_news Ruby vs. Haskell – project Euler #25 deathmatch http://bit.ly/97bh2Y&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">rt @ruby_news Ruby vs. Haskell – project Euler #25 deathmatch <a href="http://bit.ly/97bh2Y" rel="nofollow">http://bit.ly/97bh2Y</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-224</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-224</guid>
		<description>&lt;p&gt;Yes, you&#8217;re right, the same goes for almost all mathematical constructs. I only wanted to show/sugges the ease and naturalness of the Haskell representation of the Fibonacci series &#8211; which is also the basic difference (for me at this point) of the imperative and functional approaches.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knrbb&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Yes, you&#8217;re right, the same goes for almost all mathematical constructs. I only wanted to show/sugges the ease and naturalness of the Haskell representation of the Fibonacci series &#8211; which is also the basic difference (for me at this point) of the imperative and functional approaches.</p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knrbb" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-225</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-225</guid>
		<description>&lt;p&gt;Anyway, points taken, thanks for the comments and suggestions, I will watch out for these mistakes in my forthcoming posts.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knqv0&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Anyway, points taken, thanks for the comments and suggestions, I will watch out for these mistakes in my forthcoming posts.</p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knqv0" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ochronus</title>
		<link>http://blog.mostof.it/ruby-vs-haskell-project-euler-25-deathmatch/#comment-226</link>
		<dc:creator>ochronus</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mostof.it/?p=192#comment-226</guid>
		<description>&lt;p&gt;Hall of shame / catchy titles, I get it :)&lt;/p&gt;
&lt;p&gt;&lt;i&gt;This comment was originally posted on &lt;a href=&quot;http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knqpx&quot; rel=&quot;nofollow&quot;&gt;Reddit&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hall of shame / catchy titles, I get it <img src='http://blog.mostof.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><i>This comment was originally posted on <a href="http://www.reddit.com/r/haskell/comments/b2nkj/ruby_vs_haskell_project_euler_25_deathmatch/c0knqpx" rel="nofollow">Reddit</a></i></p>
]]></content:encoded>
	</item>
</channel>
</rss>

