Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 1 min 16 sec ago

Show HN: Hash any comparable type in Go

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

A New Way to Learn Complex Topics in Minutes a Day

Thu, 11/21/2024 - 6:20am

Article URL: https://www.odysseyscholar.com

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

Points: 1

# Comments: 1

Categories: Hacker News

Masters of Disguise

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

i3 Window Manager explainer videos and screenshots

Thu, 11/21/2024 - 6:06am

Article URL: https://i3wm.org/screenshots/

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

Points: 1

# Comments: 1

Categories: Hacker News

Show HN: I made a simple tool to showcase your recent sales

Thu, 11/21/2024 - 5:59am

Article URL: https://toasty.sale

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

Points: 1

# Comments: 0

Categories: Hacker News

Pages