caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: jtbryant@valdosta.edu
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Mututal Recursion and Tail Recursion
Date: Mon, 18 Jul 2005 09:56:05 +0900 (JST)	[thread overview]
Message-ID: <20050718.095605.74495093.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <1121429733.25450.5.camel@starlight.valdosta.edu>

From: Jonathan Bryant <jtbryant@valdosta.edu>

> Ok, I don't know enough about assembly to know exactly what that means,
> although I think that you mean they are tail recursive.  The whole
> reason I wrote this tiny module was to do that tail recursive since the
> List module isn't.  How does one submit code updates to INRIA for things
> like this?

There are already lots of tail-recursive replacements for the List
module, most notably the one included in Extlib. So if you need to
handle very long lists you can already use them.

The common problem for all these replacements is that they are slower
than the original (non tail-recursive) functions, particularly for
short lists, which are the most frequent ones.

So there is no need to submit this code :-)

(But I wonder whether it would not be a good idea to include a
Safelist module in the standard library...)

Cheers,

Jacques Garrigue


      reply	other threads:[~2005-07-18  0:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13 19:03 Jonathan Bryant
2005-07-15  6:40 ` [Caml-list] " Jean-Christophe Filliatre
2005-07-15 12:15   ` Jonathan Bryant
2005-07-18  0:56     ` Jacques Garrigue [this message]

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=20050718.095605.74495093.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=jtbryant@valdosta.edu \
    /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).