News for hackers. Stuff that matters.
Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @04:37AM (#31943856)
Why is HN obsessed with reinventing the wheel with the new shiny (Rust, Risc-V, etc.) for applications that are perfectly served by mature, battle proven solutions which provide a reliable, cheap and quick time to market.

AVR is today a pretty niche solution, but for it's niche it's better than Risc-V for its mature silicon and tooling, robust analog and digital 5V tolerant I/O, robust CPU and peripheral clocking, cycle accurate simulators, and experienced dev pool.

The over 20 year old gas boiler my grandma has, is "powered" by an DIP packaged AVR chip and does the job just fine for controlling a couple of valves, LEDs, relays, and a PID loop. Same for the old elevator on my university. These kinds of apps is where the simplicity of AVR shines.

Source: former AVR dev

Re:What? More 8-Bit Microcontrollers? by resonious on Friday July 01, 2022 @05:30AM (#31944163)
If we're talking about Rust and Risc-V specifically, there are pretty straightforward reasons for why people like them so much.

Rust: native code with very strong safety guarantees and no garbage collection. I have yet to see another language fit that niche.

Risc-V: fully open source processor design, along with a reference implementation and tooling. As far as I know, hardware does not have a history of being free and open.

HN is hacker news after all. People like to tinker. Just because something is tried-and-true doesn't mean it can't be improved on or be re-built for practice.

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @05:35AM (#31944193)
>Just because something is tried-and-true doesn't mean it can't be improved on or be re-built for practice.

And that's why HN should also consider to look outside of the fast moving tinkerer bubble and realize that if you're trying to sell some white goods profitably there's a reason why the old and tested is used and not the latest shiny.

Hardware development is completely different than web development.

Re:What? More 8-Bit Microcontrollers? by speed_spread on Friday July 01, 2022 @08:39AM (#31945574)
You made me imagine an npm-like world for FPGA development of custom CPU from thousands of amateur packages. It was both funny anf horrible. Thanks?
Re:What? More 8-Bit Microcontrollers? by scoutt on Friday July 01, 2022 @08:45AM (#31945630)
Re:What? More 8-Bit Microcontrollers? by speed_spread on Wednesday July 06, 2022 @05:52PM (#32007278)
No, that's actually super cool! When I think of an npm project, I think of an evergrowing dependency tree covering trivial stuff such as leftpad.
Re:What? More 8-Bit Microcontrollers? by tcmart14 on Friday July 01, 2022 @11:29AM (#31947791)
While I am excited about RISC-V, let makes sure we don't get carried away.

> Risc-V: fully open source processor design, along with a reference implementation and tooling. As far as I know, hardware does not have a history of being free and open.

Yes, it is possible to have more FOSS hardware, but this is not a guarantee. Companies can choose to keep their implementations closed and modify the implementations. RISC-V is permissively licensed afterall.

I really hope companies who implement RISC-V in the future keep open about their implementations, but it isn't a hard requirement.

Re:What? More 8-Bit Microcontrollers? by pkaye on Friday July 01, 2022 @03:51PM (#31951859)
People seem to confuse RISC-V as open source when really its an open standard ISA.
Re:What? More 8-Bit Microcontrollers? by pjmlp on Friday July 01, 2022 @06:04AM (#31944382)
Ada comes to mind, doing it since 1983.
Re:What? More 8-Bit Microcontrollers? by speed_spread on Friday July 01, 2022 @08:42AM (#31945604)
In Victorian-era computing, Ada does _you_.
Re:What? More 8-Bit Microcontrollers? by throwaway81523 on Friday July 01, 2022 @12:08PM (#31948501)
> Rust: native code with very strong safety guarantees and no garbage collection. I have yet to see another language fit that niche.

Ada?

Re:What? More 8-Bit Microcontrollers? by socialdemocrat on Friday July 01, 2022 @06:07AM (#31944405)
Good reply! Why are we on hacker news if not because we are interested in new stuff?
Re:What? More 8-Bit Microcontrollers? by ddingus on Friday July 01, 2022 @10:25AM (#31946832)
We are into new stuff for sure!!

However, "hack" has a broader scope. Old stuff holds way more potential than one might think at first glance.

That "hacker", who digs in to the history will end up doing new stuff on that old stuff, often a "hack" and that can make "news."

:D

Cheers! 8 bits is enough, says my tagline. TGIF!

Re:What? More 8-Bit Microcontrollers? by zozbot234 on Friday July 01, 2022 @05:38AM (#31944212)
As I understand it, RV32E is small enough to compete with existing 8 bit designs, and RISC-V architecture designers have settled on that as the smallest reasonable design point. There's been many proposals for a 16-bit adaptation of RISC-V (compared to the existing RV32 and RV64, and the proposed RV128) but the interest just isn't there.
Re:What? More 8-Bit Microcontrollers? by hajile on Friday July 01, 2022 @10:14AM (#31946682)
There's a LOT more to this discussion.

SiFive claims they can fit a RV32E core into 13.5k gates, but to my knowledge, that's just the core itself without any of the IO, memory, etc.

A small 8051 implementation can be made in 2.7k gates with a lot of typical implementations using between 8 and 14k gates (but with a lot of proprietary features not actually in the spec).

Setting aside the question of power efficiency of 8-bit cores, the real question becomes one of instruction density as that determines the size of the storage and RAM (increasing these can have dramatic cost differences). To my knowledge, RV32E doesn't have a compressed instruction variant meaning every instruction is 32 bits long. 8051 instructions are between 8 and 24-bits long (generally, 8-bit for math, 16-bit for MOV, and 24-bit for immediates).

If you're working mostly on 8 or 16-bit data like a TON of MC work is, then I don't see how RV32E could have any advantage. If you're working with a lot of 32 or 64-bit data, then I can easily see a RV32E chip requiring less space for the same results.

A 16-bit only variant of RISC-V that repurposes the remaining 50% of the instruction space (used for marking 32 and 48-bit instructions) would be a much more interesting option here IMO.

Re:What? More 8-Bit Microcontrollers? by zozbot234 on Friday July 01, 2022 @10:55AM (#31947232)
> To my knowledge, RV32E doesn't have a compressed instruction variant meaning every instruction is 32 bits long.

AIUI, the E variant is designed to work quite well with the standard compressed encoding. Of course implementing compressed instruction decode takes some area, too; there will be some crossover point at which the density benefits of compressed instructions will more than pay for the higher complexity of decode.

Re:What? More 8-Bit Microcontrollers? by monocasa on Friday July 01, 2022 @11:28AM (#31947769)
Yeah, I've heard from someone implementing it that on an RV32I core (so not quite a RV32E, but pretty close), the area difference between implementing the compressed instructions and not was about the same as 64 bytes of SRAM. There is a cross over point, but it's pretty damn low. Particularly when you weigh the reduced size of the code memory needed, it's almost always a no brainer.
Re:What? More 8-Bit Microcontrollers? by socialdemocrat on Friday July 01, 2022 @06:02AM (#31944370)
I am not speaking as someone working in industry but somebody with a hobby interest and as a writer. I have been looking at solutions to reach assembly to beginners. I think Things like Arduino and AVR has been great for beginners in terms of getting solutions up and running. Wiring works fine.

My issues is that I have realized that as a platform for teaching assembly it isn’t ideal. RISC-V gives a much friendlier ISA while also offering something which is realistic for modern hardware.

Re:What? More 8-Bit Microcontrollers? by a2800276 on Friday July 01, 2022 @06:31AM (#31944558)
But wouldn't it be preferable to use a 32bit RISC-V uController or a dirt-cheap ARM core like the RP2040 for teaching? Any 8 bit platform would be specialized either towards legacy support or extreme cost optimization, but not towards beginner ease of use ...
Re:What? More 8-Bit Microcontrollers? by pclmulqdq on Friday July 01, 2022 @04:38PM (#31952521)
That is initially what RISC-V was for - it was born out of a teaching ISA that was easy to program and easy to implement in hardware.
Re:What? More 8-Bit Microcontrollers? by HeyLaughingBoy on Friday July 01, 2022 @01:19PM (#31949646)
As someone working in industry, I really have to wonder at the reason for teaching assembly to beginners while the rest of us are trying to move up the abstraction ladder. Care to expound on why you're doing this?
Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Saturday July 02, 2022 @09:34AM (#31958856)
Debugging embedded software or even low level software or examining malware is much better at assembly level.
Re:What? More 8-Bit Microcontrollers? by HeyLaughingBoy on Monday July 04, 2022 @01:51PM (#31979903)
I see. I don't know much about malware, but I do know a bit about embedded programming and it's been a solid 20 years since assembly has helped me to debug something.
Re:What? More 8-Bit Microcontrollers? by FullyFunctional on Friday July 01, 2022 @05:23AM (#31944114)
I don't think anyone would seriously claim that the existing 8-bit architectures represent any optimal design point (AVR definitely does not). A constant cycle of innovation is what characterize all technology progress.
Re:What? More 8-Bit Microcontrollers? by nousermane on Friday July 01, 2022 @05:34AM (#31944189)
AVR might be not optimal in mathematical sense, but it feels so nice:

- Tons of registers, up to a point where there are attiny parts with no RAM, and they are fairly usable;

- Great code density for embedded - single-instruction atomic GPIO bit sets/bit resets, branch-if-bit-set/reset, etc;

- In general, pretty approachable instruction set, if one fancies writing some assembly/machine code directly, while GCC also targets this ISA without issues;

- Brilliant JTAG-like hardware debugging interface that uses zero extra pins (reset pin is reused), and hardware-wise, interfacing requires serial port + one diode, that's it [0]

[0] https://github.com/dcwbrown/dwire-debug

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @05:29AM (#31944153)
Let's not let perfect be the enemy of good.

A lot of embedded devices and white goods are profitable to build and sell in the economies of scale, because they can reuse an old microcontroller design like the AVR, which is not the pinnacle anymore, but that's been proven over decades to be robust and reliable for specific use cases.

Technology progress is happening regardless, but not all products benefit from switching to the new shiny. Especially legacy boring products.

Some AVR perks like 5V tolerant I/O, and pins able to sink high currents, is something rarely found on newer more modern ARM or RISC-V chips which tend to be more "fragile" in some regards. So this is why sich older chips could still be advantageous.

Re:What? More 8-Bit Microcontrollers? by HeyLaughingBoy on Friday July 01, 2022 @01:28PM (#31949761)
> So this is why sich older chips could still be advantageous

Yup. I just found myself having to buffer an ESP32's output with an LS245!! because the old-school LED display I needed to drive required more current on its logic inputs than the ESP could source. An AVR would have driven it just fine.

And before anyone asked why I used a 74LS245 instead of a more appropriate level converter, I had to go with what's in stock these days and this design will have at most 3 units built.

Re:What? More 8-Bit Microcontrollers? by tgv on Friday July 01, 2022 @05:35AM (#31944194)
What innovation is needed for 8 bit controllers? If you need something more powerful, get another controller: there are plenty. Are they less hardened, too expensive, or voltage-sensitive? Then that's where to look for innovation.
Re:What? More 8-Bit Microcontrollers? by pmarin on Friday July 01, 2022 @12:40PM (#31949047)
HN is a news site, mature, battle proven solutions are not things people are hyped about.
Re:What? More 8-Bit Microcontrollers? by stackbutterflow on Friday July 01, 2022 @05:00AM (#31943968)
Why is HN obsessed with reinventing the wheel with the new shiny (Rust, Risc-V, etc.)

What else does this "etc" include?

Re:What? More 8-Bit Microcontrollers? by lesuorac on Friday July 01, 2022 @07:17AM (#31944816)
Probably eink, is slate not good enough for you?
Re:What? More 8-Bit Microcontrollers? by baybal2 on Friday July 01, 2022 @04:44AM (#31943891)
There are Padauks, Holteks, Sonixes and others most EEs in the West never hear about
Re:What? More 8-Bit Microcontrollers? by alar44 on Friday July 01, 2022 @04:44AM (#31943889)
In my opinion, it's because new programmers find C scary due to the prevalence of Python. There's no need to learn anything anymore with all of our RAM and storage. Programming has essentially turned into scripting.

Today you load the boiler library and type start().

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @04:47AM (#31943905)
>Today you load the boiler library and type start().

Not when you have safety critical real time applications that need to be certified.

Gas boiler control isn't move fast and break things web development. Unless you want to blow yourself up.

That's why old AVR solutions are still used. They've been certified once, they work just fine for this purpose even on newer products. So you go with it. It's a slow moving industry for this reason.

Also, embedded dev is way more than writing C or python code and how many "bits" your CPU core has. You need to take into account clocking sources and stability, analog and digital I/O, on package voltage regulators, tolerance to glitching and brownouts, etc. and for certain applications, AVR chips are way more robust than newer ARM or RISC-V shiny.

Re:What? More 8-Bit Microcontrollers? by rtpg on Friday July 01, 2022 @05:09AM (#31944026)
I don’t want to go too much into C vs Rust but loads of C code out there, when it comes time to manipulate strings or do something a bit complicated, ends up a hacky mess.

For all the implications you are making about “move fast and break things” in web dev, at least newer tech stacks makes it easier to not completely break your data structures cuz the abstraction ceiling made doing things the right way hard.

Of course experienced C programmers “get it”, design their code in a way to avoid these pitfalls, and can right performant, correct code. I just think that it’s easier with a lot of other tools for stuff that’s just a bit complicated

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @05:19AM (#31944095)
I feel you're mixing things up. Not every embedded application requires parsing strings or JSONs like you do with web frameworks.

AVRs and 8 bit chips in general are mostly used in various fixed point numerical control applications like CNC, industrial automation, elevator control, and white goods for the home like washing machines, HVAC, and microwave ovens, so for that they're perfect and so is C.

All they do is read some buttons and sensors, crunch some basic math, run a state machine, and turn some motors, LEDs and relays ON and OFF. That's it.

Complex string manipulations is something you'll never see on an AVR chip in such production applications.

Re:What? More 8-Bit Microcontrollers? by jjoonathan on Friday July 01, 2022 @04:32PM (#31952430)
Fixed point is a perfect example of an abstraction ceiling that makes it unnecessarily hard to do the right thing.

At first it's fine, but then you'll want to do some filtering, and then some coefficient buckets will start to overflow, and then you'll start tracking exponents, and before you know it you've sunk engineer months or years into an ugly, buggy, underpowered reinvention of floating point numbers.

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Saturday July 02, 2022 @09:31AM (#31958825)
I've shipped safety critical motor control embedded software that runs flawlessly on thousands of cars using only fixed point math without it being ugly, buggy or underpowered, precisely because everything was computed only in fixed point fractional math.

You're just making up FUD.

Re:What? More 8-Bit Microcontrollers? by jjoonathan on Tuesday July 05, 2022 @11:29AM (#31989372)
"It was good enough for me, so it should be good enough for everybody."

Lol.

Re:What? More 8-Bit Microcontrollers? by otter-rock on Saturday July 02, 2022 @04:55PM (#31962308)
Seems like you didn't need fixed point in the first place. It's for when you need guarantees.
Re:What? More 8-Bit Microcontrollers? by scoutt on Friday July 01, 2022 @05:28AM (#31944152)
I've worked on dozens of embedded projects that don't need string manipulation. Or just outputting some log string through a serial port, which is removed in release.

Why do you think you'll need to process input strings?

> just a bit complicated

Like what? Most embedded projects don't use concurrency, or even dynamic allocations. Not every projects is a hackable bluetooth/wifi stack, that you need Rust otherwise [insert favourite exploit FUD here]. It can be as simple as a toothbrush with two buttons and a motor.

Re:What? More 8-Bit Microcontrollers? by rtpg on Friday July 01, 2022 @10:32AM (#31946919)
I’m just talking about business logic and data structures. It seems fine to want to not have bugs in principle!

Though to your point when we’re talking about 8-bit microprocessors the amount of complications that could even be placed. I just feel like it’s totally normal to feel lacking when writing/reading certain kinds of code in C.

Re:What? More 8-Bit Microcontrollers? by scoutt on Friday July 01, 2022 @11:11AM (#31947484)
> business logic and data structures. It seems fine to want to not have bugs in principle!

I think there is no (embedded) language so far which prevents you from having bugs in business logic.

Re:What? More 8-Bit Microcontrollers? by pjmlp on Friday July 01, 2022 @06:06AM (#31944396)
Those Python programmers scared of learning C, can also use certified Pascal and BASIC compilers then.

https://www.mikroe.com/mikropascal

https://www.mikroe.com/mikrobasic

Re:What? More 8-Bit Microcontrollers? by alar44 on Friday July 01, 2022 @05:23AM (#31944117)
Agreed, I was illustrating what Python programming looks like to me. Having experience in embedded C, I see Python as a templating language at best, and it's obviously not something you'd use for critical systems. Every time I use Python I end up rewriting libraries in C.
Re:What? More 8-Bit Microcontrollers? by atoav on Friday July 01, 2022 @05:12AM (#31944053)
I program C, Python, Rust and Javascript, Java, C#, C++, ... And I can assure you the reason I started using Rust is not that I find C too scary. It is an interesting language that has some seriously interesting concepts in it.

To rule out certain (very security relevant) classes of mistakes entirely is good as well.

That being said, learning Rust also made me a much better C programmer, because it forced me to deal with many problems and concepts that might bite even experienced C programmers once in a while all while using a language that just won't let you do the stupid stuff.

Of course that makes you angry and you curse at the compiler. And then you think about why this doesn't work and this is the moment where you pause and go: "Oh.."

For me the enlightenment came when a tech blogger asked for the fastest string tokenization program in any language and I sent him my 10 minute naive Rust thing and it won second place. The first place was hand crafted assembler. My thing could handle UTF-8, the other could not.

This is a real and tangible thing, not just some "shiny" thing.

Re:What? More 8-Bit Microcontrollers? by 2143 on Friday July 01, 2022 @05:38AM (#31944218)
> it won second place

Out of how many?

While I'm pretty sure you're a very competent programmer, there's a possibility others used non-optimal algorithms.

A good algorithm in a slow language can, on the limit, be faster than a bad algorithm in a faster language.

Case in point: Norvig's sudoku solver in Python blows everything else away in performance because he put a lot of thought into the algorithm [1]. I wrote a C program to solve sudoku (using a backtracking approach), and it was nowhere as fast as Norvig's python program. Can anybody conclude python is therefore faster than C? No! The only thing you can conclude from that is that I'm a lousy programmer :)

Sure you can reimplement Norvig's program in Rust or C or assembly or Brainfuck or whatever, but that's besides the point.

[1] https://norvig.com/sudoku.html

Re:What? More 8-Bit Microcontrollers? by atoav on Friday July 01, 2022 @06:22AM (#31944491)
> Out of how many?

20 or so.

It has been a while ago so I cannot recall the exact way I did it, but I certainly didn't implement any specific algorithm, I just did the straightforward thing using Rusts builtin functions as a realistic emulation of a lazy programmer.

The point of my comment was not to claim that Rust is the faster language. The point was that you can write mediocre Rust and still end up with extremely performant code that covers a lot of ground.

Re:What? More 8-Bit Microcontrollers? by randrews on Friday July 01, 2022 @06:55PM (#31954078)
My experience exactly. I wrote an emulator in Rust for a thing implemented on an FPGA that generates a video signal. For the first pass, I just ported the Verilog code to Rust, essentially: big loop over all the pixels every frame, figure out which color it should be, return that. There are a ton of ways to factor things out of that so you're not doing repeated reads of stuff, and I was going to gradually put them in until it was fast enough...

And then the naive solution ran at 100 fps.

So uh. Okay then. I see the value in Rust now.

Re:What? More 8-Bit Microcontrollers? by scoutt on Friday July 01, 2022 @05:14AM (#31944067)
> all of our RAM and storage

This has a cost. Even saving a marginal 10 cents can make a difference.

Even if we live long enough to see a 10 cents microcontroller with 1GB of RAM/FLASH, there will be a $0.000001 part using the same technology but with 2K RAM and 16K storage.

If I'll be making millions of boilers, guess which one I will use.

> Programming has essentially turned into scripting.

Hard real time applications disagree with this. And remember that someone still has to lay the foundations to run scripts in an MCU.

> There's no need to learn anything anymore

I heard the same thing and several variants, 20 years ago when .NET came out.

Re:What? More 8-Bit Microcontrollers? by sudosysgen on Friday July 01, 2022 @03:14PM (#31951311)
10 cents for 1 million boilers is only 100k. That's about the price of an additional engineer, so it may very well be worth it to move up in abstraction instead.
Re:What? More 8-Bit Microcontrollers? by scoutt on Friday July 01, 2022 @05:03PM (#31952880)
What should I do with an extra engineer? Should I hire one just for the sake of moving up in abstraction?

100k saved is 100k earned. Half a Ferrari.

Re:What? More 8-Bit Microcontrollers? by sudosysgen on Saturday July 02, 2022 @12:20AM (#31956207)
It's exactly the reverse. You need fewer engineers because it's going to be much easier to write the same code at a higher level of abstraction. So you can have that engineer work on something that's going to make you revenue, or hire one less dev.
Re:What? More 8-Bit Microcontrollers? by socialdemocrat on Friday July 01, 2022 @06:13AM (#31944438)
More about C just being really outdated. There has been some innovation in programming language design since the 1970s. Python is not exactly cutting edge and is an entirely different language.

But Rust, Go, Swift, Zig, D, Terra, Nim and many others can potentially fill much of the same niche as is occupied by C today.

Re:What? More 8-Bit Microcontrollers? by jacquesm on Friday July 01, 2022 @04:58AM (#31943958)
I much prefer simplicity in the runtimes of things that have the potential to affect lives in a catastrophic way. With the summit being 'no runtime', which makes validating a design that much easier.
Re:What? More 8-Bit Microcontrollers? by patrec on Friday July 01, 2022 @07:18AM (#31944828)
> In my opinion, it's because new programmers find C scary due to the prevalence of Python.

A professional programmer who does not find C scary is about as confidence inspiring as a nuclear engineer who does not find plutonium scary.

Re:What? More 8-Bit Microcontrollers? by vbezhenar on Friday July 01, 2022 @05:09AM (#31944030)
I'm amateur. I decided to go with RP2040 because I have a limited time and I want to understand underlying architecture. ARM is more useful than AVR, because ARM knowledge (even Cortex-M0) is more transferrable to other fields, like my Macbook.

Same could be said about RISC-V. It's going to be big. So it's very tempting to learn it once for many different areas.

Again same could be said about Rust. I can (theoretically) write microcontroller firmware with Rust, I can write OS with rust, I can write linux app with rust, I can write website with rust. That's very appealing in terms of knowledge transfer.

There're so much things which reinvent the wheel. I think that people want to choose one good enough wheel and keep using it. C and C++ are not good enough. Rust might be good enough. ARM is proprietary and not good enough. RISC-V from outside perspective seems to be good enough. Progress has to stop somewhere.

Re:What? More 8-Bit Microcontrollers? by ChuckNorris89 on Friday July 01, 2022 @05:13AM (#31944063)
>I'm amateur.

My point exactly, and that's fine to choose whatever you're more comfortable with for your hobby projects, but when we're talking about actually developing products and shipping millions of units on tight budgets with high constraints, that need to operate flawlessly for decades in harsh environments, you'll realize why using "ye olde faithful" 30 year old AVR core, could make a lot more technical, business and financial sense than the newest shiny ARM based chips that just came out in <current_year>.

So, no offense, but amateur hobby work and shipping millions of products that need to be bullet proof, are worlds apart.

Re:What? More 8-Bit Microcontrollers? by monocasa on Friday July 01, 2022 @10:05AM (#31946575)
> but when we're talking about actually developing products and shipping millions of units on tight budgets with high constraints, that need to operate flawlessly for decades in harsh environments, you'll realize why using "ye olde faithful" 30 year old AVR core, could make a lot more technical, business and financial sense than the newest shiny ARM based chips that just came out in <current_year>.

I've found the opposite to be true being a embedded engineer. AVRs in products typically smack of the Arduino->product pipeline and don't otherwise make much sense these days in professional circles. Their BoM cost is absurd versus the other options. That's why digikey still has thousands of avrs available, but stm32fs are still in the months of lead time or qty 25 from some sketchy resellers.

It's pretty hard to justify an AVR is a design review either at the ~$3 qty 1 space where you can instead have a 100mhz arm with more peripherals that might allow more consolidation of your design, or in the lower ends where there are cheaper micros when you're just babysitting one or two slow peripherals.

Re:What? More 8-Bit Microcontrollers? by speed_spread on Friday July 01, 2022 @09:23AM (#31945997)
I've summarized your stance as "real men use C on AVR".

Newer technologies such as Rust fundamentally do not solve a technical problem, but a social one. As you say, anything can already be done reliably and cheaply using existing tools and chips _provided you already know the field_. What the new tech brings in is "knowledge scalability" - one can reuse much more of their experience from non-embedded platform and focus on learning the challenges specific to the MCU environment without having to deal with the incidental complexity of low-level programming.

Re:What? More 8-Bit Microcontrollers? by eropple on Friday July 01, 2022 @09:47AM (#31946314)
Rust is transferable, but it's the RISC-V what-ifs that don't necessarily follow. You can run Rust or Zig on AVR.