From: John Ky Date: 2008-12-05T17:08:10+09:00 Subject: Re: Stack level too deep ------=_Part_26272_22285261.1228464852308 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Josh, Fibres do sound interesting. Anyhow, I'm stuck with 1.8 at the moment. I had this idea that I could spawn another thread with a fresh stack and continue the excution on that. Sadly, it didn't work. Instead of getting a system stack error at 3467 levels, I'm now getting the same at 61 levels. Do I not get a new stack with a new thread? Thanks -John On Wed, Dec 3, 2008 at 3:09 PM, Joshua Ballanco wrote: > Hi John, > > Just a friendly suggestion, but this and your previous query about blocks > make me wonder if you shouldn't be using a functional language? Ruby has > very convenient functional syntax but doesn't (at least not to my knowledge) > do the same sorts of optimizations that more purely functional languages > will do. > > The other option (as I'm watching PragDave's RubyConf talk on 1.9) is to > use Fibers. Watch the bit of his talk on Fibers at > http://rubyconf2008.confreaks.com/ruby-19-what-to-expect.html starting > about 18 min in. > > Cheers, > > Josh > > > > On Dec 2, 2008, at 10:34 PM, John Ky wrote: > > Hi, >> >> Is there any way for me to increase the stack size? My stack is huge: >> >> playback.rb:38:in `play_back': stack level too deep (SystemStackError) >> >> Cheers, >> >> -John >> > > > ------=_Part_26272_22285261.1228464852308--