HP 2012.4.0.0 -- Call for Proposals
johan.tibell at gmail.com
Tue Aug 28 22:43:48 CEST 2012
On Tue, Aug 28, 2012 at 2:26 AM, Simon Peyton-Jones
<simonpj at microsoft.com> wrote:
> · Absorb it into the vector package, which is currently its only
> client (we think).
We definitely need a library like primitive to share code among other
libraries. I think that package might as well be primitive. To my
knowledge there are at least three, nearly-identical wrappers of the
GHC array primops: one primitive (used by vector), one in text, and
one in unordered-containers.
The reason that these libraries cannot use the array or bytestring
libraries as wrappers over Array# and ByteArray# is that design
trade-offs made in these two libraries are not always what you want:
* Arrays are too big and use a (relatively) inefficient indexing scheme.
* ByteStrings are too big and also have a somewhat inefficient
indexing schemes. They're also pinned.
More information about the Libraries