Re: [Haskell-cafe] Haskell and arrays

2012-05-05 Thread Yves Parès
Well actually, unless you _really_ need paramterizable indexes (i.e. not only Ints) I don't see reasons to prefer array to vector now. 2012/5/4 Johan Tibell > Hi Morten, > > If speed is really important I would go with the vector package. It > has a more modern API and better performance. > > --

Re: [Haskell-cafe] Haskell and arrays

2012-05-04 Thread Johan Tibell
Hi Morten, If speed is really important I would go with the vector package. It has a more modern API and better performance. -- Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Haskell and arrays

2012-05-04 Thread Morten Olsen lysgaard
I'm a bit confused on what the standard is when it comes to arrays and performance in Haskell. Say I have a function that takes an n dimensional array. The array only contains some primitive type. The function mutates the array in an deterministic but chaotic pattern. The new value of an eleme