caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "forum@x9c.fr" <forum@x9c.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] [ANN] OCaml-Java project: 1.0 release
Date: Tue, 27 May 2008 20:57:42 +0200	[thread overview]
Message-ID: <DBE25225-526E-48BE-A88B-FFCC26F5CBE1@x9c.fr> (raw)
In-Reply-To: <87k5hf1vcc.fsf@mid.deneb.enyo.de>


Le 27 mai 08 à 19:59, Florian Weimer a écrit :
> * Till Varoquaux:
>
>> Anyways; here goes for trampolines (straight from wikipedia):
>>
>> "Used in some LISP implementations, a trampoline is a loop that
>> iteratively invokes thunk-returning functions. A single trampoline is
>> sufficient to express all control transfers of a program; a program  
>> so
>> expressed is trampolined or in "trampolined style"; converting a
>> program to trampolined style is trampolining. Trampolined functions
>> can be used to implement tail recursive function calls in
>> stack-oriented languages."
>
> I'm not sure if this is this a universally understood term.  In GHC
> land, this is called a "mini-interpreter".  The mini-interpreter  
> doesn't
> have to be *that* expensive if you can avoid consing, but this seems  
> to
> require whole-program analysis (or, at the very least, rather powerful
> inter-procedural escape analysis).
>
> I think I've heard this term mostly in the context of currying
> (specifically, in the implementation of downward closures in languages
> such as Ada).
>

Indeed, I was aware of such a technique but did not know the name  
"trampoline"
(quite funny, by the way). It is highly improbable that I will  
implement this in
OCaml-Java. I want to keep separate compilation, and the possibility  
of very-late
linking as proposed by Java.


Xavier Clerc

  reply	other threads:[~2008-05-27 18:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27  5:46 forum
2008-05-27  6:06 ` [Caml-list] " Jon Harrop
2008-05-27  6:37   ` Till Varoquaux
2008-05-27  7:01     ` Jon Harrop
2008-05-27  7:57       ` Till Varoquaux
2008-05-27  7:26     ` forum
2008-05-27  8:36       ` Till Varoquaux
2008-05-27 17:59         ` Florian Weimer
2008-05-27 18:57           ` forum [this message]
2008-05-27  7:23   ` forum
2008-05-27  9:12     ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DBE25225-526E-48BE-A88B-FFCC26F5CBE1@x9c.fr \
    --to=forum@x9c.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).