Re: GreenCard: list marshalling

2002-06-03 Thread Alastair Reid
[EMAIL PROTECTED] writes: > Now I'm going to check whether the garbage collector works: both the > Haskell and the C representation won't fit in memory... If you're using a foreign library to process very large datasets (e.g., image processing, large matrix operations, etc.) it's usual to keep t

Re: GreenCard: list marshalling

2002-06-03 Thread Ferenc Wagner
Alastair Reid <[EMAIL PROTECTED]> writes: > Here's some code from the Xlib interface: hslibs/xlib/Xlib.gc > (This code is part of the HGL (http://haskell.org/graphics).) [...] > Hope this helps, It helped much. Thanks for the comments, especially. Now I'm going to check whether the garbage c

Re: GreenCard: list marshalling

2002-06-03 Thread Alastair Reid
>Hi, I'd like to call LaPack routines from Haskell. > Having read the GreenCard documentation it's still not obvious to me > how I could marshall a list of numbers to C. Surely it's possible > to create a ForeignObj, then fill it in element-by- element. But > isn't there a more

Re: GreenCard: list marshalling

2002-06-03 Thread Ferenc Wagner
Hal Daume III <[EMAIL PROTECTED]> writes: > Well, you could just use Ptr Double to mimick c arrays and > define conversion functions. I'm currently porting BLAS > and LAPACK to Haskell and this is what I do. Great! Can you show me what you have done so far? It is urgent for me, but I need one

Re: GreenCard: list marshalling

2002-06-02 Thread Hal Daume III
Well, you could just use Ptr Double to mimick c arrays and define conversion functions. I'm currently porting BLAS and LAPACK to Haskell and this is what I do. -- Hal Daume III "Computer science is no more about computers| [EMAIL PROTECTED] than astronomy is about telescopes." -Dijkstra

GreenCard: list marshalling

2002-06-02 Thread Ferenc Wagner
Hi, I'd like to call LaPack routines from Haskell. Having read the GreenCard documentation it's still not obvious to me how I could marshall a list of numbers to C. Surely it's possible to create a ForeignObj, then fill it in element-by- element. But isn't there a more straightf