Tech Musings
Tech Musings
Apr 10, 2026 · Fundamentals

Why Go’s New Hasher[T] Interface Redefines Safe Generic Hashing

Go’s 2025 addition of the generic Hasher[T] interface to hash/maphash standardizes safe hashing by embedding a random seed throughout recursive calls, resolves previous design flaws, and provides clear guidelines for custom hashers, comparable types, and practical applications such as Bloom filters, all while ensuring performance and correctness.

BloomFilterGenericshashing
0 likes · 18 min read
Why Go’s New Hasher[T] Interface Redefines Safe Generic Hashing
BirdNest Tech Talk
BirdNest Tech Talk
Nov 24, 2024 · Fundamentals

Why Go’s maphash Beats Traditional Hashes: Deep Dive and Benchmarks

The article explains hash algorithm fundamentals, compares common hashes, presents extensive Go benchmark results across multiple data sizes, highlights the superior performance of Go's maphash (memhash) implementation, and shows how to access it via linkname and assembly details.

GoHashPerformance
0 likes · 17 min read
Why Go’s maphash Beats Traditional Hashes: Deep Dive and Benchmarks