<?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: Day 21 &#8211; Collatz Variations</title>
	<atom:link href="http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/feed/" rel="self" type="application/rss+xml" />
	<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/</link>
	<description>Something cool about Perl 6 every day</description>
	<lastBuildDate>Sun, 03 Feb 2013 05:15:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Kaz</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2179</link>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 21:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2179</guid>
		<description><![CDATA[Same thing, but with sparser memoization for better performance:

sub collatz-length(Int $n) {
    state %seq = { 1 =&gt; 1 };
    if $n +&amp; 1 {
        %seq{$n} //= 2 + collatz-length((3 * $n + 1) +&gt; 1);
    } else {
        collatz-length($n +&gt; 1) + 1;
    }
}]]></description>
		<content:encoded><![CDATA[<p>Same thing, but with sparser memoization for better performance:</p>
<p>sub collatz-length(Int $n) {<br />
    state %seq = { 1 =&gt; 1 };<br />
    if $n +&amp; 1 {<br />
        %seq{$n} //= 2 + collatz-length((3 * $n + 1) +&gt; 1);<br />
    } else {<br />
        collatz-length($n +&gt; 1) + 1;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaz</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2175</link>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 20:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2175</guid>
		<description><![CDATA[Combining some recursion steps by using the property that (Odd * 3 + 1) ~~ Even:

sub collatz-length(Int $n) {
    state %seq = { 1 =&gt; 1 };
    %seq{$n} //= $n +&amp; 1 ??
        2 + collatz-length((3 * $n + 1) +&gt; 1) !!
        1 + collatz-length($n +&gt; 1);
}]]></description>
		<content:encoded><![CDATA[<p>Combining some recursion steps by using the property that (Odd * 3 + 1) ~~ Even:</p>
<p>sub collatz-length(Int $n) {<br />
    state %seq = { 1 =&gt; 1 };<br />
    %seq{$n} //= $n +&amp; 1 ??<br />
        2 + collatz-length((3 * $n + 1) +&gt; 1) !!<br />
        1 + collatz-length($n +&gt; 1);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2169</link>
		<dc:creator><![CDATA[pat]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 18:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2169</guid>
		<description><![CDATA[Why didn&#039;t you use multi-subs? the recursive solution looks like a cry for multiple dispatch to me. So here&#039;s my approach (didn&#039;t time it, because i don&#039;t expect any speed gain).

subset Odd  of Int where {$_ !%% 2};
subset Even of Int where {$_ %% 2};

multi collatz-length (1      ) { 1 }
multi collatz-length (Even $n) { 1 + collatz-length($n div 2) }
multi collatz-length (Odd $n)  { 1 + collatz-length(3 * $n + 1) }


sub MAIN(*@numbers) {
    for @numbers -&gt; $n {
        say &quot;$n: &quot; ~ collatz-length($n.Int);
    }
}]]></description>
		<content:encoded><![CDATA[<p>Why didn&#8217;t you use multi-subs? the recursive solution looks like a cry for multiple dispatch to me. So here&#8217;s my approach (didn&#8217;t time it, because i don&#8217;t expect any speed gain).</p>
<p>subset Odd  of Int where {$_ !%% 2};<br />
subset Even of Int where {$_ %% 2};</p>
<p>multi collatz-length (1      ) { 1 }<br />
multi collatz-length (Even $n) { 1 + collatz-length($n div 2) }<br />
multi collatz-length (Odd $n)  { 1 + collatz-length(3 * $n + 1) }</p>
<p>sub MAIN(*@numbers) {<br />
    for @numbers -&gt; $n {<br />
        say &#8220;$n: &#8221; ~ collatz-length($n.Int);<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colomon</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2157</link>
		<dc:creator><![CDATA[colomon]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 13:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2157</guid>
		<description><![CDATA[Kaz is correct -- the various hand-cached versions are so fast that the time to calculate the answers is completely swamped by the overhead of setting up the tests.  (Proof: I just added collatz-dummy which never calculates a Collatz sequence length at all, it just returns 1 for everything.  It&#039;s only a tiny marginal improvement over the best versions which actually do work.)

Conclusion: I need a better benchmarking framework for this.  Must ponder.]]></description>
		<content:encoded><![CDATA[<p>Kaz is correct &#8212; the various hand-cached versions are so fast that the time to calculate the answers is completely swamped by the overhead of setting up the tests.  (Proof: I just added collatz-dummy which never calculates a Collatz sequence length at all, it just returns 1 for everything.  It&#8217;s only a tiny marginal improvement over the best versions which actually do work.)</p>
<p>Conclusion: I need a better benchmarking framework for this.  Must ponder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaz</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2139</link>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 22:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2139</guid>
		<description><![CDATA[The 31% measurement was with a MAIN like this (this is actually slightly tighter than the MAIN that had the 31% result, so the proportional differences will be a bit higher with this):

sub MAIN() {
    my $start = now;
    for @numbers -&gt; $number {
        collatz-length($number);
    }   
    my $time = now - $start;
    
    say &quot;$time&quot;;
}   

I only wrote it to support testing a single function at a time, but it measures the runtime of the actual function execution, so I&#039;ve found it useful for comparing implementations with better granularity and less dependence on system load.]]></description>
		<content:encoded><![CDATA[<p>The 31% measurement was with a MAIN like this (this is actually slightly tighter than the MAIN that had the 31% result, so the proportional differences will be a bit higher with this):</p>
<p>sub MAIN() {<br />
    my $start = now;<br />
    for @numbers -&gt; $number {<br />
        collatz-length($number);<br />
    }<br />
    my $time = now &#8211; $start;</p>
<p>    say &#8220;$time&#8221;;<br />
}   </p>
<p>I only wrote it to support testing a single function at a time, but it measures the runtime of the actual function execution, so I&#8217;ve found it useful for comparing implementations with better granularity and less dependence on system load.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colomon</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2137</link>
		<dc:creator><![CDATA[colomon]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 22:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2137</guid>
		<description><![CDATA[Hmm... this is definitely the best result I&#039;ve seen so far, but I&#039;m not seeing anything like 31% improvement.

&lt;table border=&quot;1&quot; align=&quot;center&quot;&gt; &lt;tr&gt;&lt;td&gt;Script&lt;/td&gt;&lt;td&gt;Rakudo&lt;/td&gt;&lt;td&gt;Niecza&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-kaz.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-kaz.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 3.2 &lt;/td&gt;
    &lt;td&gt; 1.6 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-gerdr.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-gerdr.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 3.3 &lt;/td&gt;
    &lt;td&gt; 1.6 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-hand-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary-hand-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 3.3 &lt;/td&gt;
    &lt;td&gt; 1.6 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-loop.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-loop.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.2 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.3 &lt;/td&gt;
    &lt;td&gt; N/A &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-default-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.7 &lt;/td&gt;
    &lt;td&gt; N/A &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-default.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 6.3 &lt;/td&gt;
    &lt;td&gt; 1.9 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 6.9 &lt;/td&gt;
    &lt;td&gt; 1.9 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-ternary.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence-ternary.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 14.9 &lt;/td&gt;
    &lt;td&gt; 4.3 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-div.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence-div.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 17.8 &lt;/td&gt;
    &lt;td&gt; 4.3 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 21 &lt;/td&gt;
    &lt;td&gt; 4.8 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;]]></description>
		<content:encoded><![CDATA[<p>Hmm&#8230; this is definitely the best result I&#8217;ve seen so far, but I&#8217;m not seeing anything like 31% improvement.</p>
<table border="1" align="center">
<tr>
<td>Script</td>
<td>Rakudo</td>
<td>Niecza</td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-kaz.pl" rel="nofollow"> bin/collatz-kaz.pl </a> </td>
<td> 3.2 </td>
<td> 1.6 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-gerdr.pl" rel="nofollow"> bin/collatz-gerdr.pl </a> </td>
<td> 3.3 </td>
<td> 1.6 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-hand-cached.pl" rel="nofollow"> bin/collatz-recursive-ternary-hand-cached.pl </a> </td>
<td> 3.3 </td>
<td> 1.6 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary.pl" rel="nofollow"> bin/collatz-recursive-ternary.pl </a> </td>
<td> 4 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-loop.pl" rel="nofollow"> bin/collatz-loop.pl </a> </td>
<td> 4.2 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-cached.pl" rel="nofollow"> bin/collatz-recursive-ternary-cached.pl </a> </td>
<td> 4.3 </td>
<td> N/A </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default-cached.pl" rel="nofollow"> bin/collatz-recursive-default-cached.pl </a> </td>
<td> 4.7 </td>
<td> N/A </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default.pl" rel="nofollow"> bin/collatz-recursive-default.pl </a> </td>
<td> 6.3 </td>
<td> 1.9 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive.pl" rel="nofollow"> bin/collatz-recursive.pl </a> </td>
<td> 6.9 </td>
<td> 1.9 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-ternary.pl" rel="nofollow"> bin/collatz-sequence-ternary.pl </a> </td>
<td> 14.9 </td>
<td> 4.3 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-div.pl" rel="nofollow"> bin/collatz-sequence-div.pl </a> </td>
<td> 17.8 </td>
<td> 4.3 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence.pl" rel="nofollow"> bin/collatz-sequence.pl </a> </td>
<td> 21 </td>
<td> 4.8 </td>
</tr>
</table>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaz</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2136</link>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 22:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2136</guid>
		<description><![CDATA[(that&#039;s starting from gerdr&#039;s 2-line function)]]></description>
		<content:encoded><![CDATA[<p>(that&#8217;s starting from gerdr&#8217;s 2-line function)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaz</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2134</link>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 22:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2134</guid>
		<description><![CDATA[Timing just the collatz-length function, with @numbers = 1..800, 10000..10200, I&#039;m getting roughly 31% better performance by using bitwise operators (rather than a divisibility test and a division).

%seq{$n} //= 1 + collatz-length($n +&amp; 1 ?? 3 * $n + 1 !! $n +&gt; 1);]]></description>
		<content:encoded><![CDATA[<p>Timing just the collatz-length function, with @numbers = 1..800, 10000..10200, I&#8217;m getting roughly 31% better performance by using bitwise operators (rather than a divisibility test and a division).</p>
<p>%seq{$n} //= 1 + collatz-length($n +&amp; 1 ?? 3 * $n + 1 !! $n +&gt; 1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colomon</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2096</link>
		<dc:creator><![CDATA[colomon]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 13:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2096</guid>
		<description><![CDATA[New timing table, with workload increased and gerdr&#039;s version added:

&lt;table border=&quot;1&quot; align=&quot;center&quot;&gt; &lt;tr&gt;&lt;td&gt;Script&lt;/td&gt;&lt;td&gt;Rakudo&lt;/td&gt;&lt;td&gt;Niecza&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-gerdr.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-gerdr.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 3.5 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-hand-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary-hand-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 3.5 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.1 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-loop.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-loop.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.3 &lt;/td&gt;
    &lt;td&gt; 1.7 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-ternary-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.4 &lt;/td&gt;
    &lt;td&gt; N/A &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default-cached.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-default-cached.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 4.9 &lt;/td&gt;
    &lt;td&gt; N/A &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive-default.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 6.5 &lt;/td&gt;
    &lt;td&gt; 1.9 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-recursive.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 7.2 &lt;/td&gt;
    &lt;td&gt; 2 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-ternary.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence-ternary.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 15.1 &lt;/td&gt;
    &lt;td&gt; 4.3 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-div.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence-div.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 18.3 &lt;/td&gt;
    &lt;td&gt; 4.4 &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt; &lt;a href=&quot;https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence.pl&quot; rel=&quot;nofollow&quot;&gt; bin/collatz-sequence.pl &lt;/a&gt; &lt;/td&gt;
    &lt;td&gt; 21.3 &lt;/td&gt;
    &lt;td&gt; 4.8 &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;]]></description>
		<content:encoded><![CDATA[<p>New timing table, with workload increased and gerdr&#8217;s version added:</p>
<table border="1" align="center">
<tr>
<td>Script</td>
<td>Rakudo</td>
<td>Niecza</td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-gerdr.pl" rel="nofollow"> bin/collatz-gerdr.pl </a> </td>
<td> 3.5 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-hand-cached.pl" rel="nofollow"> bin/collatz-recursive-ternary-hand-cached.pl </a> </td>
<td> 3.5 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary.pl" rel="nofollow"> bin/collatz-recursive-ternary.pl </a> </td>
<td> 4.1 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-loop.pl" rel="nofollow"> bin/collatz-loop.pl </a> </td>
<td> 4.3 </td>
<td> 1.7 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-ternary-cached.pl" rel="nofollow"> bin/collatz-recursive-ternary-cached.pl </a> </td>
<td> 4.4 </td>
<td> N/A </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default-cached.pl" rel="nofollow"> bin/collatz-recursive-default-cached.pl </a> </td>
<td> 4.9 </td>
<td> N/A </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive-default.pl" rel="nofollow"> bin/collatz-recursive-default.pl </a> </td>
<td> 6.5 </td>
<td> 1.9 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-recursive.pl" rel="nofollow"> bin/collatz-recursive.pl </a> </td>
<td> 7.2 </td>
<td> 2 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-ternary.pl" rel="nofollow"> bin/collatz-sequence-ternary.pl </a> </td>
<td> 15.1 </td>
<td> 4.3 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence-div.pl" rel="nofollow"> bin/collatz-sequence-div.pl </a> </td>
<td> 18.3 </td>
<td> 4.4 </td>
</tr>
<tr>
<td> <a href="https://github.com/colomon/perl6-collatz/blob/master/bin/collatz-sequence.pl" rel="nofollow"> bin/collatz-sequence.pl </a> </td>
<td> 21.3 </td>
<td> 4.8 </td>
</tr>
</table>
]]></content:encoded>
	</item>
	<item>
		<title>By: gerdr</title>
		<link>http://perl6advent.wordpress.com/2012/12/21/day-21-collatz-variations/#comment-2095</link>
		<dc:creator><![CDATA[gerdr]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 13:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=1790#comment-2095</guid>
		<description><![CDATA[Sure, feel free to add it to the repository.]]></description>
		<content:encoded><![CDATA[<p>Sure, feel free to add it to the repository.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
