[squeak-dev] Re: SqueakMap default objects needs to be rehashed

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Mar 30 06:16:36 UTC 2010


2010/3/30 Andreas Raab <andreas.raab at gmx.de>:
> On 3/29/2010 3:36 PM, Nicolas Cellier wrote:
>>
>> See http://bugs.squeak.org/view.php?id=7485
>
> Yup. Good call. The problem is deeper though. What we did was change the
> hash function and as a result all the hashed collections that are exchanged
> between images with different hash functions will fail.
>
> A *perfect* example why ImageSegments are not a reliable long-term storage
> btw. The bits are all the same but the interpretation of the bits has
> changed (identityHash vs. scaledIdentityHash). Storing bits without
> behaviors only works if you have tight control over both ends (like in
> Croquet where we ensure identical code bases).
>
>
> Cheers,
>  - Andreas
>
>

Yes, that's why I call this workaround rather than fix.
It's fragile.

Nicolas



More information about the Squeak-dev mailing list