frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ooh.directory: a place to find good blogs that interest you

https://ooh.directory/
136•hisamafahri•2h ago•35 comments

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

https://github.com/datavorous/sameshi
54•datavorous_•2h ago•22 comments

Zig – io_uring and Grand Central Dispatch std.Io implementations landed

https://ziglang.org/devlog/2026/#2026-02-13
244•Retro_Dev•7h ago•146 comments

My smart sleep mask broadcasts users' brainwaves to an open MQTT broker

https://aimilios.bearblog.dev/reverse-engineering-sleep-mask/
10•minimalthinker•25m ago•2 comments

Shades of Halftone

https://blog.maximeheckel.com/posts/shades-of-halftone/
22•surprisetalk•4d ago•0 comments

Show HN: I spent 3 years reverse-engineering a 40 yo stock market sim from 1986

https://www.wallstreetraider.com/story.html
543•benstopics•4d ago•181 comments

How many registers does an x86-64 CPU have? (2020)

https://blog.yossarian.net/2020/11/30/How-many-registers-does-an-x86-64-cpu-have
29•tosh•2h ago•12 comments

Show HN: SQL-tap – Real-time SQL traffic viewer for PostgreSQL and MySQL

https://github.com/mickamy/sql-tap
180•mickamy•11h ago•29 comments

Ars Technica makes up quotes from Matplotlib maintainer; pulls story

https://infosec.exchange/@mttaggart/116065340523529645
317•robin_reala•6h ago•110 comments

Code Storage by the Pierre Computer Company

https://code.storage/
23•admp•4d ago•9 comments

Babylon 5 is now free to watch on YouTube

https://cordcuttersnews.com/babylon-5-is-now-free-to-watch-on-youtube/
432•walterbell•1d ago•216 comments

What color are your bits? (2004)

https://ansuz.sooke.bc.ca/entry/23
15•tomodachi94•3d ago•5 comments

Switzerland to Vote on Capping Population at 10M

https://www.nytimes.com/2026/02/11/world/europe/switzerland-to-vote-on-capping-population-at-10-m...
9•bookofjoe•18m ago•8 comments

Understanding the Go Compiler: The Linker

https://internals-for-interns.com/posts/the-go-linker/
131•valyala•5d ago•32 comments

The Sling: Humanity's Forgotten Power

https://www.slinging.org/
59•jsattler•4d ago•9 comments

The World of Harmonics – With a Coffee, Guitar and Synth

https://mynoise.net/vlog.php?ep=20260204
55•gregsadetsky•5d ago•13 comments

The mathematics of compression in database systems

https://www.bitsxpages.com/p/the-mathematics-of-compression-in
28•agavra•3d ago•2 comments

Show HN: Data Engineering Book – An open source, community-driven guide

https://github.com/datascale-ai/data_engineering_book/blob/main/README_en.md
204•xx123122•18h ago•24 comments

How the Little Guy Moved

https://animationobsessive.substack.com/p/how-the-little-guy-moved
73•zdw•4d ago•3 comments

Cogram (YC W22) – Hiring former technical founders

https://www.ycombinator.com/companies/cogram/jobs/LDTrViN-ex-technical-founder-product-engineer
1•ricwo•9h ago

Homeland Security has sent out subpoenas to identify ICE critics

https://www.engadget.com/big-tech/homeland-security-has-reportedly-sent-out-hundreds-of-subpoenas...
56•OutOfHere•51m ago•1 comments

Common Lisp Screenshots: today's CL applications in action

http://www.lisp-screenshots.org
141•_emacsomancer_•2d ago•43 comments

GPT-5.2 derives a new result in theoretical physics

https://openai.com/index/new-result-theoretical-physics/
533•davidbarker•20h ago•358 comments

Building a TUI is easy now

https://hatchet.run/blog/tuis-are-easy-now
264•abelanger•22h ago•203 comments

Epstein's Ugly World of Science

https://homunculusmusic.wordpress.com/2026/02/14/epsteins-ugly-world-of-science/
31•only_in_america•1h ago•1 comments

Font Rendering from First Principles

https://mccloskeybr.com/articles/font_rendering.html
185•krapp•6d ago•34 comments

NPMX – a fast, modern browser for the NPM registry

https://npmx.dev
129•slymax•13h ago•55 comments

YouTube as Storage

https://github.com/PulseBeat02/yt-media-storage
114•saswatms•6h ago•93 comments

Backblaze Drive Stats for 2025

https://www.backblaze.com/blog/backblaze-drive-stats-for-2025/
124•Brajeshwar•11h ago•22 comments

Monosketch

https://monosketch.io/
822•penguin_booze•1d ago•137 comments
Open in hackernews

How many registers does an x86-64 CPU have? (2020)

https://blog.yossarian.net/2020/11/30/How-many-registers-does-an-x86-64-cpu-have
28•tosh•2h ago

Comments

sylware•2h ago
Don't forget x86_64 like ARM is IP-locked, RISC-V is not.
JonChesterfield•1h ago
Good post! Stuff I didn't know x64 has. Sadly doesn't answer the "how many registers are behind rax" question I was hoping for, I'd love to know how many outstanding writes one can have to the various architectural registers before the renaming machinery runs out and things stall. Not really for immediate application to life, just a missing part of my mental cost model for x64.
fuhsnn•1h ago
Intel's next gen will add 16 more general purpose registers. Can't wait for the benchmarks.
Joker_vD•1h ago
So every function call will need to spill even more call-clobbered registers to the stack!

Like, I get that leaf functions with truly huge computational cores are a thing that would benefit from more ISA-visible registers, but... don't we have GPUs for that now? And TPUs? NPUs? Whatever those things are called?

throwaway17_17•1h ago
Why does having more more registers lead to spilling? I would assume (probably) incorrectly, that more registers means less spill. Are you talking about calls inside other calls which cause the outer scope arguments to be preemptively spilled so the inner scope data can be pre placed in registers?
CamelCaseCondo•48m ago
op is probably referring to the push all/pop all approach.
Joker_vD•10m ago
No, I don't. I use a common "spill definitely reused call-invariant registers at the prologue, spill call-clobbered registers that need to survive a call at precisely the call site" approach, see the sibling comment for the arithmetic.
Joker_vD•12m ago
So, let's take a function with 40 alive temporaries at a point where it needs to call a helper function of, say, two arguments.

On a 16 register machine with 9 call-clobbered registers and 7 call-invariant ones (one of which is the stack pointer) we put 6 temporaries into call-invariant registers (so there are 6 spills in the prologue of this big function), another 9 into the call-clobbered registers; 2 of those 9 are the helper function's arguments, but 7 other temporaries have to be spilled to survive the call. And the rest 25 temporaries live on the stack in the first place.

If we instead take a machine with 31 registers, 19 being call-clobbered and 12 call-invariant ones (one of which is a stack pointer), we can put 11 temporaries into call-invariant registers (so there are 11 spills in the prologue of this big function), and another 19 into the call-clobbered registers; 2 of those 19 are the helper function's arguments, so 17 other temporaries have to be spilled to survive the call. And the rest of 10 temporaries live on the stack in the first place.

So, there seems to be more spilling/reloading whether you count pre-emptive spills or the on-demand-at-the-call-site spills, at least to me.

jandrewrogers•59m ago
Most function calls are aggressively inlined by the compiler such that they are no longer "function calls". More registers will make that even more effective.
BobbyTables2•27m ago
How are they adding GPRs? Won’t that utterly break how instructions are encoded?

That would be a major headache — even if current instruction encodings were somehow preserved.

It’s not just about compilers and assemblers. Every single system implementing virtualization has a software emulation of the instruction set - easily 10k lines of very dense code/tables.

Joker_vD•10m ago
The same way AMD added 8 new GPRs, I imagine: by introducing a new instruction prefix.
nefsim•1h ago
Even though this post is from 2020, it’s still a classic reference. It’s especially relevant now to revisit this baseline considering Intel’s APX which aims to double the GPRs to 32. Understanding how we got here is key to appreciating where the architecture is headed next.