From: gabriele renzi Date: 2004-01-16T08:21:35+09:00 Subject: Re: Stack level too deep (SystemStackError) il Thu, 15 Jan 2004 17:18:17 +0900, Gennady ha scritto:: > >On Jan 14, 2004, at 23:31, Jesper Olsen wrote: > > >In bash, "ulimit -s" shows the current stack size in kbytes (defaults >to 8192 in Mac OS X, really low). To change it issue "ulimit -s >". on a sidenote, someone I know has the same max stack size as me (8192), and with slightly different versions of 1.8.1, on debian he's got a SystemStackError calculating ackermann(3,7), while I can even calculate ackermann(3,8). I'm not a unix guru, may be possible that there are other things to look for? the ackermann implementation is: def ackermann(m, n) if m == 0 n + 1 elsif n == 0 ack(m - 1, 1) else ack(m - 1, ack(m, n - 1)) end end