HP 2012.4.0.0 -- Call for Proposals

Gregory Collins greg at gregorycollins.net
Tue Aug 28 14:06:32 CEST 2012


On Tue, Aug 28, 2012 at 12:07 PM, Ivan Lazar Miljenovic <
ivan.miljenovic at gmail.com> wrote:

> On 28 August 2012 19:26, Simon Peyton-Jones <simonpj at microsoft.com>
> wrote:Admittedly, my quick sample of those packages makes it seem like they
> only use primitive _for_ dealing with vector (as in all the packages I
> looked at also had vector as a dep).
>

I use primitive for its MutableArray directly inside the hashtables package
if the bounds checking is turned off (the default):
https://github.com/gregorycollins/hashtables/blob/master/src/Data/HashTable/Internal/Array.hs,
and also for MutableByteArray:
https://github.com/gregorycollins/hashtables/blob/master/src/Data/HashTable/Internal/IntArray.hs

The types from primitive have less overhead than vector, which is important
for some of my use cases.

G
-- 
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20120828/31d41dc8/attachment.htm>


More information about the Libraries mailing list