Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Benchmark] NBody
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] [Benchmark] NBody
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