News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by iand on Wednesday June 17, 2020 @03:29PM (#23555656)
The author asks about using the same hash function as the builtin Go map. This was recently exposed in the standard lib at https://golang.org/pkg/hash/maphash/

Specifically https://golang.org/src/hash/maphash/maphash.go?s=1316:1346#L... links to the internal hash function.

Re:Go generics draft design: building a hashtable by mdlayher on Wednesday June 17, 2020 @03:43PM (#23555819)
Right, but you can only write strings or bytes to the hash, not integers, booleans, structs, etc. So the problem remains.