From: Didier.Remy@inria.fr (Didier Remy)
To: gregoire@inrs-telecom.uquebec.ca (Jean Charles Gregoire)
Cc: caml-list@inria.fr
Subject: Re: Algorithme de Milner (synth=?iso-8859-1?Q?�?= se de type)
Date: Wed, 19 Nov 1997 09:49:01 +0100 (MET) [thread overview]
Message-ID: <199711190849.JAA05558@pauillac.inria.fr> (raw)
In-Reply-To: <323_8540_879362618_1@someware> from Jean Charles Gregoire at "Nov 12, 97 02:23:39 pm"
> Quelqu'un connaîtrait-il une page Web décrivant le principe de l'algorithme
> H-M pour la synthèse de type à la ML ? C'est pour donner une réf. à un
> étudiant
> qui doit le réaliser.
En annexe de [1], j'ai décrit une implémentation de l'algorithme de Milner,
et le code Caml-Light correspondant.
Les types sont représentés par des graphes plutôt que des termes afin de
profiter au maximum du partage naturellement crée par l'unification. De plus
ce partage est conservé au cours des opérations de généralisation et
d'instantiation.
L'algorithme résultant a la même complexité que la borne théorique (ce qui
n'est pas le cas des algorithmes habituellement implantés), et se comporte
également très bien en pratique.
La contrepartie est que l'implémentation est un peu alourdie par
l'utilisation de graphes.
--Didier
[1] @TechReport{Remy!mleth,
author = "Didier R{\'e}my",
title = "Extending {ML} Type System with a Sorted
Equational Theory",
institution= "Institut National de Recherche en Informatique et Automatisme",
address = "Rocquencourt, BP 105, 78 153 Le Chesnay Cedex, France",
type = "Research Report",
number = 1766,
year = 1992
}
prev parent reply other threads:[~1997-11-19 10:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-12 19:23 Algorithme de Milner (synthè " Jean Charles Gregoire
1997-11-18 18:34 ` Fredrik Granlund
1997-11-19 8:49 ` Didier Remy [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=199711190849.JAA05558@pauillac.inria.fr \
--to=didier.remy@inria.fr \
--cc=caml-list@inria.fr \
--cc=gregoire@inrs-telecom.uquebec.ca \
/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