Bulat Ziganshin wrote:
Hello Brian,

Sunday, November 26, 2006, 5:34:51 PM, you wrote:

For a 3d graphics library, I'd like to have a 4x4 matrix of floats
which I can pass from Haskell to C without having to copy all 16
floats each time, something like:

http://haskell.org/haskellwiki/Modern_array_libraries

you should use StorableArray. also, i suggest you to use ghc 6.6
because it has much faster foreign ptrs implementation. you may also
consider using my ArrayRef lib, although from that you said i don't
see that you will get any advantages from this

Hi Bulat -
Thanks for the suggestion and the link to that page - the info on it is very useful,

Brian.
--
http://www.metamilk.com
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to