[Haskell-beginners] Which haskell array implementation to use? AKA what are the pros and cons of each

Ben Lippmeier benl at ouroborus.net
Fri Mar 11 03:55:37 CET 2011


On 11/03/2011, at 5:53 AM, Rohit Garg wrote:

> I am reposting the question I posted here
> 
> http://stackoverflow.com/questions/5196394/which-haskell-array-implementation-to-use-aka-what-are-the-pros-and-cons-of-each
> 
> I am somewhat surprised at the answers. It could be that I didn't pose
> it very well, but I was surprised nonetheless to know that the present
> array library in Platform is considered horrendous, the suggested
> version (Data.Vector) can't parallelize operations over boxed arrays
> and the repa one (which actually does boxed arrays) doesn't work with
> any stable build as of today.
> 
> I only need
> -> very easy parallelization
> -> map/filter type operations
> -> support for matrices
> 
> Any help would be much appreciated.

The HEAD version of Repa [1] works with 7.0.2, but caveat emptor. It also only works with primitive types like Int, Float etc, and Tuples of them -- though that can be fixed. There is some latent support for parallel filter operations, but it's not finished.  I'll be able to do a proper release for 7.0.2 after the ICFP deadline. 

Ben.

[1] http://code.ouroborus.net/repa/








More information about the Beginners mailing list