martinnowak / bloom Goto Github PK
View Code? Open in Web Editor NEWA basic bloom filter.
License: MIT License
A basic bloom filter.
License: MIT License
Hello,
By reading the code, I couldn't get where you define nentries, as it is not passed in argument in the constructor.
Second, how could we define two bloom filters ?
Does it use mmap ?
Thanks
Not sure whereas this is a Dub or a bloom issue TBH, figured you might have some insight.
Running on MacOSX 10.13.5, DUB version 1.10.0, built on Jul 4 2018
from Homebrew, DMD64 D Compiler v2.081.0
also from Homebrew.
I did a dub init .
, added Bloom as dependency (1.0.1 selected) and ended up with the standard dub.json
.
Main and only source file is:
import bloom;
import std.stdio;
void main ()
{
auto filter = BloomFilter!8(2048);
pragma(msg, typeof(filter).sizeof);
writeln("Hello world");
}
Once again, nothing surprising. However, when building:
$ dub :(
Performing "debug" build using dmd for x86_64.
bloom 1.0.1: target for configuration "library" is up to date.
bloomtest ~master: building configuration "application"...
16LU
../../.dub/packages/bloom-1.0.1/bloom/src/bench.d(20,5): Error: only one main allowed. Previously found main at source/app.d(5,6)
dmd failed with exit code 1.
I tried to add the following to my dub.json
, to no avail:
"subConfigurations": {
"bloom": "library"
},
(AFAICS, it should be the default anyway).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.