Version française
Home     About     Download     Resources     Contact us    
Browse thread
Comparison of OCaml and MLton for numerics
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Comparison of OCaml and MLton for numerics
On Thursday 31 May 2007 11:25:40 Loup Vaillant wrote:
> Talking about lots of float, I suppose you meant arrays.

Not necessarily big arrays. Look at the ray tracer, for example:

  http://www.ffconsultancy.com/languages/ray_tracer/

Lots of float^3 vectors, float * float^3 spheres and so on.

> In that case, 
> can't you use the bigarray module? Or does the overhead of the FFI
> cancel out the benefit of the improved cache coherency?

I couldn't get big arrays to give better performance here.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e