
Dear colleagues, In GHC/FFI, is there some way (is it possible ?) to access DIRECTLY an array of UArray type (immutable) in a sequential contiguous memory buffer (in C side, for example) without to need to copy the array elements one by one ? GHC hackers and implementors are wellcome... :-) My interest is to transmit the array over a network using MPI, but avoiding marshalling overheads. It is easy to do this with StorableArray's in the IO monad, of course, but I need to use UArray. Heron de Carvalho __________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br/

AFAIK, no. That's the whole point of StorableArrays. Why can't you use these instead of UArrays? - Hal On Mon, 27 Oct 2003, heron_carvalho wrote:
Dear colleagues,
In GHC/FFI, is there some way (is it possible ?) to access DIRECTLY an array of UArray type (immutable) in a sequential contiguous memory buffer (in C side, for example) without to need to copy the array elements one by one ? GHC hackers and implementors are wellcome... :-) My interest is to transmit the array over a network using MPI, but avoiding marshalling overheads.
It is easy to do this with StorableArray's in the IO monad, of course, but I need to use UArray.
Heron de Carvalho
__________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br/
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
-- Hal Daume III | hdaume@isi.edu "Arrest this man, he talks in maths." | www.isi.edu/~hdaume
participants (2)
-
Hal Daume III
-
heron_carvalho