<?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: String reversing Part II: Tail Recursion</title>
	<atom:link href="http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/feed/" rel="self" type="application/rss+xml" />
	<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 22:39:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: scaevola</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-829141</link>
		<dc:creator>scaevola</dc:creator>
		<pubDate>Thu, 12 Jan 2012 20:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-829141</guid>
		<description>I have a one liner with the ternary operator:
public String reverseOpt(String str) {
	return str.charAt(str.length()-1)+((str.length() &lt;2)?&quot;&quot;: reverseOpt(str.substring(0,str.length()-1)));
   }</description>
		<content:encoded><![CDATA[<p>I have a one liner with the ternary operator:<br />
public String reverseOpt(String str) {<br />
	return str.charAt(str.length()-1)+((str.length() &lt;2)?&quot;&quot;: reverseOpt(str.substring(0,str.length()-1)));<br />
   }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier Mena</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-148015</link>
		<dc:creator>Javier Mena</dc:creator>
		<pubDate>Tue, 12 Aug 2008 19:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-148015</guid>
		<description>I was intensive tail recursion use in java, but I &quot;discovered&quot; that sun jvm (at least for java 1.5) doesn&#039;t optimizes for tail recursion.

Try to implement a recursive fact with a large number, and it will raise a stack overflow exception.

There are many developers that don&#039;t understand tail recursion. :(</description>
		<content:encoded><![CDATA[<p>I was intensive tail recursion use in java, but I &#8220;discovered&#8221; that sun jvm (at least for java 1.5) doesn&#8217;t optimizes for tail recursion.</p>
<p>Try to implement a recursive fact with a large number, and it will raise a stack overflow exception.</p>
<p>There are many developers that don&#8217;t understand tail recursion. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moose56 blog &#187; Blog Archive &#187; Java string reverse methods analysed</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-50983</link>
		<dc:creator>moose56 blog &#187; Blog Archive &#187; Java string reverse methods analysed</dc:creator>
		<pubDate>Fri, 25 Jan 2008 13:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-50983</guid>
		<description>[...] A Recursive version from here [...]</description>
		<content:encoded><![CDATA[<p>[...] A Recursive version from here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-39274</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Fri, 16 Nov 2007 06:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-39274</guid>
		<description>;-)</description>
		<content:encoded><![CDATA[<p>;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Holland</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-39272</link>
		<dc:creator>Jonathan Holland</dc:creator>
		<pubDate>Fri, 16 Nov 2007 06:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-39272</guid>
		<description>Hi Stephan,

Kudo&#039;s for following up with the tail recursion example. Personally, unless your a LISPer, I find that tail recursive solutions are better expressed iteratively.

But thats just my opinion, and its been considered faulty before :)</description>
		<content:encoded><![CDATA[<p>Hi Stephan,</p>
<p>Kudo&#8217;s for following up with the tail recursion example. Personally, unless your a LISPer, I find that tail recursive solutions are better expressed iteratively.</p>
<p>But thats just my opinion, and its been considered faulty before :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-38964</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 14 Nov 2007 18:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-38964</guid>
		<description>Reading through lambda the ultimate some compilers seem to automatically change recursion to tail recursion, so the beauty in the source is preserved. But I&#039;m no specialist in functional programming.</description>
		<content:encoded><![CDATA[<p>Reading through lambda the ultimate some compilers seem to automatically change recursion to tail recursion, so the beauty in the source is preserved. But I&#8217;m no specialist in functional programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mccoyn</title>
		<link>http://codemonkeyism.com/string-reversing-part-ii-tail-recursion/comment-page-1/#comment-38958</link>
		<dc:creator>mccoyn</dc:creator>
		<pubDate>Wed, 14 Nov 2007 18:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/12/string-reversing-part-ii-tail-recursion/#comment-38958</guid>
		<description>I agree, tail recursion optimizations take the beauty out of recursion.  Some things can be solved very beautifully with recursion until you realize the stack frame or speed implications make it an unscaleable solution.

I know a lot of interpreted languages represent the stack as a linked list, or even a linked tree.  This gets around the limits on stack space, but makes function calls a little slower.  

I haven&#039;t seen any compliers that attempt to make recursion faster other than with the tail-recursion optimization.</description>
		<content:encoded><![CDATA[<p>I agree, tail recursion optimizations take the beauty out of recursion.  Some things can be solved very beautifully with recursion until you realize the stack frame or speed implications make it an unscaleable solution.</p>
<p>I know a lot of interpreted languages represent the stack as a linked list, or even a linked tree.  This gets around the limits on stack space, but makes function calls a little slower.  </p>
<p>I haven&#8217;t seen any compliers that attempt to make recursion faster other than with the tail-recursion optimization.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 2/12 queries in 0.024 seconds using disk
Object Caching 320/320 objects using disk

Served from: codemonkeyism.com @ 2012-05-22 22:09:23 -->
