From: Charles O Nutter Date: 2006-03-14T05:18:33+09:00 Subject: Re: The benefits of tail recursion ------=_Part_8564_3405571.1142281098019 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Someone wanna run a comparison of performance between the two? If continuations were fast enough, I'd expect it to be faster, but I've heard they're not as fast as we'd like in Ruby. On 3/13/06, Pit Capitain wrote: > > Timothy Goddard schrieb: > > I thought I'd share a useful little trick with the list. I've put > > together a little library (27 lines for the actual implementation) that > > can convert any function into a partially tail-recursive function, > > without any alteration required, using a single command. > > ... > > If you're interested, see ruby-talk:145593 for an implementation with > throw/catch instead of continuations. > > Regards, > Pit > > -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com ------=_Part_8564_3405571.1142281098019--