Feed aggregator

Today's NYT Mini Crossword Answers for Tuesday, June 2

CNET Feed - Mon, 06/01/2026 - 11:50pm
Here are the answers for The New York Times Mini Crossword for June 2.
Categories: CNET

Show HN: Opthash – Rust implementations of Elastic and Funnel hashing

Hacker News - Mon, 06/01/2026 - 11:38pm

I first came across the paper “Optimal Bounds for Open Addressing Without Reordering” through a Quanta Magazine YouTube video a few months back. I went looking for an official implementation and couldn’t find one, so I decided to try implementing the paper's Elastic Hashing and Funnel Hashing in Rust.

To that end, I build opthash, a Rust library providing ElasticHashMap and FunnelHashMap implementations (and more recently HashSet variants). They are at API parity with std::collections::HashMap and HashSet.

Initially, the data layout was a relatively straightforward implementation of the paper, with levels and buckets represented as nested structs that each managed their own allocation. Later, I moved to a flatter arena layout with one allocation for the backing control/data regions, and smaller descriptor structs holding pointers and metadata for each level. That ended up being noticeably faster. The intuition I went for is to arrange control bytes contiguously to maximize cache locality, since majority of instructions for probing was done on the control bytes.

Most the low-level details is inspired by hashbrown/SwissTable, such as 7-bit control bytes, SIMD scans over groups of control bytes, power-of-two sizing, test cases, and foldhash as the default hasher. hashbrown is included in the benchmarks as the performance ceiling, and std::HashMap is the baseline.

I also added Python bindings as a learning exercise. I aimed for parity with Python dict and set, but I quickly realized crossing through PyO3 adds more overhead than expected...

I would gladly appreciate feedback, especially about hash table construction, PyO3 bindings, or benchmarking methodology. I have learned a lot about Rust's language features (and crossing into unsafe territory) from this project, and I'm sure there are still many things to improve.

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

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Why most of us programmers are men?

Hacker News - Mon, 06/01/2026 - 11:38pm

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

Points: 1

# Comments: 1

Categories: Hacker News

NetBSD Problem Report #54977

Hacker News - Mon, 06/01/2026 - 11:31pm

Article URL: https://gnats.NetBSD.org/54977

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

Points: 1

# Comments: 0

Categories: Hacker News

Quantum Backrooms

Hacker News - Mon, 06/01/2026 - 11:28pm

Article URL: https://backrooms.mothquantum.com

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

Points: 1

# Comments: 0

Categories: Hacker News

Jan – Personal Intelligence that answers only to you

Hacker News - Mon, 06/01/2026 - 11:12pm

Article URL: https://www.jan.ai/

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

Points: 2

# Comments: 0

Categories: Hacker News

AquaUI

Hacker News - Mon, 06/01/2026 - 11:00pm
Categories: Hacker News

Pages