Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Simon Cozens
Alberto writes: Finally, we need to hash PMC's. While I don't know what hash function we should use Nor can you know, in the general case. Let PMCs hash themselves. -- 4.2BSD may not be a complete disaster, but it does a good job of emulating one.

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Alberto Manuel Brandão Simões
On Mon, 2002-07-22 at 14:05, Simon Cozens wrote: Alberto writes: Finally, we need to hash PMC's. While I don't know what hash function we should use Nor can you know, in the general case. Let PMCs hash themselves. This means one more function to the vtable! The value returned by the

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Leon Brocard
Alberto Manuel Brandão Simões sent the following bits through the ether: This means one more function to the vtable! FWIW every object in Java must implement a hashCode method: http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode() Leon -- Leon

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Alberto Manuel Brandão Simões
Dan, can we create this new vtable method? returning an integer (long integer)... with name hashValue, or asHash.. or something else. Alberto On Mon, 2002-07-22 at 17:07, Leon Brocard wrote: Alberto Manuel Brandão Simões sent the following bits through the ether: This means one more

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Dan Sugalski
At 5:52 PM +0100 7/22/02, Alberto Manuel Brandão Simões wrote: Dan, can we create this new vtable method? returning an integer (long integer)... with name hashValue, or asHash.. or something else. Yep. Call it id and have it return an INTVAL. On Mon, 2002-07-22 at 17:07, Leon Brocard wrote:

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Nicholas Clark
On Mon, Jul 22, 2002 at 01:12:57PM -0400, Dan Sugalski wrote: At 5:52 PM +0100 7/22/02, Alberto Manuel Brandão Simões wrote: Dan, can we create this new vtable method? returning an integer (long integer)... with name hashValue, or asHash.. or something else. Yep. Call it id and have it

Re: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread David M. Lloyd
On Mon, 22 Jul 2002, Dan Sugalski wrote: At 5:52 PM +0100 7/22/02, Alberto Manuel Brandão Simões wrote: Dan, can we create this new vtable method? returning an integer (long integer)... with name hashValue, or asHash.. or something else. Yep. Call it id and have it return an INTVAL. Do we

RE: RFC - Hashing PMC's albie@alfarrabio.di.uminho.pt

2002-07-22 Thread Brent Dax
Dan Sugalski: # At 5:52 PM +0100 7/22/02, Alberto Manuel Brandão Simões wrote: # Dan, can we create this new vtable method? returning an # integer (long # integer)... with name hashValue, or asHash.. or something else. # # Yep. Call it id and have it return an INTVAL. Can we have it return a