From: Cuoq Pascal <cuoq@essi.fr>
To: caml-list@inria.fr
Subject: Re: type recursifs et abreviations cyclique and Co
Date: Tue, 25 Nov 1997 12:30:44 +0100 (MET) [thread overview]
Message-ID: <199711251130.MAA03088@trinquette.essi.fr> (raw)
Jason Hickey wrote :
> 2. The policy imposes a needless efficiency penalty on type
> abstraction.
> [...]
> ocaml will insert an extraneous boxing for each
> occurrence of an item of type x in t. Consider an unlabeled
> abstract binary tree:
>
> type 'a t = ('a option) * ('a option) (* abstract *)
> ...
> type node = X of node t
>
> Every node is boxed, with a space penalty that is
> linear in the number of nodes.
It seems to me that this is an argument for adding an optimization to
ocaml, not to change the typechecking algorithm :)
Pascal
next reply other threads:[~1997-11-26 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-25 11:30 Cuoq Pascal [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-11-25 4:40 Jason Hickey
1997-11-21 14:38 Patch "shared-vm" for ocaml-1.06 Fabrice Le Fessant
1997-11-21 18:26 ` type recursifs et abreviations cyclique and Co Emmanuel Engel
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=199711251130.MAA03088@trinquette.essi.fr \
--to=cuoq@essi.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