From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 02778BC0A for ; Sun, 31 Dec 2006 23:51:29 +0100 (CET) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id kBVMpOe5012890 for ; Sun, 31 Dec 2006 23:51:27 +0100 Received: (qmail 30142 invoked from network); 31 Dec 2006 22:51:19 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 31 Dec 2006 22:51:19 -0000 Received: from coltrane (coltrane [192.168.1.101]) by coltrane.mega-nerd.net (Postfix) with SMTP id DC5CC7B6B for ; Mon, 1 Jan 2007 09:51:14 +1100 (EST) Date: Mon, 1 Jan 2007 09:51:14 +1100 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha Message-Id: <20070101095114.911ca90d.mle+ocaml@mega-nerd.com> In-Reply-To: <20061231110831.GA21198@furbychan.cocan.org> References: <20061222155407.ebe6c272.mle+ocaml@mega-nerd.com> <45923DC2.9000504@ujf-grenoble.fr> <20061227211046.656615d0.mle+ocaml@mega-nerd.com> <20061231080756.66e89d6c.mle+ocaml@mega-nerd.com> <1167535885.27287.66.camel@rosella.wigram> <20061231152305.694fd3e9.mle+ocaml@mega-nerd.com> <20061231110831.GA21198@furbychan.cocan.org> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45983EEC.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 bigarray:01 1.0:98 wrote:01 wrote:01 caml-list:01 data:02 data:02 floats:02 float:03 float:03 erik:04 erik:04 dec:05 Richard Jones wrote: > On Sun, Dec 31, 2006 at 03:23:05PM +1100, Erik de Castro Lopo wrote: > > Since it is already possible to read Ocaml floats (which are normalised > > to the range [-1.0, 1.0]) why would anyone want to ready any other data > > type? > > Two reasons I can think of[*]: (a) to avoid copying, (b) to make an > exact reproduction (without the conversion to and from float). Well the amount of copying is the same whether I use bigarray or a standard Ocaml float array so (a) is irrelevant. Point (b) does make some sense in that someone might want to open a file, seek to position A, read data from position A to position B, writing the read data to a new file. An important criteria might well be that the copied section of data be identical in source and destinations files. However, using Ocaml float data this would actually be the case. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Hamas: Islam will conquer US and Britain." -- http://www.pmw.org.il/LatestBulletins.htm#b220606