Live data from Hacker News

A third world engineer responds to “RISC-V: They should have known better”

rvembedded.com

151–160 of 350 posts

Re: A third world engineer responds to “RISC-V: They should have known better”

#151
post #102

I don't really understand the author's conclusions about cost and shipping, and how RISC-V is cheaper and more accessible to people outside the US and Europe. He first talks about how getting $1 worth of chips can cost $60-$200 in shipping for him due to his location... but then by the end claims that RISC-V gives him "an architecture that arrives in my country at ten cents a part". I don't get how both things can be…

[flagged]

Re: A third world engineer responds to “RISC-V: They should have known better”

#152
post #146
post #66

I think he's kind of speaking past the original author. The original piece is basically about how the author doesn't think that RISC-V will take off outside embedded, because of some design decisions that lead to poor performance compared to ARM64 and because so much of the ISA being optional means that there's too much fragmentation to make binary distribution feasible. Meanwhile, this piece is mainly about how RISC…

Interesting. So I've seen a lot of reviews of RISC-V machines and they seem to be a decade or more behind in terms of performance. I always thought that was a case of "the tech is still catching up",[0] but it sounds like there are fundamental issues that prevent performant implementations? If so... I heard China was investing heavily in RISC-V, which implies that either they're going to have to settle for permanentl…

No.

Intel and AMD have proven that if you throw enough money at the problem, you can make fast microarchitectures despite a flawed ISA, and in many ways RISC-V is less flawed than x86. The things we are debating here are more along the lines of minor nitpicks.

The main roadblock to the existence of fast RISC-V cores is the entrenchment of large x86 and arm ecosystems.

Re: A third world engineer responds to “RISC-V: They should have known better”

#153
post #146
post #66

I think he's kind of speaking past the original author. The original piece is basically about how the author doesn't think that RISC-V will take off outside embedded, because of some design decisions that lead to poor performance compared to ARM64 and because so much of the ISA being optional means that there's too much fragmentation to make binary distribution feasible. Meanwhile, this piece is mainly about how RISC…

Interesting. So I've seen a lot of reviews of RISC-V machines and they seem to be a decade or more behind in terms of performance. I always thought that was a case of "the tech is still catching up",[0] but it sounds like there are fundamental issues that prevent performant implementations? If so... I heard China was investing heavily in RISC-V, which implies that either they're going to have to settle for permanentl…

the current highest performance RISC-V systems you can buy off a shelf are equivalent to a raspberry pi 5 so they're not terribly behind. in terms of IPC, currently available RISC-V cores are already basically on par with Zen 3 and Apple M1 from what i understand and Jim Keller believes that RISC-V will be the one that leads the way for raw performance.

Re: A third world engineer responds to “RISC-V: They should have known better”

#154
I disagree with some points in "RISC-V They Should Have Known Better".

For example, author claims that saving and restoring all registers in interrupt handler takes too long. But this can be solved alternatively, for example: split register set for use in interrupt and normal code. Or simply add two register banks and allow switching between them (assuming interrupts are not re-enterable). But author claims that ARM is better because it has a "store multiple registers" instruction. It wouldn't help because storing multiple registers still requires multiple bus cycles, and microcontroller probably has a 32-bit bus and no cache, so saving N registers requires N memory cycles - no matter, is it done with a single instruction (ARM), or with multiple (RISC-V). And implementing this ARM instruction makes the core more complicated with little benefit.

As for 3 instructions for array access, in a simple loop a compiler can convert index access to pointer increment.

The real weak points of RISC-V are:

- no trap on integer overflow and invalid FP results . Overflows cause vulnerabilities

- no optimizations for fast context switch, which is required for dumping legacy unsafe monolithic kernels, especially in age of AI actively searching for vulns

- weird vector extensions

Re: A third world engineer responds to “RISC-V: They should have known better”

#155
post #9

Earlier quoted context omitted.

It is Germany, Austria, Switzerland.

