An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/yourbasic/bloom

Package bloom provides a Bloom filter implementation. A Bloom filter is a fast and space-efficient probabilistic data structure used to test set membership. A membership test returns either ”likely member” or ”definitely not a member”. Only false positives can occur: an element that has been added to the filter will always be identified as ”likely member”. The probabilities of different outcomes of a membership test at a false-positives rate of 1/100 are: Elements can be added, but not removed. With more elements in the filter, the probability of false positives increases. A full filter with a false-positives rate of 1/p uses roughly 0.26ln(p) bytes per element and performs ⌈1.4ln(p)⌉ bit array lookups per test: Each membership test makes a single call to a 128-bit hash function. This improves speed without increasing the false-positives rate as shown by Kirsch and Mitzenmacher. This implementation is not intended for cryptographic use. The internal data representation is different for big-endian and little-endian machines. The Basics example contains a typcial use case: a blacklist of shady websites. Build a blacklist of shady websites.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20170602163913-04a87e707a81
almost 9 years ago
Versions
1
Dependent Repos
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/yourbasic/bloom
spec
License BSD-2-Clause
Namespace github.com/yourbasic
First Release almost 9 years ago
Last Synced 4 days ago
Repository
Stars 87 on GitHub
Forks 9 on GitHub
Rankings on proxy.golang.org
Overall Top 6.4%
Dependent repos Top 4.8%
Forks Top 6.4%