bitwise: fast multi-dimensional unboxed bit packed Bool arrays

[ bit-vectors, bsd3, data, data-structures, library ] [ Propose Tags ]

Unboxed multidimensional bit packed Bool arrays with fast aggregate operations based on lifting Bool operations to bitwise operations.

There are many other bit packed structures out there, but none met all of these requirements:

  1. unboxed bit packed Bool array,

  2. multi-dimensional indexing,

  3. fast (de)serialization, or interoperable with foreign code,

  4. fast aggregate operations (fold, map, zip).

Quick tour of the bitwise library:

Data.Bits.Bitwise
Lift boolean operations on Bool to bitwise operations on Data.Bits.Bits.
Data.Array.BitArray
Immutable bit arrays.
Data.Array.BitArray.ST
Mutable bit arrays in Control.Monad.ST.ST.
Data.Array.BitArray.IO
Mutable bit arrays in IO.
Data.Array.BitArray.ByteString
(De)serialization.
Codec.Image.PBM
Portable bitmap monochrome 2D image format.

Very rough performance benchmarks:


[Skip to Readme]
Versions [faq] 0.1, 0.1.0.1, 0.1.0.2, 0.1.1, 0.1.1.1, 0.2, 1.0.0.1
Dependencies array, base (>=2 && <4.12), bytestring [details]
License BSD-3-Clause
Copyright (c) 2012,2016 Claude Heiland-Allen
Author Claude Heiland-Allen
Maintainer claude@mathr.co.uk
Revised Revision 2 made by ClaudeHeilandAllen at Tue Mar 13 21:13:13 UTC 2018
Category Data, Data Structures, Bit Vectors
Home page https://code.mathr.co.uk/bitwise
Source repo head: git clone https://code.mathr.co.uk/bitwise.git
this: git clone https://code.mathr.co.uk/bitwise.git(tag v0.1.1.1)
Uploaded by ClaudeHeilandAllen at Thu May 26 10:59:49 UTC 2016
Distributions NixOS:1.0.0.1
Downloads 4750 total (114 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-05-26 [all 1 reports]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for bitwise-0.1.1.1

[back to package description]
Interactive interpreted usage without having installed first
requires adding a search path for the respective environment:

  hugs -98 -P:src:hugs98
  ghci-7.0.4 -isrc:ghc70
  ghci-7.4.1 -isrc:ghc74

ghc < 7 has not been tested, reports welcome.