Browse thread
Comparison of OCaml and MLton for numerics
- Yuanchen Zhu
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Loup Vaillant <loup.vaillant@g...> |
| Subject: | Re: [Caml-list] Comparison of OCaml and MLton for numerics |
2007/5/31, Jon Harrop <jon@ffconsultancy.com>: > > OCaml only handles 64-bit floats because there is no point in computing with > 32-bit floats any more. However, there is point in storing 32-bit floats as, > when you have a lot of them, your program uses half as much heap and is twice > as cache coherent. My ray tracer is an excellent example of a program that > can benefit from this. Talking about lots of float, I suppose you meant arrays. 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? (note: I know little about bigarrays, and nothing about your code) Cheers, Loup