From: Markus Mottl <markus@oefai.at>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Turning off type-checking
Date: Wed, 15 May 2002 01:17:19 +0200 [thread overview]
Message-ID: <20020514231719.GA21332@fichte.ai.univie.ac.at> (raw)
In-Reply-To: <20020514233326Q.garrigue@kurims.kyoto-u.ac.jp>
On Tue, 14 May 2002, Jacques Garrigue wrote:
> One thing you might want to try is to write your own interpreter for
> your subset of ocaml. According to the code snippets you posted, it is
> restricted enough, so that should be easy. Then you can experiment
> without compiling, and compile later if you really need to.
Being so lazy, I thought that I could skip writing an interpreter,
because I needed a pretty-printer anyway. And OCaml-code is just fine
for this purpose...
> Note that with some tricks your interpreter can share data
> representation with ocaml, so that your functions could be called
> directly from ocaml (with a bit of magic, of course).
This is an interesting suggestion, thanks!
> As long as your type are not really huge (like in Alain's example), and
> you are not using subtyping, I don't think that there is much room for
> improvement in the compiler. This said, we find a complexity bug once
> in a while. One of them was quite serious: type checking was done twice
> for arguments in applications. Usually you won't notice it, but if you
> have an application inside an argument inside an argument... this was
> exponential! Unfortunately I don't remember whether this was corrected
> before or after 3.04.
I don't think that I really hit the exponential wall anywhere so it's
probably just that type-checking takes much longer than I had expected.
Well, I can live with it...
Regards,
Markus Mottl
--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus
-------------------
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 23:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-05-14 23:34 ` John Prevost
2002-05-15 8:51 ` Jacques Garrigue
2002-05-15 22:22 ` John Max Skaller
2002-05-14 3:10 Gregory Morrisett
2002-05-14 7:10 ` Francois Pottier
2002-05-14 7:56 ` eijiro_sumii
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
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=20020514231719.GA21332@fichte.ai.univie.ac.at \
--to=markus@oefai.at \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.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