ANN: data-dword: Long binary words from short ones
mikhail.vorozhtsov at gmail.com
Thu Oct 11 13:55:56 CEST 2012
On 10/11/2012 06:09 PM, Henning Thielemann wrote:
> On Thu, 11 Oct 2012, Mikhail Vorozhtsov wrote:
>> I'm pleased to announce my new little library, data-dword. It
>> provides Template Haskell utilities for defining binary word data
>> types from low and high halves, e.g.
>> data Word96 = Word96 Word32 Word64 -- strictness is configurable
>> data Int96 = Int96 Int32 Word64
> What is the advantage over 'largeword' which does the same with plain
> Haskell 98?
1) Control over strictness of the halves
2) Signed types
3) Extra instances/operations
4) Probably faster, due to specialization/inlining/rewrite rules.
5) Test suite
More information about the Libraries