Thanks! I must admit this is the first time I have heard of the acronym.

Interesting, I imagined it is behind only EMEA, APAC in terms of notoriety as a geographic, multicountry market segment

Re: A third world engineer responds to “RISC-V: They should have known better”

#156
post #146
post #66

I think he's kind of speaking past the original author. The original piece is basically about how the author doesn't think that RISC-V will take off outside embedded, because of some design decisions that lead to poor performance compared to ARM64 and because so much of the ISA being optional means that there's too much fragmentation to make binary distribution feasible. Meanwhile, this piece is mainly about how RISC…

Interesting. So I've seen a lot of reviews of RISC-V machines and they seem to be a decade or more behind in terms of performance. I always thought that was a case of "the tech is still catching up",[0] but it sounds like there are fundamental issues that prevent performant implementations? If so... I heard China was investing heavily in RISC-V, which implies that either they're going to have to settle for permanentl…

> it sounds like there are fundamental issues that prevent performant implementations?

This has always been true, it is just this is one of those projects that gets some people very emotionally invested so such discussions do not happen in public.

See also Android, rust, webassembly, webgpu and so on.

Re: A third world engineer responds to “RISC-V: They should have known better”

#157
post #55

Earlier quoted context omitted.

Ironically (for my generation in the UK at least) "Asian" meant "South Asian" and for a long time we didn't have a useful shorthand for "all parts of Asia"

That might be a local thing, Hong Kong being a British colony means there's plenty of people in the UK for whom Asian means Chinese.

Asian to Brits definitely means South Asian(probably includes West Asians but I'm not sure about that). They were already bitching about this 30 years ago when the net was standardizing on American English where Asian means East Asian.

The term for East Asian was Oriental which is now considered racist/passé for some obscure reason.

Re: A third world engineer responds to “RISC-V: They should have known better”

#158
post #102

I don't really understand the author's conclusions about cost and shipping, and how RISC-V is cheaper and more accessible to people outside the US and Europe. He first talks about how getting $1 worth of chips can cost $60-$200 in shipping for him due to his location... but then by the end claims that RISC-V gives him "an architecture that arrives in my country at ten cents a part". I don't get how both things can be…

[flagged]

I hadn't thought about it, but yeah, that does sound like Claude.

But it doesn't change the question; I still expect authors to be responsible for the meaning of what they post, regardless of whether they fully wrote it themselves or not. Yes, I know, silly me.

Re: A third world engineer responds to “RISC-V: They should have known better”

#159
post #127

Earlier quoted context omitted.

Sure, but a quick search of AliExpress shows that you can get lots of ARM chips from them too, and I assume those are without any "verification hullabalu" as well, no?

In the article, he addresses the issue of clones vs 1st party RISC chips on AliExpress. As a mere dabbler, I have been bit by undisclosed errata on an STM-compatible/bootleg/clone/counterfeit Arm chip while using the official STM SDK.

Sure, but that problem should exist for both ARM and RISC-V. And if it doesn't yet, it will once RISC-V becomes more popular.

Re: A third world engineer responds to “RISC-V: They should have known better”

#160
post #146
post #66

I think he's kind of speaking past the original author. The original piece is basically about how the author doesn't think that RISC-V will take off outside embedded, because of some design decisions that lead to poor performance compared to ARM64 and because so much of the ISA being optional means that there's too much fragmentation to make binary distribution feasible. Meanwhile, this piece is mainly about how RISC…

Interesting. So I've seen a lot of reviews of RISC-V machines and they seem to be a decade or more behind in terms of performance. I always thought that was a case of "the tech is still catching up",[0] but it sounds like there are fundamental issues that prevent performant implementations? If so... I heard China was investing heavily in RISC-V, which implies that either they're going to have to settle for permanentl…

the main problem with RISC-V is also the main selling point: there is no single owner company behind steering development and making sweeping decisions

how will that pan out over the long term is really unclear and the reality is performance is actually catching up quickly

Post reply on HN