Popularity
6.6
Growing
Activity
3.0
-
8
4
8
Monthly Downloads: 132
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.1
murmur-hash alternatives and similar packages
Based on the "Data" category.
Alternatively, view murmur-hash alternatives based on common mentions on social networks and blogs.
-
semantic-source
Parsing, analyzing, and comparing source code across many languages -
lens
Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens -
code-builder
Packages for defining APIs, running them, generating client code and documentation. -
text
Haskell library for space- and time-efficient operations over Unicode text. -
cassava
A CSV parsing and encoding library optimized for ease of use and high performance -
unordered-containers
Efficient hashing-based container types -
compendium-client
Mu (μ) is a purely functional framework for building micro services. -
holmes
A reference library for constraint-solving with propagators and CDCL. -
resource-pool
A high-performance striped resource pooling implementation for Haskell -
primitive
This package provides various primitive memory-related operations. -
binary
Efficient, pure binary serialisation using ByteStrings in Haskell. -
discrimination
Fast linear time sorting and discrimination for a large class of data types -
IORefCAS
A collection of different packages for CAS based data structures. -
audiovisual
Extensible records, variants, structs, effects, tangles -
dependent-sum
Dependent sums and supporting typeclasses for comparing and displaying them -
reflection
Reifies arbitrary Haskell terms into types that can be reflected back into terms -
dependent-map
Dependently-typed finite maps (partial dependent products) -
safecopy
An extension to Data.Serialize with built-in version control -
orgmode-parse
Attoparsec parser combinators for parsing org-mode structured text! -
scientific
Arbitrary-precision floating-point numbers represented using scientific notation -
streaming
An optimized general monad transformer for streaming applications, with a simple prelude of functions -
text-icu
This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of murmur-hash or a related project?
README
murmur-hash
A simple, Haskell-only implementation of MurmurHash2.
Two variants are provided: 32 bit and 64 bits. We do not simply use the machine word size since the bit width of the hash determines the collision probability which should stay under user control.
Example Usage
Generating hashes:
$ import Data.Digest.Murmur32
$ hash32 "foo" ==> Hash32 0xd2d0a99a
$ hash32 "foa" ==> Hash32 0x7d544e71
$ hash32WithSeed 42 "foo" ==> Hash32 0x7a69563b
Custom instances:
data Foo a = Foo a | Bar String
instance Hashable32 a => Hashable32 (Foo a) where
hash32Add (Bar s) = hash32AddInt 1 `combine` hash32Add s
hash32Add (Foo a) = hash32AddInt 2 `combine` hash32Add a