frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Fast and cheap bulk storage: using LVM to cache HDDs on SSDs

https://quantum5.ca/2025/05/11/fast-cheap-bulk-storage-using-lvm-to-cache-hdds-on-ssds/
29•todsacerdoti•2h ago•6 comments

Chemical process produces critical battery metals with no waste

https://spectrum.ieee.org/nmc-battery-aspiring-materials
10•stubish•1h ago•0 comments

Resizable structs in Zig

https://tristanpemble.com/resizable-structs-in-zig/
102•rvrb•7h ago•45 comments

Show HN: QuickTunes: Apple Music player for Mac with iPod vibes

https://furnacecreek.org/quicktunes/
65•albertru90•5h ago•13 comments

How we rooted Copilot

https://research.eye.security/how-we-rooted-copilot/
283•uponasmile•13h ago•108 comments

Purple Earth hypothesis

https://en.wikipedia.org/wiki/Purple_Earth_hypothesis
199•colinprince•3d ago•57 comments

Low cost mmWave 60GHz radar sensor for advanced sensing

https://www.infineon.com/part/BGT60TR13C
43•teleforce•3d ago•11 comments

Paul Dirac and the religion of mathematical beauty (2011) [video]

https://www.youtube.com/watch?v=jPwo1XsKKXg
47•magnifique•7h ago•4 comments

Personal aviation is about to get interesting (2023)

https://www.elidourado.com/p/personal-aviation
72•JumpCrisscross•6h ago•69 comments

Coronary artery calcium testing can reveal plaque in arteries, but is underused

https://www.nytimes.com/2025/07/26/health/coronary-artery-calcium-heart.html
62•brandonb•7h ago•56 comments

Rust running on every GPU

https://rust-gpu.github.io/blog/2025/07/25/rust-on-every-gpu/
511•littlestymaar•19h ago•171 comments

What went wrong for Yahoo

https://dfarq.homeip.net/what-went-wrong-for-yahoo/
142•giuliomagnifico•11h ago•141 comments

16colo.rs: ANSI/ASCII art archive

https://16colo.rs/
10•debo_•3d ago•2 comments

Getting decent error reports in Bash when you're using 'set -e'

https://utcc.utoronto.ca/~cks/space/blog/programming/BashGoodSetEReports
90•zdw•3d ago•29 comments

Teach Yourself Programming in Ten Years (1998)

https://norvig.com/21-days.html
65•smartmic•8h ago•21 comments

The natural diamond industry is getting rocked. Thank the lab-grown variety

https://www.cbc.ca/news/business/lab-grown-diamonds-1.7592336
165•geox•17h ago•211 comments

Tinyio: A tiny (~200 line) event loop for Python

https://github.com/patrick-kidger/tinyio
55•tehnub•4d ago•13 comments

Torqued Accelerator Using Radiation from the Sun (Tars) for Interstellar Payload

https://arxiv.org/abs/2507.17615
39•virgildotcodes•7h ago•4 comments

Arvo Pärt at 90

https://www.theguardian.com/music/2025/jul/24/the-god-of-small-things-celebrating-arvo-part-at-90
61•merrier•8h ago•18 comments

Where are vacation homes located in the US?

https://www.construction-physics.com/p/where-are-vacation-homes-located
80•rufus_foreman•11h ago•69 comments

Smallest particulate matter sensor revolutionizes air quality measurement

https://www.bosch-sensortec.com/news/worlds-smallest-particulate-matter-sensor-bmv080.html
4•Liftyee•2h ago•0 comments

CCTV footage captures video of an earthquake fault in motion

https://www.smithsonianmag.com/smart-news/cctv-footage-captures-the-first-ever-video-of-an-earthquake-fault-in-motion-shining-a-rare-light-on-seismic-dynamics-180987034/
434•chrononaut•1d ago•77 comments

Shallow water is dangerous too

https://www.jefftk.com/p/shallow-water-is-dangerous-too
101•surprisetalk•3d ago•54 comments

Millet mystery: A staple crop failed to take root in ancient Japanese kitchens

https://phys.org/news/2025-07-millet-mystery-staple-crop-root.html
25•PaulHoule•3d ago•8 comments

Large ancient Hawaiian petroglyphs uncovered by waves on Oahu

https://www.sfgate.com/hawaii/article/hawaii-petroglyphs-uncovered-20780579.php
79•c420•4d ago•23 comments

Test Results for AMD Zen 5

https://www.agner.org/forum/viewtopic.php?t=287&start=10
216•matt_d•10h ago•41 comments

Asyncio: A library with too many sharp corners

https://sailor.li/asyncio
72•chubot•6h ago•65 comments

Font-size-adjust Is Useful

https://matklad.github.io/2025/07/16/font-size-adjust.html
162•Bogdanp•3d ago•51 comments

OCaml Programming: Correct and Efficient and Beautiful

https://cs3110.github.io/textbook/cover.html
103•smartmic•8h ago•34 comments

Open Sauce is a confoundingly brilliant Bay Area event

https://www.jeffgeerling.com/blog/2025/open-sauce-confoundingly-brilliant-bay-area-event
322•rbanffy•3d ago•186 comments
Open in hackernews

Test Results for AMD Zen 5

https://www.agner.org/forum/viewtopic.php?t=287&start=10
216•matt_d•10h ago

Comments

eigenform•10h ago
This reminds me: has anyone ever figured out why Zen 3 was missing memory renaming, but it came back in Zen 4 and Zen 5?
Tuna-Fish•9h ago
AMD had two leapfrogging CPU design teams. Memory renaming was added by the team that did Zen2, presumably the Zen3 team couldn't import it in time for some reason.
JackYoustra•5m ago
Any writeups on why they chose this system, whether its still used today, etc? I'm completely unfamiliar with this style of management.
alberth•10h ago
While an interesting read, the title is a bit misleading since I didn’t see any actual “test results” in the post.
ooopdddddd•9h ago
The detailed results are in the links at the bottom of the post.
Someone•9h ago
AMD’s documentation for the CPU may or may not state such things as “There are six integer ALUs, four address generation units, three branch units, four vector ALUs, and two vector read/write units”, but even if it does, Agnes Fog runs actual code to check that, and often discovers corner cases that the official documentation doesn’t mention.

So, he black box tests the CPU to try and discover its innards.

titanomachy•9h ago
> Agnes Fog

Agner

djoldman•9h ago
They are linked at the bottom of Mr. Fog's post. For example on page 142 of this:

https://www.agner.org/optimize/instruction_tables.pdf

ashvardanian•9h ago
> All vector units have full 512 bits capabilities except for memory writes. A 512-bit vector write instruction is executed as two 256-bit writes.

That sounds like a weird design choice. Curious if this will affect memcpy-heavy workloads.

Writes aside, Zen5 is taking much longer to roll out than I thought, and some of AMD's positioning is (almost expectedly) misleading, especially around AI.

AMD's website claims Zen5 is the "Leading CPU for AI" (<https://www.amd.com/en/products/processors/server/epyc/ai.ht...>), but I strongly doubt that. First, they compare Zen5 (9965), which is still largely unavailable, to Xeon2 (8280), a 2 generations older processor. Xeon4 is abundantly available and comes with AMX, an exclusive feature to Intel. I doubt AVX-512 support with a 512-bit physical path and even twice as many cores will be enough to compete with that (if we consider just the ALU throughput rather than the overall system & memory).

dragontamer•9h ago
Well, when you consider that AVX 512 instructions have 2 or 3 reads per 1 write, there's a degree of sense here.

Consider the standard matrix multiplication primitive the FMAC / multiply and accumulate: 3 reads and one write if I'm counting correctly .... (Output = A * B + C, three reads one output).

rpiguy•9h ago
It may be easier for the memory controller to schedule two narrower writes than waiting for one 512-bit block or perhaps they just didn't substantially update the memory controller and so it still has to operate as it did in Zen 4.
arrakark•7h ago
Cache-line bursts/beats tend to be standardized to 64B in lots of NoC architectures.
Dylan16807•7h ago
"Network on Chip" okay got it.
crest•6h ago
A 64B cache-line is the same size as an AVX-512 register.
ryao•7h ago
AMD CPUs tend to have more memory bandwidth than Intel CPUs and inference is CPU bound, so their claim seems accurate to me.

Whether the core does a 512-bit write in 1 cycle or 2 because it is two 256-bit writes is immaterial. Memory bandwidth is bottlenecked by 64GB/sec per CCX. You need to use cores from multiple CCXs to get full bandwidth.

That said, the EYPC 9175F has 614.4GB/sec memory bandwidth and should be able to use all of it. I have one, although the machine is not yet assembled (Supermicro took 7 weeks to send me a motherboard, which delayed assembly), so I have no confirmed that it can use all of it yet.

adgjlsfhk1•4h ago
you can use higher write bandwidth than the CCX bandwidth by having multiple writes that go to the same L2 address before going out to RAM
ryao•2h ago
> inference is CPU bound

This was a typo. It should have been “inference is memory bandwidth bound”.

vient•6h ago
AMX is indeed a very strong feature for AI. I've compared Ryzen 9950X with w7-2495X using single-thread inference of some fp32/bf16 neural networks, and while Zen 5 is clearly better than Zen 4, Xeon is still a lot faster even considering that its frequency is almost 1GHz less.

Now, if we say "Zen5 is the leading consumer CPU for AI" then no objections can be made, consumer Intel models do not even support AVX-512.

Also, note that for inference they compare with Xeon 8592+ which is the top Emerald Rapids model. Not sure if comparison with Granite Rapids would have been more appropriate but they surely dodged the AMX bullet by testing FP32 precision instead of BF16.

reitzensteinm•3h ago
This is a misreading of their website. On the left, they compare the EPYC 9965 (launched 10/10/24) with the Xeon Platinum 8280 (launched Q2 '19) and make a TCO argument for replacing outdated Intel servers with AMD.

On the right, they compare the EPYC 9965 (launched 10/10/24) with the Xeon Platinum 8592+ (launched Q4 23), a like for like comparison against Intel's competition at launch.

The argument is essentially in two pieces - "If you're upgrading, you should pick AMD. If you're not upgrading, you should be."

pbsd•9h ago
Vector ALU instruction latencies are understandably listed as 2 and higher, but this is not strictly the case. From AMD's Zen 5 optimization manual [1], we have

    The floating point schedulers have a slow region, in the oldest entries of a scheduler and only when the scheduler is full. If an operation is in the slow region and it is dependent on a 1-cycle latency operation, it will see a 1 cycle latency penalty.
    There is no penalty for operations in the slow region that depend on longer latency operations or loads.
    There is no penalty for any operations in the fast region.
    To write a latency test that does not see this penalty, the test needs to keep the FP schedulers from filling up.
    The latency test could interleave NOPs to prevent the scheduler from filling up.
Basically, short vector code sequences that don't fill up the scheduler will have better latency.

[1] https://www.amd.com/content/dam/amd/en/documents/processor-t...

Dylan16807•40m ago
So if you fill up the scheduler with a long line of dependent instructions, you experience a significant slowdown? I wonder why they decided to make it do that instead of limiting size/fill by a bit. What all the tradeoffs were.
vhcr•8h ago
https://web.archive.org/web/20250726202105/https://www.agner...
londons_explore•7h ago
> Integer vector instructions and floating point vector instructions now have the same latencies.

There is very little reason to use integers for anything anymore. Loop counter? Why not make it a double - you never know when you might need an extra 0.5 loops at the end!

bee_rider•7h ago
Finally we can implement BiCGStab intuitively!
Intralexical•7h ago
Integers aren't for performance. They're for precision (anything financial for example) and occasionally size.
crest•6h ago
At least historically integer operations also offered lower latency and higher throughput on CPUs. For decades integer addition and bitwise logical operations have been the canonical single-cycle instructions that any microarchitecture could perform at least once per cycle without visible latency while floating point operations and integer multiplication had multi-cycle latency if it was even fully pipelined.

Zen 5 breaks several performance "conventions" e.g. AMD went directly from one to three complex scalar integer units (multiplication, PDEP/PEXT, etc.).

Intel effectively has two vector pipelines and the shortest instruction latency is a single cycle while Zen 5 has four pipelines with a two cycle minimum latency. That's a *very* different optimisation target (aim for eight instead of two independent instructions in flight) for low level SIMD code going forward despite an identical instruction set.

sushevff•7h ago
Totally. Can’t wait to access the 18463.637th record in my database plus or minus a record or thousand.
vhcr•6h ago
Doubles can represent integers exactly up to 2^52
mark-r•6h ago
Actually because of the implied upper bit in the format, it can go to 2^53.
varispeed•7h ago
Is it better than M4?

If a laptop will need to be plugged in to deliver full performance, whilst blasting fans at full throttle, what is the point? (apart from server / workstation use, where you don't like MacOS or need different OS)

PixyMisa•7h ago
Price.
heraldgeezer•6h ago
Windows laptops?

Desktops for gaming? AMD makes the best gaming CPUs with the X3D series.

KetoManx64•6h ago
What about actually doing something useful to bring prosuctive?
bitmasher9•5h ago
If I’m being productive I’d rather have an AMD chip than M4 so I can run Linux comfortably.
adgjlsfhk1•4h ago
Zen5 is a beat for compilation workloads
crest•6h ago
Depends on your usecase. For a thin 14" laptop an M4 is probably the closer sweet spot, but for CPU heavy workloads Apple doesn't offer anything comparable to Threadripper or EPYC (lots of fast cores, enough memory and I/O bandwidth).
makeitdouble•3h ago
Nowadays laptops are majorly used as desktop hybrids.

Getting near desktop performance when plugged but portability and lower consumption when unplugged is a pretty good tradeoff.

kklisura•6h ago
Are there any good resources on how does one obtain all of this information?
rft•5h ago
The linked PDF in the post contains a section on how the values are measured and a link to the test suite. Search in [1] for "How the values were measured". For another project that measures the same/very similar values you can check out [2]. They have a paper about the tool they are using [3].

There is also AMD's "Software Optimization Guide" that might contain some background information. [4] has many direct attachments, AMD tends to break direct links. Intel should have similar docs, but I am currently more focused on AMD, so I only have those links at hand.

[1] https://www.agner.org/optimize/instruction_tables.pdf

[2] https://www.uops.info/background.html

[3] https://arxiv.org/abs/1911.03282

[4] https://bugzilla.kernel.org/show_bug.cgi?id=206537

matt_d•1h ago
See https://github.com/MattPD/cpplinks/blob/master/performance.t...
monster_truck•5h ago
This matches my experience with Zen in basically any generation. Once you've used all of the tricks and exhausted all of the memory and storage bandwidth, you'll still have compute left.

It's often faster to use one less core than you hit constraints at so that the processor can juggle them between cores to balance the thermal load as opposed to trying to keep it completely saturated.