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=AWL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 58F8EBC0A for ; Thu, 18 Jan 2007 15:03:18 +0100 (CET) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0IE3HGj025979 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 18 Jan 2007 15:03:18 +0100 Received: from [80.229.56.224] (helo=[10.0.0.5]) by ptb-relay01.plus.net with esmtp (Exim) id 1H7XrH-0000xS-0r for caml-list@yquem.inria.fr; Thu, 18 Jan 2007 14:03:15 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Announce: glome-0.2 (ocaml-based raytracer) Date: Thu, 18 Jan 2007 14:01:37 +0000 User-Agent: KMail/1.9.5 References: <45A6E34A.6040007@cs.pdx.edu> <200701152259.10598.jon@ffconsultancy.com> <45AF4C0C.9030903@cs.pdx.edu> In-Reply-To: <45AF4C0C.9030903@cs.pdx.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701181401.38162.jon@ffconsultancy.com> X-Miltered: at discorde with ID 45AF7E25.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml's:01 ocaml:01 pointer:01 bigarray:01 ocaml:01 1.5:98 frog:98 wrote:01 caml-list:01 data:02 caml:02 objective:02 floats:02 float:03 types:03 On Thursday 18 January 2007 10:29, Jim Snow wrote: > > What is the memory use of my version like? > > About 1.5 gigs for the 800k triangle level 4 sphereflake, same as my > version 0.2. I think the memory consumption is elsewhere. Most of the > memory gets consumed as the kdtree is being built. I hit a shortcoming of OCaml's here. For a ray tracer, single-precision floats are fine. But in OCaml you can't mix them with other types in a data structure to save memory, you just use a pointer to a BigArray. I think this is a justification for having float32 in the language. I'll take the rest of the discussion back off list... -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists