From: Lothar Scholz Date: 2004-08-27T02:19:01+09:00 Subject: Re: is the ruby interpreter stackless? Hello Robert, RK> "Lennon Day-Reynolds" schrieb im Newsbeitrag RK> news:5d4c6124040824184528f7801c@mail.gmail.com... >> Ruby uses the C stack; its continuations are implemented using >> setjmp/longjmp. That makes the Ruby API very natural to use from C, >> but unfortunately, also means that the stack limits of the native >> platform apply, and that Ruby's continuations are no faster than full >> native SMP threads. RK> Is that really the case? I mean, this doesn't look like "natural" stack RK> depth limit: RK> $ ruby -e 'def foo() foo end; begin; foo; rescue Exception => e; puts RK> e.backtrace.size; end' RK> 13633 Please look at "eval.c" it is not difficult to understand and much better then guessing and writing naive tests. -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's