From: eijiro_sumii@anet.ne.jp
To: caml-list@inria.fr
Cc: sumii@yl.is.s.u-tokyo.ac.jp
Subject: Re: [Caml-list] Turning off type-checking
Date: Tue, 14 May 2002 16:56:32 +0900 [thread overview]
Message-ID: <20020514165632J.sumii@tuba.is.s.u-tokyo.ac.jp> (raw)
In-Reply-To: <20020514091053.A8883@pauillac.inria.fr>
From: Francois Pottier <francois.pottier@inria.fr>
> > Well, type-checking ML involves more than term unification -- the
> > worst case complexity is something truly horrible (EXP-time).
> > Having said this, for most programs, the worst-case complexity
> > rarely, if ever arises in "natural" code. (I've not run into
> > it...)
>
> The worst-case complexity is obtained by nesting `let' bindings
> on the left side, i.e.
>
> let x1 = let x2 = let x3 = ...
>
> Do you generate such code, Markus?
Just for information, I once came across a real situation where I
generated similar code with too much nested 'let' and
ocamlc/ocamlopt/ocamlc.opt/ocamlopt.opt ran out of memory or did not
terminate within a practical amount of time. I am not sure whether
that was because of type checking, though. (See the "PLClubCN"
version of our entry to ICFP Programming Contest 2000 in case of any
interest...)
--
Eijiro Sumii (http://www.yl.is.s.u-tokyo.ac.jp/~sumii/)
Research Associate, Department of Computer Science, University of Tokyo
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-05-14 7:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 3:10 Gregory Morrisett
2002-05-14 7:10 ` Francois Pottier
2002-05-14 7:56 ` eijiro_sumii [this message]
2002-05-14 12:51 ` Markus Mottl
2002-05-15 19:42 ` John Max Skaller
2002-05-15 21:02 ` Markus Mottl
2002-05-14 8:20 ` Alain Frisch
2002-05-14 10:33 ` Christophe Raffalli
2002-05-14 13:39 ` Oliver Bandel
2002-05-15 6:00 ` malc
-- strict thread matches above, loose matches on Subject: below --
2002-05-13 13:31 Markus Mottl
2002-05-13 14:33 ` Lauri Alanko
2002-05-13 21:47 ` Berke Durak
2002-05-14 13:33 ` Oliver Bandel
2002-05-14 14:33 ` Jacques Garrigue
2002-05-14 23:17 ` Markus Mottl
2002-05-14 23:34 ` John Prevost
2002-05-15 8:51 ` Jacques Garrigue
2002-05-15 22:22 ` John Max Skaller
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=20020514165632J.sumii@tuba.is.s.u-tokyo.ac.jp \
--to=eijiro_sumii@anet.ne.jp \
--cc=caml-list@inria.fr \
--cc=sumii@yl.is.s.u-tokyo.ac.jp \
/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