Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Olivier Grisel <olivier.grisel@ensta.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Functors
Date: Thu, 06 May 2004 20:26:37 +0200	[thread overview]
Message-ID: <409A835D.2040201@ensta.org> (raw)
In-Reply-To: <Pine.SOL.4.44.0405062221010.23492-100000@clipper.ens.fr>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain.Frisch@ens.fr a écrit :
| On Thu, 6 May 2004, Jon Harrop wrote:
|>Morever, static analysis tools do not generally correctly work on
|>functorized programs: so a source-to-source defunctorizer as ocamldefun
|>can be used by these tools while a defunctorizer directly included in
|>the compiler cannot.
|
|
| To rephrase it: since some static analysis are difficult to perform on
| fonctors, it is good to have a standalone defunctorizer (not burried
| into the compiler) to be used as a first pass of the analysis.
|

Yes, but what about embedding ocamldefun as option/switch in the
compiler's command. Users could see it as another optimization option
easy enough to trigger by just adding or removing a flag in the makefile.

Those who wants to perform static analysis could use some other switch
to explicitely dump the defunctorised source code, eg :

$ ocamlopt -dump-defun foo.ml > defun_foo.ml

best
- --
Olivier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAmoNcTsBRE+WZ2SARAhTDAJ9liZz3MSVD0h0opFPTGSR8JJnyUQCgts+m
saP/ghOn3b5RRpFYIstOP+g=
=rIIi
-----END PGP SIGNATURE-----

-------------------
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


  reply	other threads:[~2004-05-06 21:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-02  9:12 Jon Harrop
2004-05-02 10:24 ` Martin Jambon
2004-05-02 13:34   ` Jon Harrop
2004-05-02 14:12     ` skaller
2004-05-02 16:49       ` Jon Harrop
2004-05-03  0:20         ` skaller
2004-05-03 14:43           ` Jacques Carette
2004-05-03 16:09             ` Alain.Frisch
2004-05-03 18:53               ` Jacques Carette
2004-05-03 19:17                 ` [Caml-list] Mathematica Jon Harrop
2004-05-03 22:51                 ` [Caml-list] Functors Alain.Frisch
2004-05-03 16:02     ` Julien Signoles
2004-05-03 18:41       ` Jon Harrop
2004-05-04  7:25         ` Jean-Christophe Filliatre
2004-05-05  8:15         ` Julien Signoles
2004-05-05 20:41           ` brogoff
2004-05-06 11:16             ` Jon Harrop
2004-05-06 20:23               ` Alain.Frisch
2004-05-06 18:26                 ` Olivier Grisel [this message]
2004-05-06 12:26             ` Julien Signoles
2004-05-06 16:35               ` brogoff
2004-05-02 17:18   ` David Brown

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=409A835D.2040201@ensta.org \
    --to=olivier.grisel@ensta.org \
    --cc=caml-list@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