From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4D564BC88 for ; Tue, 8 Feb 2005 17:36:44 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j18GahMO009936 for ; Tue, 8 Feb 2005 17:36:43 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA29705 for ; Tue, 8 Feb 2005 17:36:43 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j18Gafaw010453 for ; Tue, 8 Feb 2005 17:36:42 +0100 Received: from [192.168.1.200] (ppp212-197.lns2.syd3.internode.on.net [203.122.212.197]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j18GaN84039228; Wed, 9 Feb 2005 03:06:33 +1030 (CST) Subject: Re: [Caml-list] [Benchmark] NBody From: skaller Reply-To: skaller@users.sourceforge.net To: Ville-Pertti Keinonen Cc: "Will M. Farr" , "O'Caml Mailing List" , Christophe TROESTLER In-Reply-To: <1107857459.654.29.camel@localhost> References: <20050207.195724.87945401.Christophe.Troestler@umh.ac.be> <1107826151.13571.199.camel@pelican.wigram> <80eb59bd970cd828d562f79e8eb565bf@mit.edu> <1107855477.2555.95.camel@pelican.wigram> <1107857459.654.29.camel@localhost> Content-Type: text/plain Message-Id: <1107880582.5022.114.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 09 Feb 2005 03:36:22 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4208EA9B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4208EA99.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 wrote:01 wrote:01 mutable:01 arrays:01 mutable:01 arrays:01 pointers:01 unboxed:01 indirection:01 glebe:01 061:98 nsw:01 floats:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Tue, 2005-02-08 at 21:10, Ville-Pertti Keinonen wrote: > On Tue, 2005-02-08 at 20:37 +1100, skaller wrote: > > But the types in your record are mutable, and so it can't > > possibly work. > > > > In particular, given two arrays of a record type R containing > > a mutable field M, the arrays MUST uses boxes or modifications > > to M in a shared record wouldn't be shared. > > You're apparently talking about an array of records (which obviously > contains pointers to the records), but the issue (I think) was the > records themselves, which store floats unboxed if they contain nothing > else. Yes, you're right. In the problem, just one level of indirection wouldn't hurt as much as the numbers seem to indicate. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net