caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Yitzhak Mandelbaum <yitzhakm@cs.princeton.edu>
Cc: Caml-list List <caml-list@inria.fr>
Subject: Re: [Caml-list] float array/record unboxing
Date: Mon, 11 May 2009 14:49:16 -0400	[thread overview]
Message-ID: <f8560b80905111149g7acfff67q32a79519b7a96b2c@mail.gmail.com> (raw)
In-Reply-To: <FCF3D545-5CAA-4290-96EF-395D9160E91D@cs.princeton.edu>

On Mon, May 11, 2009 at 13:49, Yitzhak Mandelbaum
<yitzhakm@cs.princeton.edu> wrote:
> Does anyone know whether float arrays/records are unboxed if float is used
> to instantiate a  type parameter? E.g.
[snip]

Since functor applications are currently not inlined, the generated
code for the functor body has no way of seeing that its dealing with
an all-floats record.  Hence the record will contain boxed floats.

> Is M.foo an unboxed array of floats (as per Chapter 18.3.2 in the manual) or
> not? Empirical evidence suggests that the floats *are* boxed. If this is the
> case, can anyone point me to where this feature is documented?

I don't think this is documented anywhere, since this is an
implementation detail that (though unlikely) might even change in the
future.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com


  reply	other threads:[~2009-05-11 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 17:49 Yitzhak Mandelbaum
2009-05-11 18:49 ` Markus Mottl [this message]
2009-05-11 20:30   ` [Caml-list] " malc

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=f8560b80905111149g7acfff67q32a79519b7a96b2c@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=yitzhakm@cs.princeton.edu \
    /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).