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: | Yuanchen Zhu <yzhu@f...> |
| Subject: | Re: [Caml-list] Comparison of OCaml and MLton for numerics |
> > > As I can autogenerate my code, I would much rather the OCaml developers > > > concentrated on things that I cannot get around, like the lack of a > > > 32-bit float storage type and a more efficient internal representation of > > > complex numbers. > > > > That sounds very interesting. Could you elaborate or give an example? > > Complex numbers are unboxed in OCaml. If they were equivalent to a C struct > then performance would be much better. > > 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. > Umm sorry. I mean the autogeneration part.