Hacker News

Vercel acquires Grep

Hacker News - Thu, 11/21/2024 - 6:32am
Categories: Hacker News

Show HN: Hash any comparable type in Go

Hacker News - Thu, 11/21/2024 - 6:27am

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 - Thu, 11/21/2024 - 6:14am
Categories: Hacker News

Pages