frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://github.com/aaron-ang/opthash-rs
1•aayd•1h ago
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.

Anthropic Expands Public Access to Claude Mythos AI Model

https://www.govinfosecurity.com/anthropic-expands-public-access-to-claude-mythos-ai-model-a-31778
1•divija_07•1m ago•0 comments

US now spending more on data center than on public transportation

https://bsky.app/profile/leftistwonk.bsky.social/post/3mnbd6txlus2c
1•kn81198•1m ago•0 comments

User-replaceable batteries are coming back in a big way

https://www.theverge.com/column/939026/user-replaceable-batteries-eu-european-union-legislation
2•1vuio0pswjnm7•3m ago•0 comments

App to find best model by filtering AI models

https://which-llm-model.netlify.app/
1•mzubairtahir•7m ago•0 comments

Coding agents are giving everyone decision fatigue

https://stackoverflow.blog/2026/05/21/coding-agents-are-giving-everyone-decision-fatigue/
1•jruohonen•7m ago•0 comments

Samurai City

https://worksinprogress.co/issue/samurai-city/
1•zdw•10m ago•0 comments

ShadowProtect: Wireshark for AI Agents

https://pypi.org/project/shadowprotect/0.1.0/
2•priyanshhhhh•10m ago•0 comments

Mellum2 Goes Open Source: A Fast Model for AI Workflows

https://blog.jetbrains.com/ai/2026/06/mellum2-goes-open-source-a-fast-model-for-ai-workflows/
3•microflash•14m ago•0 comments

Julia Http.jl 2.0

https://discourse.julialang.org/t/ann-http-jl-2-0-release-and-new-package-reseau-jl/137323
2•thetwentyone•21m ago•0 comments

Magnets Are Bad for Hardware Again

https://hackaday.com/2026/05/21/magnets-are-bad-for-hardware-again/
1•kristianpaul•24m ago•0 comments

VideoFDB: Evaluating Full-Duplex Vision-Speech Capabilities in Agents

https://research.nvidia.com/labs/amri/projects/video-fdb/
1•matt_d•27m ago•0 comments

Florida Sues OpenAI, Sam Altman: 'Utter Disregard for the Risk to Human Life'

https://variety.com/2026/biz/tech/florida-sues-openai-sam-altman-1236764066/
3•1vuio0pswjnm7•30m ago•1 comments

Self-Hosting on the Dark Web

https://david.alvarezrosa.com/posts/self-hosting-on-the-dark-web/
1•ethanplant•32m ago•0 comments

Claude Opus 4.8: The System Card

https://thezvi.substack.com/p/claude-opus-48-is-honestly-better
1•paulpauper•32m ago•0 comments

Squats, Presses, and Deadlifts: Why Gyms Don't Teach the Only Exercises You Need

https://startingstrength.com/article/squats-presses-and-deadlifts-why-gyms-dont-teach-the-only-ex...
2•eudamoniac•37m ago•0 comments

The Engineer and the Autocomplete: What LLMs Can't Do

https://geerttheys.substack.com/p/llms-vs-human-engineers-who-really
2•toadi•37m ago•0 comments

strace-ui, Bonsai_term, and the TUI renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
2•matt_d•37m ago•0 comments

GoPro is at risk of potential bankruptcy amid lower sales and high memory costs

https://www.digitalcameraworld.com/cameras/action-cameras/breaking-news-gopro-is-in-serious-finan...
2•droidjj•40m ago•0 comments

Making Pebble Apps in 2026

https://coconauts.net/blog/2026/05/08/pebble-apps/
1•jandeboevrie•40m ago•0 comments

Show HN: Jabsco – agent harness that works remotely through RDP

https://github.com/jrecyclebin/jabsco
1•jrecyclebin•44m ago•0 comments

When Agentic AI Met the Common Law of Agency [pdf]

https://download.ssrn.com/2026/5/27/6838660.pdf?response-content-disposition=inline&X-Amz-Securit...
1•droidjj•45m ago•0 comments

Ask HN: How can I get an OpenAI account bug in front of an engineer?

1•_kyran•46m ago•0 comments

EasyOS Built with Xlibre

https://bkhome.org/news/202606/easyos-built-with-xlibre.html
1•jandeboevrie•46m ago•0 comments

Bloc – Cursor for AI video (a canvas IDE, not a timeline)

https://vidbloc.com/
1•richardyangteki•50m ago•0 comments

What Happens to Software Engineering When Generating Code Is Free? (Part 1)

https://sageox.ai/blog/when-generating-code-is-free-part-1
2•port8080•53m ago•4 comments

I built a GitHub App to help reviewers decide if a PR is ready to approve

https://github.com/marketplace/approvalops
1•xpinc17•55m ago•0 comments

Woman with Ebola symptoms quarantined in Bengaluru after Uganda trip

https://indianexpress.com/article/india/ebola-virus-india-bengaluru-woman-quarantined-symptoms-10...
1•JumpCrisscross•55m ago•0 comments

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

https://github.com/aaron-ang/opthash-rs
1•aayd•1h ago•0 comments

Ask HN: Why most of us programmers are men?

4•alonsovm44•1h ago•7 comments

AI can chart a course to disaster faster than humans can notice

https://thebulletin.org/2026/05/ai-can-chart-a-course-to-disaster-faster-than-humans-can-notice/
1•nickcotter•1h ago•0 comments