talira

Efficient Int-indexed arrays for Haskell, mutable and immutable, with loop fusion

open sourceBSD-3-Clausefree

vector is the standard Haskell library for efficient Int-indexed arrays, both immutable and mutable. It has boxed vectors of any type, unboxed vectors with an adaptive representation, Storable vectors for passing memory to C, primitive vectors and a generic interface over them all, with a stream fusion framework that removes intermediate arrays from chains of operations.

Problems it solves

  • Haskell lists are too slow for large numeric arrays
  • fast unboxed arrays of Doubles or Ints in Haskell
  • pass a contiguous array from Haskell to a C function without copying
  • mutable arrays I can update in place inside ST or IO in Haskell

Alternatives

The same job

These do what vector does.

  1. primitive Primitive memory-related operations for Haskell

Compare vector with the top 3