[Haskell-cafe] Fun with ByteStrings [was: A very edgy language]

Andrew Coppin andrewcoppin at btinternet.com
Sun Jul 8 13:38:18 EDT 2007


Bulat Ziganshin wrote:
> Hello Andrew,
>
>   
>> Anyone have any comments on how ByteString is different from, say,
>> UArray Word8?
>>     
>
> mainly, algorithms implemented. the only technical difference is that
> UArray uses ByteArray# and ByteString uses PinnedByteArray#, which has
> different behavior in GC
>   

I just wish I could have all that ByteString goodness without being 
limited to only having Word8 to play with. :-(

(E.g., the inverse BWT makes use of positive integers that are likely to 
be way bigger than 255. But there isn't a fast packed Word16 or Word32 
array I can use there...)



More information about the Haskell-Cafe mailing list