4 ms·
This is kind of interesting criticism, because as far as I can tell Casey doesn't actually have experience designing high-performance chips, he just appears to
by saagarjha 4y ago
This is kind of interesting criticism, because as far as I can tell Casey doesn't actually have experience designing high-performance chips, he just appears to work on high-performance code. Now, I'm no expert in hardware design either (I guess we kind of work in the same area, actually…?), so I can't actually provide much feedback on the actual concern brought up here, but I think it's kind of new to get this specific concern from him and not an actual chip vendor. "I think this will make slow processors and that makes me sad" is a weird place to be, generally speaking. I've heard of a dialogue that goes "I want to do x, can you make this fast in hardware" or "we added these features in the new revision, can you use them for anything?" but this kind of concern is surprising. Maybe the concern is that RISC-V is making mistakes "so elementary" that it's leaking into the world of software engineering?
- brigade 4y agoRISC-V's core philosophy, with V masks and elsewhere, is to make the smallest and simplest possible implementation as simple and small as possible (in this case, re-using the vector register file for masks reduces the minimum register file needed by 3%.) Even if it's at the expense of bigger cores needing to have additional logic to fix up the performance implications, and adding possible pitfalls like having to know what triggers a CPU switching its interpretation of v0 between "mask" and "vector". This certainly has its place; there are way more tiny ARM cores running various bits of firmware in a typical computer than big cores running OS/application code. But way more programmers write code that runs on those big cores, and to be rude, a lot of the fixups RISC-V expects of big cores feel exactly like the workarounds Intel needed to implement as CPUs became faster and more complicated, at least to me. Except Intel has the excuse that x86 dates back to the 70's so unlike RISC-V it wasn't designed with that expectation. Well, even ARM was designing new features with performance pitfalls in high-performance CPUs into the 2000's... (NEON 32/64-bit register views overlapping with the high bits of larger registers, and permute instructions with two destructive outputs, both of which were fixed in arm64)