caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Frederic De Jaeger <Frederic.De.Jaeger@ens.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] strange behaviour  with variants and "cannot be g eneralized"
Date: 10 Sep 2003 13:34:25 +0200	[thread overview]
Message-ID: <yrvekyozxku.fsf@cedre.ens.fr> (raw)
In-Reply-To: <1063187322.2119.118.camel@localhost.localdomain>


skaller> They not only allow more accurate typing,
skaller> they're also *faster*. For example,
skaller> consider a restriction of a term type
skaller> in which rewriting rules reduce some 
skaller> sugars to lower level primitive
skaller> (for example macro expansion).

[example skipped]

That's right, in this case they are faster.  But the pattern matching
against polymorphic variants is slightly slower than the
non-polymorphic ones.  The later can be compiled as a parametric
jump. 

Cheers,

  Frédéric De Jaeger

-------------------
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:[~2003-09-10 11:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-10  7:10 Beck01, Wolfgang
2003-09-10  8:12 ` Fernando Alegre
2003-09-10  8:18 ` Jacques Garrigue
2003-09-10 10:39   ` skaller
2003-09-10  9:48 ` skaller
2003-09-10 11:34   ` Frederic De Jaeger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-09-09 14:13 Beck01, Wolfgang
2003-09-09 19:17 ` Didier Remy

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=yrvekyozxku.fsf@cedre.ens.fr \
    --to=frederic.de.jaeger@ens.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;
as well as URLs for NNTP newsgroup(s).