Browse thread
[ANN] OCaml-Java project: 1.0 release
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] [ANN] OCaml-Java project: 1.0 release |
On Tuesday 27 May 2008 07:37:40 Till Varoquaux wrote: > On Tue, May 27, 2008 at 7:06 AM, Jon Harrop <jon@ffconsultancy.com> wrote: > > 4. Are tail calls fully implemented and, if not, when exactly do they > > work? > > One cannot fully implement tail calls on the JVM: there's no such > thing as a goto or a tail call instruction. > Tail recursion can usually be done for cheap. The general requires > some expensive machinery (usually trampolines) What characteristics of tail calls cannot be implemented using trampolines? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e