frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How many branches can your CPU predict?

https://lemire.me/blog/2026/03/18/how-many-branches-can-your-cpu-predict/
41•ibobev•1h ago

Comments

withinboredom•37m ago
Before switching to a hot and branchless code path, I was seeing strangely lower performance on Intel vs. AMD under load. Realizing the branch predictor was the most likely cause was a little surprising.
stephencanon•26m ago
Enlarging a branch predictor requires area and timing tradeoffs. CPU designers have to balance branch predictor improvements against other improvements they could make with the same area and timing resources. What this tells you is that either Intel is more constrained for one reason or another, or Intel's designers think that they net larger wins by deploying those resources elsewhere in the CPU (which might be because they have identified larger opportunities for improvement, or because they are basing their decision making on a different sample of software, or both).
bee_rider•19m ago
I guess the generate_random_value function uses the same seed every time, so the expectation is that the branch predictor should be able to memorize it with perfect accuracy.

But the memorization capacity of the branch predictor must be a trade-off, right? I guess this generate_random_value function is impossible to predict using heuristics, so I guess the question is how often we encounter 30k long branch patterns like that.

Which isn’t to say I have evidence to the contrary. I just have no idea how useful this capacity actually is, haha.

rayiner•16m ago
Using random values defeats the purpose of the branch predictor. The best branch predictor for this test would be one that always predicts the branch taken or not taken.

Become an engineer, not just a slop cannon [video]

https://www.youtube.com/watch?v=5DP0az1q_8M
1•kshri24•1m ago•0 comments

"Malus": Is Copyleft Dead?

https://heathermeeker.com/2026/03/16/malus-is-copyleft-dead/
1•Tomte•3m ago•0 comments

Chinese Open Source: A Definitive History

https://interconnect.substack.com/p/chinese-open-source-a-definitive
1•Tomte•4m ago•0 comments

AI Isn't Killing Developers–It's Creating a $10T Maintenance Crisis

https://rakiabensassi.substack.com/p/ai-isnt-killing-developersits-creating
1•rakiabensassi•5m ago•0 comments

Sri Lanka introduces 4-day week, multiple countries go WFH amid Iran conflict

https://www.news.com.au/finance/sri-lanka-introduces-4day-week-multiple-countries-call-for-wfh-am...
1•evolve2k•5m ago•0 comments

Microsoft startup credits are the gift that keeps on billing unsuspecting users

https://www.theregister.com/2026/03/19/microsoft_startup_credits/
1•Brajeshwar•5m ago•0 comments

AI Birthday Card Generator

https://www.birthdaycards.cc
1•peter_zou2022•8m ago•0 comments

Show HN: Dear Aliens (Writing Contest)

https://www.dearaliens.net/
1•surprisetalk•9m ago•0 comments

Weirdly useful macOS Terminal Emulator, QuakeNotch released new update

https://www.patreon.com/posts/quakenotch-v2-2-150195924
1•rohanrhu•9m ago•0 comments

Queen MQ – Postgres message queue that solves HOL blocking

https://github.com/smartpricing/queen
1•aliceviola•10m ago•1 comments

How to fix the Agentic AI bottleneck: the database

https://regatta.dev/blog/nvidia-agentic-era-database-bottleneck/
1•jaymce•10m ago•1 comments

Amazon Ads with Claude Pt. 1: Claude Is Hubristic, Lazy, and Devoid of Sense

https://theautomatedoperator.substack.com/p/amazon-ads-with-claude-pt-1-claude
1•idopmstuff•12m ago•0 comments

Chaldean Mass Book [pdf]

https://chaldeanchurch.org/wp-content/uploads/Chaldean-Mass-Surath-garshuny.pdf
2•marysminefnuf•13m ago•0 comments

Cyprus Becomes Associate Member of the European Space Agency

https://www.esa.int/Newsroom/Press_Releases/Cyprus_becomes_Associate_Member_of_the_European_Space...
2•northlondoner•13m ago•1 comments

HN: We benchmarked 8 AI models on 36 real Kubernetes scenarios for $40

https://bench.evidra.cc/
1•vitass•14m ago•1 comments

Show HN: M33mu – Cortex-M33 emulation with TrustZone, reverse stepping, and GDB

https://github.com/danielinux/m33mu
2•danielinux•16m ago•0 comments

A Copy-Paste Bug That Broke PSpice AES-256 Encryption

https://jtsylve.blog/post/2026/03/18/PSpice-Encryption-Weakness
2•jtsylve•18m ago•1 comments

ace.me is your new website, email and cloud. Simple. Fast. Secure.

https://ace.me
1•lightwiki•18m ago•2 comments

What America Could Learn from Asia's Robot Revolution

https://thereader.mitpress.mit.edu/what-america-could-learn-from-asias-robot-revolution/
1•anarbadalov•18m ago•0 comments

The SALE – An open-source standard for venture secondary stock transfers

https://simpleagreementforliquidity.com
1•evanjlonergan•19m ago•0 comments

Why the world doesn't recycle more nuclear waste

https://www.technologyreview.com/2026/03/19/1134399/nuclear-waste-reprocessing/
1•Brajeshwar•19m ago•0 comments

No Twitch, No Middlemen. Host Your Own Livestream

https://github.com/xloveee/livecam
1•vesperance•21m ago•1 comments

AI is becoming a second brain at the expense of your first one

https://stackoverflow.blog/2026/03/19/ai-is-becoming-a-second-brain-at-the-expense-of-your-first-...
1•HieronymusBosch•21m ago•0 comments

"Vibe Design" with Stitch

https://blog.google/innovation-and-ai/models-and-research/google-labs/stitch-ai-ui-design/
1•lateforwork•21m ago•0 comments

Ask HN: Non-developers in creative work – have you built your own tools?

1•hiro_filmmaker•22m ago•0 comments

Show HN: An icon set representing CSS properties and values, for editor UIs

https://designsurface.dev/cascade
1•flett•23m ago•0 comments

Show HN: I built fitness app for my mum

https://motion-app.com/
1•georgegreenldn•23m ago•1 comments

Show HN: I built an API for my own bank account

https://www.shim.finance/blog/why-i-built-an-api-for-my-own-bank-account/
1•ericwebb•23m ago•1 comments

One Truth, Many Views

https://docs.opencqrs.com/blog/one-truth-many-views/
1•goloroden•24m ago•0 comments

Conway's Game of Life, in real life

https://lcamtuf.coredump.cx/blog/conway/
1•ahlCVA•25m ago•0 comments