Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Operators for Int64 and Int32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Operators for Int64 and Int32
Richard Jones wrote:

> I know that libsndfile is written in C, but I'd be interested to know
> how much bitmatch
> (http://et.redhat.com/~rjones/bitmatch/html/Bitmatch.html) might or
> might not make a putative OCaml version easier to write.

The hard bit has almost nothing to do with programming language
and almost everything to do with WAVE (and AIFF and all the other
formats) being extremely poorly and/or loosely specified, with
over 100 data encoding variants and dozens of broken implementations
in the field.

Very early in the libsndfile development process I came up with
a good way of packing and unpacking the headers (ie effectively 
the same  functionality as bitmatch) and everything has been 
built on top of that.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"You can have quality software, or you can have pointer arithmetic;
but you cannot have both at the same time." -- Bertrand Meyer, 1989