[pypy-dev] Towards pypy-jvm

Antonio Cuni anto.cuni at gmail.com
Sun Apr 1 13:46:19 CEST 2007

Niko Matsakis wrote:
>> The last time I checked what java's Hasttable offers and I saw you 
>> can't pass to it custom hashing and equality functions, but maybe 
>> there is a simple way to do it that I don't know.
> No, there isn't, but it shouldn't be too hard to cook up some kind of 
> Hashtable substitute that uses small wrapper classes to handle that.  I 
> think that's what you did for C#, right?

No, for .NET it was simpler because the standard Dictionary type also 
accepts an optional class that implements the custom functions, so all I 
need to do is to create a class for each unique pair of equality and 
hashing functions (see cli/comparer.py).

ciao Anto

More information about the Pypy-dev mailing list