Re: Some questions about the Pico Lisp Interpreter

2008-10-21 Thread Alexander Burger
On Tue, Oct 21, 2008 at 12:28:42AM +0100, Tomas Hlavaty wrote: > http://logand.com/picoWiki/trampoline so feel free to comment on it. Beautiful! -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Re: Some questions about the Pico Lisp Interpreter

2008-10-20 Thread Tomas Hlavaty
Hi all, >> 1) Does the Interpretor do any kind of tail call optimisation, I > > No, not at all. > > As far as I can see, this is not easy to implement in an efficient way. > The interpreter would have to detect tail recursion at runtime, which > takes much more than time than simply executing the

Re: Some questions about the Pico Lisp Interpreter

2008-06-05 Thread konrad Zielinski
Yes, you answered the questions I asked, and gave the answers I suspected. I think part of the point with Direct Threading is that you need to explicitly tell gcc to enable it when compiling the VM, and write some switch statements in a certain way. Haven't got my head around the code yet. It make

Re: Some questions about the Pico Lisp Interpreter

2008-06-05 Thread Alexander Burger
Hi Konrad, > 1) Does the Interpretor do any kind of tail call optimisation, I No, not at all. As far as I can see, this is not easy to implement in an efficient way. The interpreter would have to detect tail recursion at runtime, which takes much more than time than simply executing the call/ret