Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Hash clash in polymorphic variants
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefan Monnier <monnier@i...>
Subject: Re: Hash clash in polymorphic variants
> What I meant was simply that instead of using some fixed hash function, one 
> could use a perfect hashing function which is optimal for its known set of 
> inputs, and won't ever generate a collision.

The problem is that the set of inputs is not know at compile time, only
at link time.