From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,MAILTO_TO_SPAM_ADDR autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id B4719BC37 for ; Mon, 11 May 2009 22:30:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokDADsnCEpN6B+lgGdsb2JhbACBUJU+AQEUJLVCgX9rgRgF X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="29113973" Received: from fe02x03-cgp.akado.ru (HELO akado.ru) ([77.232.31.165]) by mail1-smtp-roc.national.inria.fr with ESMTP; 11 May 2009 22:30:19 +0200 Received: from [10.0.66.9] ([10.0.66.9] verified) by fe02-cgp.akado.ru (CommuniGate Pro SMTP 5.2.13) with ESMTP id 54822060; Tue, 12 May 2009 00:30:18 +0400 Date: Tue, 12 May 2009 00:30:17 +0400 (MSD) From: malc X-X-Sender: malc@linmac.oyster.ru To: Markus Mottl Cc: Yitzhak Mandelbaum , Caml-list List Subject: Re: [Caml-list] float array/record unboxing In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="33734824-2064913841-1242073817=:2840" X-Spam: no; 0.00; malc:01 unboxing:01 unreadable:01 mime-aware:01 markus:01 mottl:01 yitzhak:01 mandelbaum:01 arrays:01 unboxed:01 functor:01 inlined:01 functor:01 foo:01 unboxed:01 X-Attachments: cset="koi8-r" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --33734824-2064913841-1242073817=:2840 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 11 May 2009, Markus Mottl wrote: > On Mon, May 11, 2009 at 13:49, Yitzhak Mandelbaum > wrote: > > Does anyone know whether float arrays/records are unboxed if float is u= sed > > to instantiate a =9Atype parameter? E.g. > [snip] >=20 > 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. >=20 > > Is M.foo an unboxed array of floats (as per Chapter 18.3.2 in the manua= l) or > > not? Empirical evidence suggests that the floats *are* boxed. If this i= s the > > case, can anyone point me to where this feature is documented? >=20 > I don't think this is documented anywhere, since this is an > implementation detail that (though unlikely) might even change in the > future. This reminded me of a question i asked, what seemed like a jiffy ago: http://groups.google.com/group/fa.caml/browse_thread/thread/e5e0d989e53de0a= 1/c64a14722acb0153?hl=3Den Given what have been said in that thread the detail becomes worthy of a mention somewhere. --=20 mailto:av1474@comtv.ru --33734824-2064913841-1242073817=:2840--