Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
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	[thread overview]
Message-ID: <200701181401.38162.jon@ffconsultancy.com> (raw)
In-Reply-To: <45AF4C0C.9030903@cs.pdx.edu>

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


      reply	other threads:[~2007-01-18 14:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12  1:24 Jim Snow
2007-01-12 12:16 ` [Caml-list] " Jon Harrop
2007-01-15 10:30   ` Jim Snow
2007-01-15 18:34     ` brogoff
2007-01-17 23:01     ` Nathaniel Gray
2007-01-17 23:09       ` Jon Harrop
     [not found] ` <200701151206.34251.jon@ffconsultancy.com>
     [not found]   ` <45ABFB4D.3000605@cs.pdx.edu>
     [not found]     ` <200701152259.10598.jon@ffconsultancy.com>
2007-01-18 10:29       ` Jim Snow
2007-01-18 14:01         ` Jon Harrop [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701181401.38162.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox