[racket-dev] What are single flonums good for?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Wed Sep 12 16:03:08 EDT 2012

On Wed, Sep 12, 2012 at 8:31 AM, Neil Toronto <neil.toronto at gmail.com> wrote:
> Compatibility with C code? Why not have the FFI convert them?
>
> Save space? I can see that. It won't help much if they're sent to math
> library functions, though. Those will convert them to flonums and usually
> box the converted values.

I think these are big deals with respect to libraries that you deliver
large float matrices to where you want to efficiently store a big
f32vector rather than an f64vector. Examples of this include OpenGL
where vector coordinates, colors, etc are typically floats and not
doubles.

Jay

-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93

Posted on the dev mailing list.