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 1D81DBC8B for ; Tue, 8 Feb 2005 19:34:22 +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 j18IYLND023915 for ; Tue, 8 Feb 2005 19:34:21 +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 TAA01387 for ; Tue, 8 Feb 2005 19:34:21 +0100 (MET) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j18IYJq0026729; Tue, 8 Feb 2005 19:34:20 +0100 Received: from [192.168.1.200] (ppp212-197.lns2.syd3.internode.on.net [203.122.212.197]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j18IY5YV077929; Wed, 9 Feb 2005 05:04:17 +1030 (CST) Subject: Re: [Caml-list] [Benchmark] NBody From: skaller Reply-To: skaller@users.sourceforge.net To: Xavier Leroy Cc: Christophe TROESTLER , "O'Caml Mailing List" In-Reply-To: <20050208102513.GB9033@yquem.inria.fr> References: <20050207.195724.87945401.Christophe.Troestler@umh.ac.be> <1107826151.13571.199.camel@pelican.wigram> <20050208102513.GB9033@yquem.inria.fr> Content-Type: text/plain Message-Id: <1107887644.5022.229.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 09 Feb 2005 05:34:05 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4209062D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4209062B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 wrote:01 mutable:01 mutable:01 ocaml:01 ocaml:01 minor:01 unboxed:01 glebe:01 25,:98 061:98 nsw:01 floats:01 data:02 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:25, Xavier Leroy wrote: > > > type planet = { > > > mutable x : float; mutable y : float; mutable z : float; > > > mutable vx: float; mutable vy: float; mutable vz: float; > > > mass : float; > > > } > > > > Advice from old FORTRAN hacker: > > > > This is a bad data structure for Ocaml. > > Advice from an old Caml hacker: this is an excellent data structure > for OCaml. > > Second advice from an old Caml hacker: don't trust John Skaller's > technical advice too much. John often has preconceptions about what > Caml is, or does, or "must" do (in his mind), which bear > no connections with reality. That would be a minor annoyance except > for the very authoritative, expert-like tone in which these > preconceptions are assessed, which can mislead non-expert readers. Indeed you are right, I did not notice that the record type was all floats and might be unboxed. I apologise for speaking with an authority I don't have. -- 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