From: Will M Farr <farr@MIT.EDU>
To: Olivier Andrieu <oandrieu@nerim.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Pervasives.{min, max} not specialized to floats by ocamlopt
Date: Fri, 18 Aug 2006 11:37:17 -0400 [thread overview]
Message-ID: <497932C7-3962-43E2-B673-B24FCB6E45E6@MIT.EDU> (raw)
In-Reply-To: <17637.56821.564137.320990@karryall.dnsalias.org>
On Aug 18, 2006, at 11:34 AM, Olivier Andrieu wrote:
> Indeed. That's because min and max are not primitives provided by the
> runtime library but regular caml functions from pervasives.ml :
> ,----
> | let min x y = if x <= y then x else y
> | let max x y = if x >= y then x else y
> `----
In this case, it seems strange that they weren't inlined---when I
defined my own min and max functions, *they* were inlined. Could it
be because I was working inside a functor, or am I mistaken in my
belief that ocaml does cross-module inlining?
Will
next prev parent reply other threads:[~2006-08-18 15:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-17 18:34 Pervasives.{min,max} " Will M Farr
2006-08-18 15:34 ` [Caml-list] Pervasives.{min, max} " Olivier Andrieu
2006-08-18 15:37 ` Will M Farr [this message]
2006-08-18 15:43 ` Shawn
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=497932C7-3962-43E2-B673-B24FCB6E45E6@MIT.EDU \
--to=farr@mit.edu \
--cc=caml-list@inria.fr \
--cc=oandrieu@nerim.net \
/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