Feed aggregator

Show HN: Hash any comparable type in Go

Hacker News - 16 hours 45 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

Ready to Join Bluesky? Here's How to Get Started

CNET Feed - 16 hours 58 min ago
The alternative social network Bluesky is blowing up right now. Here's everything you need to know about posting, following, custom algorithmic feeds and moderation.
Categories: CNET

Masters of Disguise

Hacker News - 16 hours 58 min ago
Categories: Hacker News

Refi Rates Ride High: Today's Refinance Rates, Nov. 21, 2024

CNET Feed - 17 hours 11 min ago
Several important refinance rates ticked up this week, but rates are expected to trend down in the coming months.
Categories: CNET

Home Loan Rates Inch Higher for Borrowers: Current Mortgage Rates for Nov. 21, 2024

CNET Feed - 17 hours 12 min ago
A handful of major mortgage rates inched up. But experts are optimistic about rates falling in the long term.
Categories: CNET

How to Suspend Your Social Security Benefits and Why You'd Want To

CNET Feed - 17 hours 12 min ago
If you're receiving Social Security benefits, you may be able to pause them temporarily so you can get a bigger check later on. Here's how.
Categories: CNET

Pages