From: David Masover Date: 2009-10-01T09:07:07+09:00 Subject: Re: SystemStackError: stack level too deep > how make it deeper? On Wednesday 30 September 2009 04:17:31 pm Rob Biedenharn wrote: > your algorithm is "tail recursive" and that's partly why you run out > of stack space in a language like Ruby, but in a language optimized > for tail recursion it might have worked. Probably would have. The other thing is to note that the question the subject is asking should never be asked. If you're in a language that optimizes tail-recursing, it's probably about as efficient as a loop. If you're in a language that doesn't optimize tail-recursing, the last thing you want to do is increase the size of the stack. That would just give you the same problem again later, and waste tons of RAM.