frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: How do you reliably benchmark sub-100ns code paths in Rust

https://github.com/abokhalill/cuttlefish
1•yousef06•1h ago
Hi everyone,

I just finished coding the core version of this library called Cuttlefish written completely in rust. It’s a CRDT inspired framework that packs stuff like io_uring, SIMD, zero copy pipelines etc.. Here’s what it is:

So most distributed systems are strong consistency but the tradeoff is latency. Cuttlefish is a coordination-free state kernel that preserves invariants and constraints at the speed of your L1 cache.

Correctness here is defined by a property of algebra. So if your operations commute, you don’t need coordination. If they don’t, you know at admission time in nanoseconds, or at least it’s supposed to.

Running a full benchmark suite triggered the following results:

Full admission cycle: ~40ns Kernel admit: ~13 ns Causal clock dominance: ~700 ps Tiered hash verification: ~280 ns Durable admission: ~5.2 ns WAL hash: ~230 ns

On my CPU though (r5 7600x), I measure 40 ns full cycle including causality check, but I’m not sure of my benchmark setup because most of it was written by AI. How are other people measuring sub-100 ns rust code paths reliably? Repo: https://github.com/abokhalill/cuttlefish

Comments

verdverm•1h ago
Not sure about Rust, I assume it's going to be the same, my PhD advisor gave me an inline C assembly snippet I could use to do cycle accurate benchmarking.

It used counters on the CPU, something super basic like reading those registers into a var.

---

You can probably take the above to a coding agent or LLM and get what you need back.

Show HN: Alexa-like voice interface for OpenClaw

https://github.com/sachaabot/openclaw-voice-agent
1•sachaa•4m ago•0 comments

Xbox UI Portfolio Site

https://gabrielcabrera.co/
1•valgaze•13m ago•0 comments

The AI productivity take-off is finally visible (Erik Brynjolfsson)

https://www.ft.com/content/4b51d0b4-bbfe-4f05-b50a-1d485d419dc5
1•ryan_j_naughton•13m ago•0 comments

mirror.hoobly.com

http://209.126.127.252
1•1vuio0pswjnm7•15m ago•0 comments

AI Agents and the Rise of Judgment-Powered Software

https://www.digitvibe.com/ai-agents-and-the-rise-of-judgment-powered-software/
1•keyhanimo•16m ago•0 comments

My first blog post: On the Conversational AI Audio Pipeline

https://www.wallacecorp.ai/content
1•financypants•17m ago•1 comments

Ask HN: How does the cost of CPU-bound computations scale in cloud computing?

1•jason_s•18m ago•0 comments

Epicurrents – an open-source web browser application for scientific research

https://www.sciencedirect.com/science/article/pii/S2467981X26000107
1•XzetaU8•19m ago•0 comments

Grug Meets His Match – Or – Grug, Claude, and Big Snap Man

https://robertkarl.net/blog/articles/grug-meets-his-match-or-grug-claude-and-big-snap-man/index.html
1•robertkarl•21m ago•0 comments

China's CXMT and YMTC to expand memory output amid global crunch

https://kr-asia.com/chinas-cxmt-and-ymtc-to-massively-expand-memory-output-amid-global-crunch
1•walterbell•28m ago•1 comments

Smart-KNN: A production-focused, feature-weighted KNN optimized for CPU

1•Jashwanth01•28m ago•2 comments

Hidden Epstien videos list 2600 links

https://pastebin.com/fUP7PdMF
4•applestone•31m ago•1 comments

The AI Trilemma

https://www.foreignaffairs.com/united-states/ai-trilemma
5•ph4rsikal•32m ago•1 comments

Confect: Use Effect with Convex

https://confect.dev/getting-started/introduction
1•handfuloflight•32m ago•0 comments

Show HN: Come check out my game I'm live testing

https://hovertag.io/
1•petersonh•32m ago•0 comments

Show HN: AI ID Photo – Generate passport/ID photos from selfies

https://apps.apple.com/kr/app/%EB%AC%B4%EB%A3%8C-%EC%A6%9D%EB%AA%85%EC%82%AC%EC%A7%84-%EC%83%9D%E...
1•yanggadev•32m ago•5 comments

Show HN: CoolWulf AI – A personal AI assistant built in Go, optimized for macOS

http://coolwulfAI.com
1•coolwulf•34m ago•1 comments

Show HN: Python UI-Me – Turn functions into web forms with one decorator

https://github.com/livetheoogway/python-uime
1•tusharnaik•36m ago•0 comments

Hunterizer: Hunting layer intelligence for season,zone and land-status awareness

https://hunterizer.com/apps/seasons/
1•vladpowerman•36m ago•1 comments

Choose Boring Technology

https://boringtechnology.club/
1•ValentineC•37m ago•1 comments

Why I'll never give up my DVD collection

https://www.whathifi.com/streaming-entertainment/why-ill-never-give-up-my-dvd-collection
5•nickt•40m ago•2 comments

Ask HN: I have an analytical solution for 3D Navier-Stokes, how to verify?

1•EvgenyStupakov•43m ago•0 comments

Russia's economy has entered the death zone

https://www.economist.com/by-invitation/2026/02/16/russias-economy-has-entered-the-death-zone
2•toomuchtodo•47m ago•3 comments

Show HN: OpenClaw alternative with no API costs

https://github.com/openconstruct/freeclaw
2•jerrimu•47m ago•0 comments

FutureEval: Measuring the Forecasting Accuracy of AI

https://www.metaculus.com/futureeval/
1•kqr•48m ago•0 comments

Unity says its AI tech will be able to prompt full casual games into existence

https://www.gamedeveloper.com/programming/unity-says-its-ai-tech-will-soon-be-able-to-prompt-full...
3•helloplanets•52m ago•1 comments

Martial arts robots dazzle at 2026 Spring Festival Gala [video]

https://www.youtube.com/watch?v=mUmlv814aJo
4•fspeech•52m ago•1 comments

Microsoft posts a bad AI remake of the Git flow diagram

1•WolfCop•55m ago•2 comments

The tech bros might show more humility in Delhi – will they make AI any safer?

https://www.bbc.co.uk/news/articles/cr5l6gnen72o
1•mmarian•1h ago•0 comments

Octopuses fall for the 'rubber arm' illusion, just like us (2025)

https://www.science.org/content/article/octopuses-fall-rubber-arm-illusion-just-us
1•koala_man•1h ago•1 comments