[Haskell-cafe] Re: 64-bit Bloom filters?

Maciej Piechotka uzytkownik2 at gmail.com
Tue Jan 5 10:49:13 EST 2010


On Tue, 2010-01-05 at 16:19 +0100, Ketil Malde wrote:
> Hi,
> 
> I've previously used Bloom filters on 32-bit Linux with some success.
> However, after upgrading to 64 bit, my Bloom filter applications crash
> or misbehave in random ways.
> 
> So: is anybody successfully using Bloom filters on 64 bit computers?
> 
> Although I'm not clear on why it would cause crashes (SEGV, infinite
> looping, etc), my prime suspect is the hashing function used.  This is
> from C and returns a uint32, but it is imported to return a CInt, which
> I suspect is 64 bits.
> 

On 64-bits Int can be either 32 or 64-bit. In theory it can be anything.

It should use Data.Word.Word32

Regards





More information about the Haskell-Cafe mailing list