frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Compact-dict – a cache-local, linear probing hash map in Rust

https://github.com/gustawdaniel/compact-dict
3•gustawdaniel•1h ago

Comments

gustawdaniel•1h ago
I’ve been experimenting with hash map designs that prioritize CPU prefetcher efficiency over algorithmic complexity. The result is compact-dict, a Rust implementation that focuses on strict memory contiguity.

While modern standards like hashbrown (SwissTables) are highly optimized with SIMD, I wanted to see if a "brutalist" approach using Linear Probing and a Continuous Memory Layout could outperform them by better utilizing L1/L2 cache lines.

The core thesis: Modern CPUs are so efficient at sequential memory access that the overhead of pointer chasing (separate chaining) or even the complexity of metadata-based probing can become a bottleneck for small to medium-sized datasets. By keeping everything in a single, predictable slab of memory, we maximize cache hits.

Current trade-offs:

    Append-only: I’ve intentionally deferred deletion support to avoid the performance penalties of tombstones or backward-shifting, focusing purely on lookup throughput.

    Load Factor: Performance is sensitive to clustering, so it’s optimized for a load factor < 0.7.
The benchmarks show it trading blows with hashbrown in specific lookup-heavy workloads. I’m curious if the HN community thinks "hardware-first" simplicity is a viable path forward for specialized collections, or if the safety/generality of SwissTables will always win out.

Repo: https://github.com/gustawdaniel/compact-dict

I'd appreciate a technical roast of my unsafe pointer arithmetic and any thoughts on cache-line utilization.

How age standardization make health metrics comparable

https://ourworldindata.org/age-standardization
1•sohkamyung•56s ago•0 comments

Discovering Little Worlds (2020)

https://dmitrybrant.com/2020/08/01/discovering-little-worlds
1•wonger_•1m ago•0 comments

Ukraine Reaches a Milestone: Making ‘China-Free’ Drones

https://www.nytimes.com/2026/03/11/world/europe/ukraine-drones-china.html
1•giuliomagnifico•1m ago•0 comments

Simple-Git NPM package has CVSS 9.8 RCE; 5M+ weekly downloads–check lockfiles

https://www.codeant.ai/security-research/simple-git-remote-code-execution-cve-2026-28292
1•birdculture•4m ago•0 comments

Automatic Pronunciation Error Detection and Correction of the Holy Quran

https://arxiv.org/abs/2509.00094
1•handfuloflight•7m ago•0 comments

Show HN: A simple hardened AI Docker cluster

https://github.com/kummahiih/secure-mcp/
1•kummap•9m ago•0 comments

Astro 6.0 Is Released

https://astro.build/blog/astro-6/
2•mariuz•10m ago•0 comments

A new model defines an upper limit to planetary radiation belt intensity

https://phys.org/news/2026-03-upper-limit-planetary-belt-intensity.html
3•bookmtn•10m ago•0 comments

VoltRN CLI for React Native/Expo Scaffolding, Generators

https://github.com/IronTony/voltrn-cli
1•IronTony•11m ago•1 comments

Analect – AST and LLM Code Summary and Navigation

https://analect.dev
1•ascent817•13m ago•0 comments

Show IH: I built a runtime control plane to stop AI agents from burning money

https://github.com/vijaym2k6/SteerPlane
1•vijaym2k6•14m ago•0 comments

Show HN: Free API toolkit – cron, webhooks, DNS, hashing, regex

https://frog03-20494.wykr.es/devtools/
1•patchnull•17m ago•1 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•17m ago•0 comments

Some relationships deepen when you tell the truth and some end

https://www.henrikkarlsson.xyz/p/going-your-own-way
1•squirrel•18m ago•0 comments

Open Source Masterclass – Learn to Contribute Upstream

https://opensourcemasterclass.org/
3•antoviaque•19m ago•0 comments

Tell HN: Moltbook was running in my browser

2•ramon156•24m ago•1 comments

As AI data centers scale, investigating their impact becomes its own beat

https://www.niemanlab.org/2026/03/as-ai-data-centers-scale-investigating-their-impact-becomes-its...
2•giuliomagnifico•25m ago•0 comments

Claude Skills: The Complete Guide

https://aistaffkit.com/claude-skills-guide
1•modestpacket•27m ago•0 comments

Get 500 credits for Manus registration

https://manus.im/invitation/ZQFSZCXJGQKD1GP
1•doener•27m ago•0 comments

Show HN: Colab pipeline for auto-labeling datasets with prompt and training YOLO

https://github.com/useful-ai-tools/detect-anything
2•eyasu6464•30m ago•1 comments

Windows 12 could be the tipping point that pushes you to Linux

https://www.zdnet.com/article/windows-12-rumors-linux-migration/
1•robtherobber•30m ago•0 comments

Ask HN: What starts to break down as your notes grow?

2•vajafafa•35m ago•1 comments

AI research paper – IEEE open access journal

https://ieeexplore.ieee.org/document/11424402
2•funnyguy678•39m ago•0 comments

C++26 safety features won't safe you

https://lucisqr.substack.com/p/c26-safety-features-wont-save-you
1•todsacerdoti•39m ago•0 comments

What Is Zensical?

https://zensical.org/about/
1•Tomte•41m ago•0 comments

Ask HN: Should we add game as product type for 3DIMLI?

1•arpit077•42m ago•0 comments

Fixing Programmatic Tool Calling with Types

https://blog.coldboot.org/fixing-programmatic-tool-calling-with-types
1•matchcase•43m ago•0 comments

Work just got easier for data analysts

https://analyst-bbqe.onrender.com/
1•Sechele•45m ago•0 comments

Code reviews do find bugs

https://entropicthoughts.com/code-reviews-do-find-bugs
2•todsacerdoti•46m ago•0 comments

Minesweeper but It's the Strait of Hormuz

https://sweepthestrait.com/
3•nextstep•47m ago•0 comments