|
Re: "FastPackedString" considered harmful: msg#00099lang.haskell.libraries
Data.ByteVector? But I would expect a library called Data.Byte* to deal in terms of Word8s, not Chars. The objective of the operation is to provide a speedier [Char], so I'd be happy with Data.PackedString(.Latin1). Perhaps the ideal structure would be something like (taking up Udo Stenzel's suggestion): Data.StorableVector - data {- Storable w => -} StorableVector w - implements all the FPS operations - convert between ForeignPtr, StorableVector, StorableArray Data.PackedString.Latin1 Data.PackedString.UTF8 - newtype PackedString = PS (StorableVector Word8) Making all the appropriate specialisations happen might be a challenge, though. An intermediate position is to provide Data.ByteVector and Data.PackedString.* defined in terms of that. Cheers, Simon Jean-Philippe Bernardy wrote: How about ByteSequence ? |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Haskell] ANNOUNCE: FPS - FastPackedStrings 0.2: 00099, Donald Bruce Stewart |
|---|---|
| Next by Date: | Re: [Haskell] ANNOUNCE: FPS - FastPackedStrings 0.2: 00099, Simon Marlow |
| Previous by Thread: | Re: "FastPackedString" considered harmfuli: 00099, Jean-Philippe Bernardy |
| Next by Thread: | Re: using ghc with make: 00099, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |