frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

PGO or not PGO this is the dilemma. Step 2

https://www.percona.com/blog/pgo-or-not-pgo-this-is-the-dilemma-step-2/
10•hnp9j9qtda•2d ago

Comments

gopalv•12m ago
> A switch statement with many cases can be compiled as a jump table (fast, O(1), but requires a full table load and indirect jump) or as a cascade of compares (slower per-case but better branch prediction if one case dominates).

Switch case is the workhorse of a lexer, parser and execution engine. Lots of them over enums.

This was all mis-optimized for years thanks to Spectre/Meltdown changing how the actual runtime of pre-fetch and speculation used to work.

All my work on CGOTO was made irrelevant by the CPU advances, only to become relevant again when fetch speculation got nerfed.

The indirect call scenario is a bit more interesting, because the JVM has an amazing paper about interface dispatch caches [1] on how to do it runtime instead of compile time.

The PGO is still useful, but not unless you can predict the workload you're going to have - Benchmarketing with a TPC benchmark is a good situation for it.

If you have consistent hardware, tuning an OLTP system for the hardware is much more interesting. Going back in the memory hole, Yahoo used to have a Jeremy Cole build of Mysql which was specially optimized for the raid disk layout that was in production (ZFS came by to fix those issues directly).

[1] - https://dl.acm.org/doi/10.1145/504311.504291

Tesla Roadster

https://www.tesla.com/roadster
1025•shekhar101•21h ago•1845 comments

Claude reveals ECDSA curve origins

https://www.anthropic.com/research/ecdsa-curve-origins
524•ahlCVA•3h ago•223 comments

FLUX 3 Image Klein

https://bfl.ai/blog/flux-3-image-klein
74•gmays•2h ago•13 comments

Llama.cpp on a jailbroken PS5: run any GGUF model natively on the console

https://github.com/cobanov/PS5LM
138•Anon84•4h ago•41 comments

eBay Restricts Listings of Radio Equipment, but Exempts Ham-Band-Only Gear

https://www.arrl.org/arrlletterissue?issue=2026-10-15#eBay-Restricts-Listings-of-Radio-Equipment_...
128•7402•4h ago•111 comments

Waymo in Toronto

https://waymo.com/blog/2026/10/waymo-in-toronto/
222•ChrisArchitect•7h ago•328 comments

Wireless magnetic millirobots that deliver medicine inside the beating heart

https://hub.jhu.edu/2026/10/12/magnetic-millirobots-cardiac-treatment/
43•giuliomagnifico•2d ago•1 comments

C++26: The New Debugging Header

https://www.sandordargo.com/blog/2026/09/30/cpp26-debugging
43•jandeboevrie•3h ago•3 comments

Designing more efficient quantum circuits with Claude

https://www.anthropic.com/research/designing-efficient-quantum-circuits
76•pretext•4h ago•15 comments

You could have invented transformers from memory

https://alexwang.ai/posts/associative-memory/
65•speckx•3h ago•14 comments

How the Claude Code team does code review

https://claude.dev/blog/solving-code-review-at-anthropic/
166•pretext•3h ago•162 comments

JPEG XL vs. AVIF for web use-cases

https://jakearchibald.com/2026/jpeg-xl-vs-avif/
171•farlight•6h ago•133 comments

Apple ML Research: Muse Spark Open with MLX on Mac Studio

https://machinelearning.apple.com/research/mlx-distributed-inference
244•antipaul•8h ago•109 comments

I never authorized an integration that scans my secrets

https://github.com/home-assistant/home-assistant.io/issues/49314
120•trvrprkr•2h ago•70 comments

90% of US working hours are spent on tasks not covered well by AI benchmarks

https://www.mercor.com/research/labor-index/benchmark-map/
343•speckx•5h ago•299 comments

Monte-Carlo Simulations

https://eli.thegreenplace.net/2026/monte-carlo-simulations/
44•ibobev•3d ago•7 comments

Piramidal (YC W24) Is Hiring

https://job-boards.greenhouse.io/piramidalinc/jobs/4443102009
1•dsacellarius•5h ago

PGO or not PGO this is the dilemma. Step 2

https://www.percona.com/blog/pgo-or-not-pgo-this-is-the-dilemma-step-2/
10•hnp9j9qtda•2d ago•1 comments

Show HN: Gemini 4 Argon plays StarCraft

https://starskirmish.com/bench/v0-2/
175•__cayenne__•8h ago•77 comments

/dev/null: social network for developers

https://dev-null.sh
101•mnapoli•5h ago•95 comments

Big Fish: Exploiting a 37-Year-Old Kernel Bug in OpenBSD

https://calif.io/research/big-fish
152•rs_rs_rs_rs_rs•7h ago•43 comments

GifCities

https://gifcities.org/
46•augury•5h ago•4 comments

Why harnesses matter for energy (and token) efficiency

https://neuralwatt.com/news/why-harnesses-matter-for-energy-efficiency
20•ccgibson•1h ago•3 comments

Show HN: Wonderhop – A daily game: guess what most people say, or what none do

https://wonderhop.io/en/
46•mtlduo•2d ago•52 comments

I Love Software Rendering

https://www.jamesfmackenzie.com/2026/10/13/i-love-software-rendering/
273•speckx•9h ago•180 comments

What was a Token Ring network?

https://dfarq.homeip.net/what-was-a-token-ring-network/
72•ibobev•8h ago•55 comments

Stolen Renoir paintings found hidden, and damaged, behind cinder block wall

https://www.cbsnews.com/news/stolen-renoir-paintings-found-behind-wall-france/
92•ohjeez•3d ago•62 comments

What on Earth Is Dekton?

https://www.worksinprogress.news/p/porcelain
111•wawayanda•8h ago•41 comments

The Fatal Flaw of 911

https://www.themarshallproject.org/2026/10/16/911-book-policing-mental-health
41•plunge•3h ago•56 comments

Anthropic assigned highest junk credit rating in June

https://www.ft.com/content/5a310aee-f555-4266-874c-b1b4db20186d
172•JumpCrisscross•4h ago•48 comments