<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Fab Fib</title>
	<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/</link>
	<description>Incoherent and disjointed opinionated drivel from somewhere near London</description>
	<pubDate>Wed, 20 Aug 2008 10:43:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Trevor Bernard</title>
		<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-620</link>
		<dc:creator>Trevor Bernard</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:28:38 +0000</pubDate>
		<guid>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-620</guid>
		<description>The Haskell implementation is just a little dynamic programming. It can easily but not quite as elegantly be done in any procedural language.
 
int fib[50];
fib[0] = 0;
fib[1] = 1;
for(int i=2; i&#60;50; i++) {
    fib[i] = fib[i-2] + fib[i-1];
}</description>
		<content:encoded><![CDATA[<p>The Haskell implementation is just a little dynamic programming. It can easily but not quite as elegantly be done in any procedural language.</p>
<p>int fib[50];<br />
fib[0] = 0;<br />
fib[1] = 1;<br />
for(int i=2; i&lt;50; i++) {<br />
    fib[i] = fib[i-2] + fib[i-1];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russ</title>
		<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-71</link>
		<dc:creator>russ</dc:creator>
		<pubDate>Sun, 27 Jan 2008 17:11:09 +0000</pubDate>
		<guid>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-71</guid>
		<description>Hi Scott, fancy seeing you here! No worries about the error - it's surprisingly common to see the base cases mistyped in Fibonacci generators. In fact, the Haskell solution I discuss here actually had a similar mistake in the comment on your post, starting the list with 1 : 1 rather than 0 : 1 - strictly speaking, the sequence should start with 0. Keep up the good work with the Weekly Source Code, it's an excellent series and very useful too.</description>
		<content:encoded><![CDATA[<p>Hi Scott, fancy seeing you here! No worries about the error - it&#8217;s surprisingly common to see the base cases mistyped in Fibonacci generators. In fact, the Haskell solution I discuss here actually had a similar mistake in the comment on your post, starting the list with 1 : 1 rather than 0 : 1 - strictly speaking, the sequence should start with 0. Keep up the good work with the Weekly Source Code, it&#8217;s an excellent series and very useful too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russ</title>
		<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-70</link>
		<dc:creator>russ</dc:creator>
		<pubDate>Sun, 27 Jan 2008 17:04:54 +0000</pubDate>
		<guid>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-70</guid>
		<description>Hi Don, thanks for the link! The parallel implementations are interesting, though they seem to me to be more an exercise in demonstrating Haskell's parallel capabilities since they stick to the naive recursive approach. What I love about the zipWith solution is how it performs so well whilst retaining most of the elegance of the naive recursive solution.</description>
		<content:encoded><![CDATA[<p>Hi Don, thanks for the link! The parallel implementations are interesting, though they seem to me to be more an exercise in demonstrating Haskell&#8217;s parallel capabilities since they stick to the naive recursive approach. What I love about the zipWith solution is how it performs so well whilst retaining most of the elegance of the naive recursive solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hanselman</title>
		<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-67</link>
		<dc:creator>Scott Hanselman</dc:creator>
		<pubDate>Sat, 26 Jan 2008 18:43:17 +0000</pubDate>
		<guid>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-67</guid>
		<description>It's funny, I did a Haskell one in college and considered it for this post, but it was getting pretty long (the post) so I didn't. Thanks for fixing my error and for a great writeup!</description>
		<content:encoded><![CDATA[<p>It&#8217;s funny, I did a Haskell one in college and considered it for this post, but it was getting pretty long (the post) so I didn&#8217;t. Thanks for fixing my error and for a great writeup!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Stewart</title>
		<link>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-66</link>
		<dc:creator>Don Stewart</dc:creator>
		<pubDate>Sat, 26 Jan 2008 18:19:53 +0000</pubDate>
		<guid>http://basildoncoder.com/blog/2008/01/26/fab-fib/#comment-66</guid>
		<description>You might be interested in the collected Haskell fibonacci
implementations here: http://haskell.org/haskellwiki/The_Fibonacci_sequence
which includes neat, concise ones, and parallel ones that will use all
your cores.</description>
		<content:encoded><![CDATA[<p>You might be interested in the collected Haskell fibonacci<br />
implementations here: <a href="http://haskell.org/haskellwiki/The_Fibonacci_sequence" rel="nofollow">http://haskell.org/haskellwiki/The_Fibonacci_sequence</a><br />
which includes neat, concise ones, and parallel ones that will use all<br />
your cores.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.236 seconds -->
