Hacker News new | ask | show | jobs
by joebonrichie 25 days ago
The instruction level parallelism in the 2-ahead branch prediction is super cool stuff, I know zen5 had this feature but it's kind of crazy that memory is so slow relative to the cores that this complexity is beneficial and worthwhile.
2 comments

It has always been like this, and it’s amazing how branch prediction and speculative execution work. CPUs are so much more complex than the simple mental model you first learn.
> It has always been like this

Nah. I recall putting multiplication tables in RAM because it was faster to read the tables than doing the multiplication.

RAM used to be relatively fast. These days it's dog slow unless you're streaming.

It's now been true for longer than we have had VLSI memory.

RAM chips won out over core memory in the early 70's. We've had caches to compensate for the relative slowness of memory since around 1990. That's for mainstream computers (486, Pentium). Mainframe computers have had caches for longer.

The "compute" part of the CPU is almost negligible, most of it is SRAM, reordering and branch prediction
SIMD stuff is also generally pretty big part of the chip, tho of course dwarfed by cache