array-primops: Extra foreign primops for primitive arrays

[ benchmark, bsd3, data, library ] [ Propose Tags ]
Dependencies base (>=4.7 && <5), ghc‑prim (>= [details]
License BSD-3-Clause
Copyright 2015 András Kovács
Author András Kovács
Category Data
Source repo head: git clone
Uploaded by AndrasKovacs at Thu Aug 10 09:28:55 UTC 2017
Distributions NixOS:
Downloads 763 total (12 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-08-10 [all 1 reports]
Hackage Matrix CI

Boxed arrays cannot be allocated without initialization, because in that case the garbage collector would try to follow wild pointers. This is a source of inefficiency; quite a few operations must allocate a new array, initialize it, then overwrite the initial elements with the actually relevant data. This package provides low-level primitives for doing such operations without superfluous copying.




Maintainer's Corner

For package maintainers and hackage trustees