heron_carvalho at bol.com.br
Mon Oct 27 14:28:00 EST 2003
thanks for your answer.
In the distributed parallel extension that we are
developing, programmers are free to use immutable or
mutable arrays and to transmit them between processes
(the language have mechanisms to make transparent
send/recv operations). Thus, it is important to give
efficient marshalling for any array type. With
StorableArrays, GHC offers good support, but for
immutable arrays types, we have to copy element by
element (worse performance).
But someone can explain how unboxed arrays are stored
in memory ?
> 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 ?) t
> > access DIRECTLY an array of UArray type (immutable) i
> > sequential contiguous memory buffer (in C side, for
> > example) without to need to copy the array elements o
> > by one ? GHC hackers and implementors are wellcome...
> > My interest is to transmit the array over a network u
> > MPI, but avoiding marshalling overheads.
> > It is easy to do this with StorableArray's in the
> > 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 at haskell.org
> > http://www.haskell.org/mailman/listinfo/glasgow-
> Hal Daume III | hdau
me at isi.edu
> "Arrest this man, he talks in maths." | www.
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
More information about the Glasgow-haskell-users