Feed aggregator

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

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

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

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

CNET Feed - Thu, 11/21/2024 - 6:02am
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 - Thu, 11/21/2024 - 6:01am
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 - Thu, 11/21/2024 - 6:00am
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