Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Is anyone using caml for music or sound synthesis?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-09 (08:28)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Is anyone using caml for music or sound synthesis?
On Fri, 09 Aug 2002, Nicolas Cannasse wrote:
> Yes but such algorithms are making a large use of float calculations, and
> ocaml float are boxed into a block, so such calcs could trigger multiples
> allocations.

It's true that this can deteriorate performance in the general case,
but note that the compiler performs a fair amount of unboxing (e.g.
float arrays when the compiler can see the float type). This usually makes
numeric code run surprisingly fast in OCaml. If you know the details, you
can most often write your code in such a way that it performs efficiently.
Then it really isn't much worse than C.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: