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

178 points by Narishma 3 hours ago

95 comments:

by 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.

by gertop 36 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.

by quotemstr 40 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.

by whateverboat 37 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.

by yjftsjthsd-h 11 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.

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?

by pixelesque 28 minutes ago

> really crazy optimizations that they are doing

Any examples of this?

by PunchyHamster 11 minutes ago

There aren't ones that wouldn't be served better by ARM

The improvement is entirely "we don't have to pay ARM"

by 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?

by cupantae 38 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?

by egypturnash 5 minutes ago

Rate Limit Exceeded Too Many Requests

You have exceeded the allowed number of requests. Your Requests: 500. Request Limit: 500 per minute. Tip: Please wait 60 seconds before trying again.

A 3rd World Embedded Engineer Learns About Caching Generated HTML The Hard Way

by HawtAds 3 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.

by 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

by tekla an hour ago

As exemplified in the following series of essays

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

by Avicebron an hour ago

This one was more self-aware than others. But we all know the demon voice of San Francisco sounds like a shoggoth trained on LessWrong.

by msdz 40 minutes ago

Thank you so much for sharing these. I just laughed my ass off a bunch, and I’ve only yet read this one latest post in the series.

My favorite bit, I think (along with the running gag of the constant use cases/connections that somehow pop up for Epstart’s founder):

> “Would you like to hear more about how copying AI tics helps me keep conversations going?”

> “Uh, sure - wait! No!” You break off and turn around as fast as you can.

If the other entries in the series are anywhere near as good, I’ll have some reading to do now.

by 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 :)

by 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).

by notenlish an hour 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$.

by spacechild1 2 hours ago

> from Asia to Nigeria/Bangladesh.

Bangladesh is a country in Asia...

by 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.

by 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.

by tyre an hour ago

Slight correction, people in NY refer to it as “The City” and people in NYC say the same, but specifically mean Manhattan.

by chronic7403 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.

In my experience, the only demographic who complains about “Asia = east Asia” are people from South Asia, aka Indians/desis

by andybak an hour ago

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"

by Conan_Kudo an hour ago

We aren't the only ones, but we are the loudest about it, because erasure sucks.

by stavros an hour ago

Don't get me started about Macedonia.

by bonoboTP an hour ago

It's an interesting evolution given that Asia as a term started out meaning just the westernmost tip of current-Asia, ie Western Anatolia.

by elashri 4 minutes ago

When the term started out, There was nothing called United States (As a country or its current culture/s). And I am not sure if this happens outside the US anyway.

by cyberclimb an hour ago

I don't think they are necessarily asserting otherwise

by spacechild1 an hour ago

So what does it mean to ship from Asia to Bangladesh? Do you ship from India, Iran or Indonesia? Or just within Bangladesh? :)

by articulatepang 13 minutes ago

In the context of microcontrollers and electronics, the likeliest intended meaning was shipping from China, South Korea, Taiwan and perhaps Japan, because that’s where the bulk of the fabs are.

by Ar-Curunir an hour ago

Shipping from Asia to Asia doesn’t make much sense

by cwillu an hour ago

Asia is a pretty big place

by k_roy an hour ago

Compared to a banana?

by BigTTYGothGF 42 minutes ago

So is Ireland.

by 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.

by 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.

by 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.

by weinzierl an hour ago

As someone from the DACH region I very much agree with this. I don't see a shift from typical US opinions to opinions often held in the DACH region. Not at all.

by r3trohack3r 2 hours ago

> HN hasn't been Bay Area centric in years.

>> HN remains very US-centric

Bay Area != US

The Bay Area is its own microcosm of culture and philosophy that diverges significantly from much of the US.

Not making a statement on how prevalent either are on HN, but Bay Area is very much not equivalent to the US.

by MBCook an hour ago

As an American, it’s extremely Silicon Valley centric, at least in mindset.

Extremely. The valley/startup lens is absolutely the dominant one.

by alephnerd 2 hours ago

> I honestly do not get this at all. HN remains very US-centric to me, and apart from some takes on tech rights, does not really remind me of my experience in DACH.

The majority of HN's usership, posting, and comment activity occurs during peak EU work hours (3am-9am), stylistic patterns that are common for German-, French, and Polish-native speakers are increasingly prominent (eg. periods and spaces instead of commas in numbers, spacing between quotation marks and words, failing to use context clues to infer timezone), and the fact that IRL conversation topics in the Bay Area tech scene are entirely different from those on HN shows a massive divergence in userbase.

HN "Who wants to get hired" threads are a good example of that as well.

I'd recommend deep diving in the HN scrape dataset on HuggingFace [0]. The site has diverged heavily compared to 2018 or 2012.

[0] - https://huggingface.co/datasets/open-index/hacker-news

by Avicebron 2 hours ago

How would you say the "IRL conversation topics in the Bay Area tech scene" diverge from HN?

by snowpid an hour ago

While I appreciated your source 1.) I doubt 99% of Europeans work during 3am - 9am 2.) At least there can be other reasons: 2a.) EU times and African times are basically the same and Africa has a huge population. 2b.) India is closer timewise to EU/African time zones 2c.) What are about posts afterworks?

" RL conversation topics in the Bay Area tech scene are entirely different from those on HN shows a massive divergence in userbase. " Any proof?

by orangeboats 2 hours ago

Non-American here... what is DACH?

by greyb 2 hours ago

It is Germany, Austria, Switzerland.

by orangeboats 2 hours ago

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

by slater 2 hours ago

Germany, Austria, Switzerland (D, A, CH)

by 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!)

by 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?

by handwarmers 2 hours 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.

by bigbadfeline an hour ago

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

Well, this place (wherever you are) is like a memory of the world we used to love, and the memory is fading... Definitely true too.

You can't expect a place tightly connected to a changing world to stay the same.

by jacquesm an hour ago

So, you are calling the author a liar?

by ksec an hour 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."

by kazinator 18 minutes ago

> He derives the case for the chip and then spends the rest of the article annoyed that the chip exists. This is almost satirical.

His criticisms are entirely valid, because why can't the the thing that has a free spec and will likely dominate that space ... also be good too? Can't we have all the nice things?

by 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.

by tclancy 2 hours ago

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

by Animats 17 minutes ago

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

by gregsadetsky an hour ago

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

by syncsynchalt an hour ago

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

by 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...

by 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.

by thayne 35 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.

by 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.

by Ericson2314 34 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.

by ip26 28 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?

by msephton an hour ago

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

by moomin 3 hours ago

Absolutely hugged to death.

by urbnspacecowboy 3 hours ago
by deadbunny 2 hours ago

503 for me. So good they crashed the IA

by Kwpolska an hour ago

Nah, that's just Internet Archive being Internet Archive.

by AlienRobot an hour ago

We'll need an archived copy of the archived copy.

by 201984 42 minutes ago
by 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.

by 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.

by 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.

by 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. :)

by Conan_Kudo 33 minutes ago

I'll also point out that we've always had better starting points for open source high performance cores. SPARC and POWER both have open ISAs and open-source cores with useful performance. The UltraSPARC T1 and T2 processors were open sourced under the OpenSPARC project. POWER has the OpenPOWER project governing the Power ISA, and IBM itself created Microwatt, Chiselwatt, and the A2I/A2O cores as open source that people can build their own PowerPC systems from.

OpenFirmware came out of OpenSPARC and is also used by POWER too. Parts of it are used in ARM and RISC-V today (mostly DeviceTree, though arguably quite badly).

Nobody actually wants to make good cores for cheap. Nobody wants to make compatible systems unless forced to. That's why ARM and RISC-V are fragmented messes.

by initramfs 28 minutes ago

True, and the only reason I'm partial to x86 and even some older ARMv cores is that there is a huge existing software ecosystem already available, reducing the need to develop new bootloaders and ports, as coding hours aren't free. CISC cores are treated as if they are a dirty word, but are more versatile for covering various applications.

by Conan_Kudo 24 minutes ago

PowerPC at least still has a living ecosystem, even from the bootloader level. GRUB can boot from an OpenFirmware system. There's also yaboot if you hate yourself. ;)

I would personally love to see more Power Systems based projects. Everything is out there, just someone has to want to do something with it.

Fedora Linux even fully supports POWER8+ little-endian systems, and Fedora KDE offers a live ISO you can install on something like a Talos Workstation.

by kqr2 2 hours ago

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

by 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.

by decide1000 2 hours ago

That is just an amazing website and initiative.

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

Definitely interested!

by ploxiln 43 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.

by msla 2 hours ago

"Rate Limit Exceeded"

Does anyone have an archive?

by epolanski 2 hours ago

The author of the article just got a fan.

Some serious stuff he builds on top of those chips.

by hrydgard 42 minutes ago

More than half the article is AI slop. Sad.

by Lagoon3384_SWE 2 hours 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.

by MBCook an hour ago

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

Is that really your take?

by gertop 25 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."

by 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.

by mohamedkoubaa an hour ago

Appeals to an ethical basis don't work on everyone

by roughly an hour ago

Let’s take the rationalist approach, then: does the author of this blog post seem like someone who could contribute reasonably to humanity’s future? Does it seem like we might be doing ourselves a disservice by ignoring them, and those like them?

“I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops.”

― Stephen Jay Gould

Edit: y’all really don’t like being told you should care about other people, huh?

by trueno 42 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

Data from: Hacker News, provided by Hacker News (unofficial) API