From: Maxime Lesourd <maxime.lesourd@ens-lyon.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Modifying the typechecker
Date: Sun, 12 Jul 2015 19:09:04 +0000 [thread overview]
Message-ID: <CAPf6H=VpiR9ZEwDKbJN_2PoDwHLR8pOhkuEkCqE+ewx1V1sYQQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
Hello,
I am trying to add session types to the OCaml language. We have an
inference algorithm for a type and effect system which I am currently
trying to implement by modifying the typechecker. For now I am only
targeting the core of the language (no objects, GADTs) and I mostly need to
be able to prevent generalization of some type variables.
The issue I am running into is that documentation about this part of the
compiler seems to be very sparse, I have found some documentation about ML
type inference in general [1], generalization [2] and the value restriction
[3] but I was wondering if there was more information available about the
actual implementation of the inference algorithm.
Thanks,
Maxime
[1] : http://cristal.inria.fr/attapl/
[2] : http://okmij.org/ftp/ML/generalization.html
[3] : http://www.math.nagoya-u.ac.jp/~garrigue/papers/morepoly-long.pdf
[-- Attachment #2: Type: text/html, Size: 1182 bytes --]
reply other threads:[~2015-07-12 19:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAPf6H=VpiR9ZEwDKbJN_2PoDwHLR8pOhkuEkCqE+ewx1V1sYQQ@mail.gmail.com' \
--to=maxime.lesourd@ens-lyon.fr \
--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