[Haskell-cafe] Re: New OpenGL package: efficient way to convert datatypes?

Achim Schneider barsoap at web.de
Fri Mar 5 08:30:11 EST 2010

Nick Bowler <nbowler at elliptictech.com> wrote:

> I meant to say that "fromRational . toRational" is not appropriate for
> converting values from one floating point type to another floating
> point type.

It gets even worse: My GPU doesn't know about doubles and its floats
aren't IEEE, at all (not that Haskell Doubles are guaranteed to be IEEE

I think the situation calls for a split interface: One to satisfy the
numericists / scientific IEEE users, and one to satisfy performance.

(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.

More information about the Haskell-Cafe mailing list