Hacker News

Vercel acquires Grep

Hacker News - 11 hours 15 min ago
Categories: Hacker News

Show HN: Hash any comparable type in Go

Hacker News - 11 hours 20 min ago

It can be used to write your own generic hash table, see for an example: https://pkg.go.dev/gitlab.eif.urjc.es/paurea/cuckoo

In contrast to https://github.com/dolthub/maphash it can use any hash function (as long as it implements hash.Hash64) and it does not depend on any internal detail of the runtime. It works by inspecting the type and creating the hasher to be used later. One of the types defined lets you also hash non-comparable types (ignoring the non-comparable part).

Comments URL: https://news.ycombinator.com/item?id=42203214

Points: 1

# Comments: 0

Categories: Hacker News

Masters of Disguise

Hacker News - 11 hours 33 min ago
Categories: Hacker News

Pages