Re: [racket-dev] plausible hash function for s16vectors

2013-11-27 Thread Matthew Flatt
At Tue, 26 Nov 2013 13:39:31 -0800, John Clements wrote: > My question: is there an accepted hash function for an s16vector, or > more generally, for a big block of memory? No, not currently. > Taking a look at the behavior of vectors, though, it looks like *every* > element is considered in com

[racket-dev] plausible hash function for s16vectors

2013-11-26 Thread John Clements
I want to equip my rsounds with a gen:equal+hash implementation, so that I can compare them using equal? and thereby use them in check-expect test cases. I have to roll this myself, since s16vectors don't do non-eq? equal?. My question: is there an accepted hash function for an s16vector, or mo