Coder Social home page Coder Social logo

Bloom Filter about talek HOT 3 CLOSED

ryscheng avatar ryscheng commented on June 6, 2024
Bloom Filter

from talek.

Comments (3)

willscott avatar willscott commented on June 6, 2024

Golang implementation: https://github.com/bjarneh/bloomfilter

from talek.

willscott avatar willscott commented on June 6, 2024

The current bloom filter seems to fail when running go test in libpdb on the pipelined-pir branch.

--- FAIL: TestGeneratePublish (0.02s)
panic: runtime error: integer divide by zero [recovered]
	panic: runtime error: integer divide by zero
[signal 0x8 code=0x1 addr=0x53a444 pc=0x53a444]

goroutine 7 [running]:
panic(0x860c20, 0xc82000a100)
	/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
testing.tRunner.func1(0xc82007a510)
	/usr/lib/go-1.6/src/testing/testing.go:467 +0x192
panic(0x860c20, 0xc82000a100)
	/usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9
github.com/ryscheng/pdb/bloom.(*BloomFilter).Add(0xc8200bb4c0, 0xc820039d7c, 0x14, 0x14, 0x1)
	github.com/ryscheng/pdb/bloom/bloom.go:134 +0x114
github.com/ryscheng/pdb/libpdb.(*Topic).GeneratePublish(0xc820088280, 0xc820049e60, 0x1, 0xc82002b400, 0x400, 0x400, 0x0, 0x0, 0x0)
	github.com/ryscheng/pdb/libpdb/topic.go:95 +0x4bc
github.com/ryscheng/pdb/libpdb.TestGeneratePublish(0xc82007a510)
	github.com/ryscheng/pdb/libpdb/topic_test.go:55 +0x3ca

from talek.

willscott avatar willscott commented on June 6, 2024

fixed in 99ca1d9. the test wasn't making a correct WindowSize() Bloom filter seems to be working fine.

from talek.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.