On Tue, Aug 28, 2012 at 2:26 AM, Simon Peyton-Jones
<simo...@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.

-- Johan

_______________________________________________
Haskell-platform mailing list
Haskell-platform@projects.haskell.org
http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-platform

Reply via email to