From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
Cc: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] how to upset the ocaml type system....
Date: Wed, 29 Aug 2007 18:15:07 +0200 [thread overview]
Message-ID: <46D59B8B.1020403@univ-savoie.fr> (raw)
In-Reply-To: <46D55122.2090709@univ-savoie.fr>
[-- Attachment #1.1: Type: text/plain, Size: 1018 bytes --]
Dear list members,
I wrote:
> With pml I seem to get a polynomial
> behavior (at least quadratic but probably cubic), I tested up to 9.
> This is because the type of xi is bigger and bigger (but linear in i)
> and it is copied by the generalisation and particularisation for each i.
>
>
Sorry, this was wrong, the size of the type generated by the example is
a double exponential
without sharing (so it breaks around 5-6 in OCaml) and single
exponential if you share subtypes (then it breaks
for 11-12 in PML).
What I find strange is that even with -rectypes, OCaml does not discover
that it can share subtypes
(as my algorithm in pml does) for this example. May be there is a little
room for improvement for
the (theoretical) complexity of the algorithm in OCaml, but may be it is
useless in practice.
Christophe
PS: if you want to know more about pml, go to
http://www.lama.univ-savoie.fr/~raffalli/pml,
but do not use the tar archive it is outdated, use the darcs repository.
[-- Attachment #1.2: Christophe.Raffalli.vcf --]
[-- Type: text/x-vcard, Size: 380 bytes --]
begin:vcard
fn:Christophe Raffalli
n:Raffalli;Christophe
org:LAMA (UMR 5127)
email;internet:Christophe.Raffalli@univ-savoie.fr
title;quoted-printable:Ma=C3=AEtre de conf=C3=A9rences
tel;work:+33 4 79 75 81 03
note;quoted-printable:Message sign=C3=A9 cryptographiquement avec pgp, la clef publique est sur=
subkeys.pgp.net
x-mozilla-html:TRUE
version:2.1
end:vcard
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
prev parent reply other threads:[~2007-08-29 16:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 13:18 Pietro Abate
2007-08-28 21:21 ` [Caml-list] " David Allsopp
2007-08-29 0:56 ` Daniel de Rauglaudre
2007-08-29 10:57 ` Christophe Raffalli
2007-08-29 14:58 ` Oliver Bandel
2007-08-29 15:48 ` Daniel de Rauglaudre
2007-08-29 16:15 ` Christophe Raffalli [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=46D59B8B.1020403@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@inria.fr \
--cc=daniel.de_rauglaudre@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