A 3rd World Embedded Engineer Responds to "RISC-V They Should Have Known Better" (rvembedded.com)

171 points by Narishma 3 hours ago

ndiddy an hour ago

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-V is great for embedded because companies can build it into custom chips with specifically the functionality they need, and because of how cheap it is for low-end use cases since there's no license fees.

The only real point of contention I see between the two is that this piece goes on to talk about how it's a selling point that RISC-V can be used for both low-end 10 cent microcontrollers, and high-end multi-core processors running Linux. Personally I don't see the benefit of this since you're going to have to recompile your software anyway, and since all the RISC-V SBCs I'm aware of have significantly worse performance and efficiency than comparably priced ARM SBCs.

whateverboat 27 minutes ago

The huge number of companies building RISC-V chips and really crazy optimizations that they are doing in all kinds of spaces are a very real counterweight to your notion.

And RISC-V is just starting here with shoestring design and fab budget. Wait till all engineering teams really adopt it like Tenstorrent and NextSilicon and so on.

yjftsjthsd-h a minute ago

> The huge number of companies building RISC-V chips and really crazy optimizations that they are doing in all kinds of spaces are a very real counterweight to your notion.

I assume this is addressing

> and since all the RISC-V SBCs I'm aware of have significantly worse performance and efficiency than comparably priced ARM SBCs.

If so, could you point at specific SBCs that beat ARM SBC perf?

pixelesque 18 minutes ago

> really crazy optimizations that they are doing

Any examples of this?

PunchyHamster a minute ago

gertop 26 minutes ago

> Personally I don't see the benefit of this since you're going to have to recompile your software anyway

The benefit is a unified toolchain. Make a chip, get the entire software toolchain for free.

In the past if you made your own chip you had to write your own assembler, compiler, debugger, etc. Many manufacturers forked gcc but of course it's still a lot of work and the license isn't great (for them, not the user).

This universal compiler toolchain is massive benefit for both the chip makers and the end user.

quotemstr 30 minutes ago

Different RISC-V dialects might as well be as different from each other as English is from German. Sure, the cognates, family the resemblance, and common(-ish) alphabet make some things easier, but if you're shipping a manual, you still need to do it both in English and auf Deutsch unless you rely on machine translation.

So it is with the family of mutually incomprehensible ISAs called RISC-V.

vlovich123 an hour ago

He says:

> From that position, the difference between a ten cent part and a one dollar part is not a rounding error and it is not a detail you get to wave past on the way to the interesting discussion about encodings

Yet earlier:

> I pay anywhere from US $60 to US $200 to ship one dollar chips that people everywhere else get free shipping on

Seems to me that the difference between a 10c chip and a $1 chip are a rounding error when the shipping cost dominates so much?

cupantae 28 minutes ago

I’d really like an explanation here if the author is reading. And how does shipping cost scale with quantity? Can you get that to be small per unit on big orders?

HawtAds 2 hours ago

I love the article, it's a breath of fresh air compared to the usual bay area centric takes. However there's just one issue:

> The students I want to teach are in the same position, and so are the ones in Nigeria and Bangladesh

It does not take $60 to ship small sub $1 chips from Asia to Nigeria/Bangladesh. These two countries are all on global trade routes (both supply and demand) and the expensive last mile delivery costs are fairly low there too.

bigcat12345678 an hour ago

This is a bay area centric take on a non bay area centric take.

The typical bay area centric take has the following vibe:

1. I am among the group of most open minded people

2. I admit mistakes, but I don't change my view, that means I may make the same mistakes next time on a different concrete cases

3. Morally I am among the least corrupted

4. I work for the moderately morally questionable firms with nice paychecks, but my moral views are not tainted a bit

5. I never think on the other's perspectives

tekla an hour ago

As exemplified in the following series of essays

https://www.astralcodexten.com/p/the-foothills-of-bay-area-h...

Avicebron 44 minutes ago

msdz 30 minutes ago

TruffleLabs 2 hours ago

Is this comment on shipping costs from Asia to Nigeria/Bangladesh based on your experience? If there is a less expensive way then share the approach to help others :)

em-bee 2 hours ago

i don't know how trustworthy rateships.com is, but according to them shipping costs to nigeria and trinidad are similar. and as for the last mile, the cost probably goes up because local shipping is rather unsafe (higher rate of theft of packages).

notenlish 40 minutes ago

It could be bureocratic barriers. For example, Turkey recently changed importing laws so that anything(even stuff sent to you for free) from outside the country is subject to tariffs & import costs. Importing a cheap component worth 1$ costs like 300$.

gaius_baltar an hour ago

> It does not take $60 to ship small sub $1 chips from Asia to Nigeria/Bangladesh

So don't even try to find how expensive is bring these to Brazil. Even the $5 orders from JLCPCB become infeasible for hobbyists here due to all the roadblocks.

spacechild1 an hour ago

> from Asia to Nigeria/Bangladesh.

Bangladesh is a country in Asia...

farlight an hour ago

I am in Asia, this means nothing, it's the largest continent on earth. I don't pay as much for shipping as the author does, but his struggles are nevertheless relatable: most sellers refuse to ship here, most of those who do want dozens and dozens of dollars for it, and some (few, usually Chinese) sellers save the situation from being completely hopeless.

pooper an hour ago

In my experience, people in the United States often (incorrectly) short hand East Asia as Asia just like the people in the city of New York will often (correctly) short hand New York City as New York.

bonoboTP an hour ago

tyre an hour ago

chronic7403 an hour ago

cyberclimb an hour ago

I don't think they are necessarily asserting otherwise

spacechild1 an hour ago

Ar-Curunir an hour ago

BigTTYGothGF 32 minutes ago

So is Ireland.

alephnerd 2 hours ago

> it's a breath of fresh air compared to the usual bay area centric takes...

HN hasn't been Bay Area centric in years. Honestly, most comments and usership on the platform seems to now align with SWE culture in DACH and CEE.

Presumed RISC-V hate is a perfect example of that - the UCs and CSUs have been using RISC-V in their curriculum since the 2010s becuase Patterson is faculty at Cal and most CompArch courses in both systems have been using RISC-V as a result because 61a/b/c are often used as the benchmark curricula wise. An entire generation of Californian computer engineers have been RISC-V fluent as a result.

The hivemind assumption that HN's user base is "venture capital", "tech bro", "founders", and "Silicon Valley" is around 5 years out of date.

Anecdotally, the vast majority of younger (below 30) founders, engineers, VCs, and builders in the Bay have either not heard of HN or quit it within weeks due to toxicity.

greyb 2 hours ago

>HN hasn't been Bay Area centric in years. Honestly, most comments and usership on the platform seems to now align with DACH.

I honestly do not get this at all. HN remains very US-centric to me, and especially centric to the mindshare of the Bay Area's IRL conversations, and apart from some takes on tech rights, does not really remind me of my experience in DACH.

weinzierl an hour ago

r3trohack3r an hour ago

alephnerd 2 hours ago

orangeboats 2 hours ago

Non-American here... what is DACH?

greyb 2 hours ago

slater 2 hours ago

snowpid an hour ago

" HN hasn't been Bay Area centric in years. Honestly, most comments and usership on the platform seems to now align with DACH and CEE. "

I like to encounter discussions about German digital health system or the German start up system or neo2. I've never seen them so I doubt it.

Also almost no debates about Polish stuff (Hello neigbours!)

GPerson an hour ago

How is it not tech bro centric when every third thread is about some new feature of a random Anthropic product?

handwarmers an hour ago

the fact that this comment is getting downvoted into oblivion instead of discussed is poignant enough.

fwiw, my experience is similar. hn has not been about startups, vc funding, or anything in that space for quite a while.

to paraphrase a classic, this place is like a memory of the forum we used to love, and the memory is fading.

bigbadfeline an hour ago

jacquesm an hour ago

So, you are calling the author a liar?

ksec 43 minutes ago

I don't think the Author disagree with what the original article wrote. If anything everything he said seems to reassert what the original article intended to state.

And while things has died down a lot in the past few years, there is a reason why I wrote the line.

"You do not criticise The Rusted Holy Grail and the Riscy Silver Bullet."

kazinator 8 minutes ago

[delayed]

gregsadetsky an hour ago

Working archived copy - https://archive.is/9FaRC

syncsynchalt an hour ago

Is archive.is still a malicious site that DDOS's finnish security bloggers or has that been sorted?

Sha1rholder 2 hours ago

Nice read!

Though it feels a bit strange that "I have exceeded the allowed number of requests. (500 times)" when I first clicked the article and I'm pretty sure I don't share the ip of my self-hosted VPN with anyone.

Animats 7 minutes ago

I got that too and couldn't read the site.

tclancy an hour ago

I think it’s telling the site owner, not us.

Ericson2314 24 minutes ago

My perspective using Nix is that it's hardly worth standardizing ISAs. Recompiling software is easy and we should have a Cambrian explosion of different designs.

This is especially good if one scopes out a family of ISAs that are ABI compatible such that one can compile down to a semi-pre-optimized portable IR, and just do the last bit per ISA.

ip26 18 minutes ago

What exactly does a bespoke ISA buy you? What will justify hundreds of engineers writing a new good one & working through the compiler support?

I bet it would be pretty easy for a user to interoperate between 67 different drafts of the HTTP spec once they were all written, validated, and library implementations coded. But what would that Cambrian explosion of API revs actually get you?

avmich 2 hours ago

To me it feels like the difference in positions is "this could be made better" vs. "but this is already so much better than before". Both are right.

Maybe I'm missing something important so far...

ipdashc an hour ago

I was thinking the same. RISC-V is certainly impressive and I'm glad we have it, but the original article isn't wrong in its complaints either.

It definitely could have gone with a less abrasive tone (as entertaining as it is), so it's no wonder it's getting some pushback.

thayne 25 minutes ago

Maybe. I'm not sure if the original author's intent was to say how risc-v could be better or to say it is bad and people should use other (proprietary) ISAs instead.

IshKebab 2 hours ago

Yeah the complaints in the original article are valid, but it's like complaints about Android or iOS. There are plenty of valid complaints against either, but neither is strictly better than the other.

msephton an hour ago

This is the sort of content I endure this place for. Thanks for posting.

moomin 3 hours ago

Absolutely hugged to death.

urbnspacecowboy 2 hours ago

deadbunny 2 hours ago

503 for me. So good they crashed the IA

Kwpolska an hour ago

AlienRobot an hour ago

201984 32 minutes ago

ksec an hour ago

> Request Limit: 500 per minute

I mean that is not even 10 page view per second. We are not living in 2006. Actually even in 2006 Apache with static page would have been able to handle that on a small VPS. And that is excluding CDN.

initramfs an hour ago

"Now price the same journey on the other side, forget x86-64 and that duopoly, patent minefield, with multi-thousand dollar debug probes; we'll take a look at ARM."

The 386 and 486 patent should have expired more than 20 years ago. No one tried to open source it. https://github.com/EI2030/Low-power-E-Paper-OS/blob/master/0... There were many companies that had clones in the early 90s, and I wonder whether any of them still have the rights to manufacture them.

" That is a better reason than elegance. and I want to tell Mr Grinberg, that the word priviledge he tosses around in his article also extends beyond the ISA depending on where you are in the world."

Grinberg is an emigre from Ukraine, which isn't the most privileged place in the world. In fact his research articles go deeper than the average software developer in Silicon Valley.

Conan_Kudo an hour ago

There are 386 and 486 open source reimplementations in Verilog (see z386 and z486). As far as I know, existing commercial 386/486 chips still manufactured (yes they exist!) are descendants of Cyrix work, not Intel or AMD. Consequently, VIA may be contractually holding those back rather than Intel/AMD doing anything there.

initramfs an hour ago

Thanks for that information! I have been interested in getting x86 produced in smaller nanometer (e.g. <32nm). My project: https://ei2030.github.io/FemtoTX/#about

Edit: It also appears Nvidia might also have an x86 license: https://www.nvidia.com/en-us/drivers/uli-m6117c/

Also, https://www.tomshardware.com/pc-components/cpus/intel-licens... (Caveat: The startup is acquainted with the Intel CEO, so it's rare for them to grant the x86 license to non-buddies.)

"Intel provided Rosaic access to an unknown Atom-class core, which enables the company to build its own custom processors based on x86 general-purpose cores, according to the report. The renowned chipmaker plans to ship Rosaic register-transfer level (RTL) code for the Atom processor core, which will let the startup build its custom system-on-chip (SoC) both at Intel Foundry and elsewhere."

What's interesting is that a startup with limited funds would most likely seek a 32-bit x86 license if a) they don't need more than 4GB of RAM, and b), if they don't want to pay AMD for the 64 bit license add-on. :)

Conan_Kudo 23 minutes ago

kqr2 2 hours ago

Original HN discussion referenced:https://news.ycombinator.com/item?id=49298035

ckot56 an hour ago

I have no idea what's going on here, but the title alone gave me second-hand engineering stress. Solid post.

decide1000 2 hours ago

That is just an amazing website and initiative.

https://rvembedded.com/products/project-lab/

Definitely interested!

msla an hour ago

"Rate Limit Exceeded"

Does anyone have an archive?

epolanski 2 hours ago

The author of the article just got a fan.

Some serious stuff he builds on top of those chips.

ploxiln 33 minutes ago

This blog post is very defensive and argumentative, which I guess is fair considering Dmitry's post is similarly inflammatory, but most of it was really not convincing:

> Simply put, the things a high-end CPU needs are diametrically opposed to the things a small cost-saving microcontroller core needs.

> The conclusion he draws is that no single ISA can serve both ends, and that RISC-V fans are fooling themselves, in theory the premise is true. The conclusion does not follow, and I can show you why from three parts sitting on my desk as we speak.

> CH32V003. This is the cheap "RV32EC" with sixteen registers, no multiplier, no divider, machine mode only,

> CH32H417. A dual core MCU that is unmatched in performance to price point and is at the higher end of the MCU line

> Baochip. A VexRISC-V with an MMU built around a stack thats open from silicon to os Baochip-1x: A Mostly-Open, 22nm SoC for High Assurance Applications

Uh, which one of these is a datacenter server cpu? Or a workstation cpu? Or at least a developer laptop cpu? How about a Raspberry Pi 4 level SBC (supporting latest ubuntu and fedora releases, driving a display that runs a browser and plays video ...)

There's a lot of angry indignation but it seems obvious that Dmitry is quite right about this.

But I found this is where this blog post starts making a lot of sense:

> Has anyone tried adding an MMU to a Cortex-M? The physical tradeoffs are real, the difference is that with RISC-V, the ISA owner does not decide for you where that boundary must be drawn. If you want virtual memory on ARM you license a Cortex-A instead, which is a different core family, a different profile, a different negotiation, and a different royalty.

> Compare what happened with Baochip. The RISC-V privileged specification defines supervisor mode and Sv32 paging as optional things an implementation may provide. VexRISC-V is an open core, somebody added an MMU to it. bunnie built a chip around it and runs a microkernel with real process isolation on it

Yeah, that is a good point. We're still in the low-end specialty realm, but that is real interesting advantage for RISC-V, a good reason for it to exist.

As for shipping to Trinidad and Tobago ... this post is trying too hard to turn this into moral issue, but it seems a bit random (OrangePi cost $30 and shipped free? you can also get arm-based and stuff from the same places), and the vast majority of people don't live on semi-remote islands, it doesn't make sense to consider this kind of accessibility above all else, and it's strange to blame Dmitry for not thinking of you here.

hrydgard 32 minutes ago

More than half the article is AI slop. Sad.

Lagoon3384_SWE an hour ago

Just an unlucky spawn point. We need to focus on ourselves. "oh no shipping to some remote island is expensive compared to NYC that has next day free on everything" Well, duh.

MBCook an hour ago

So “you were born somewhere ‘unlucky’, that’s how it goes, sucks to be you”.

Is that really your take?

gertop 15 minutes ago

It's a distasteful take to be sure. But, what is GP supposed to do?

Frankly I'd rather be told that than the other common but tired SV-resident take of "just hustle, bro, stop sleeping, hustle hustle hustle. Learn to code, take loans from friends and family. Doesn't matter that you're born in a shithole, I was born in a median family myself, we only had one car and we rented our house!!! Just gotta work for it, everybody can achieve it. Those who don't, are clearly not working hard enough."

soulofmischief an hour ago

Naïve take. We live in a global neoliberal economy, our standards of living are the direct result of introducing scarcity and other forms of exploitation elsewhere while keeping domestic populations largely unaware of how unfair their position is. There is no ethical basis to simply "focus on ourselves" here. We must do the exact opposite.

mohamedkoubaa 38 minutes ago

Appeals to an ethical basis don't work on everyone

roughly 36 minutes ago

trueno 32 minutes ago

yo this is actually some really fire reading. i had to read it twice then go back and read the original that he's responding to here. i feel full of wonder right now seeing people who are this deep into compsci debating merits in the marketplace of ideas, there's just so much going on globally with computing that i never even get to see. super fascinating to read about the different constraints at play here even the global socioeconomic ones and how they apply to the chip world in general. it sounds like risc-v's real play is democratizing access to the entire embedded stack