Re: [Pharo-project] Hash values

2010-06-02 Thread Henrik Johansen
___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Hash values could always be greater than 4096 :) Identity hashes can't, but they are scaled in 1.1, to avoid bad clustering

Re: [Pharo-project] Hash values

2010-06-02 Thread Stéphane Ducasse
/listinfo/pharo-project Hash values could always be greater than 4096 :) Identity hashes can't, but they are scaled in 1.1, to avoid bad clustering That's not true. You may be surprised, but the value of #identityHash can be any SmallInteger. Just try this: {SmallInteger minVal. SmallInteger maxVal

Re: [Pharo-project] Hash values

2010-06-02 Thread Andres Valloud
/mailman/listinfo/pharo-project Hash values could always be greater than 4096 :) Identity hashes can't, but they are scaled in 1.1, to avoid bad clustering That's not true. You may be surprised, but the value of #identityHash can be any SmallInteger. Just try this: {SmallInteger

[Pharo-project] Hash values

2010-06-01 Thread Alexandre Bergel
Hi! Apparently in Pharo 1.1, hash values may be greater than 4096. What is the range of the hash values? Cheers, Alexandre ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr

Re: [Pharo-project] Hash values

2010-06-01 Thread Henrik Sperre Johansen
://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Hash values could always be greater than 4096 :) Identity hashes can't, but they are scaled in 1.1, to avoid bad clustering for objects not redefining hash. Basically they're multiplied by 2^18, which gives the largest possible range while

Re: [Pharo-project] Hash values

2010-06-01 Thread Levente Uzonyi
list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Hash values could always be greater than 4096 :) Identity hashes can't, but they are scaled in 1.1, to avoid bad clustering That's not true. You may be surprised, but the value