Rustacean Station · Hands-On Engineering Podcasts · November 2026
David explains why strong typing matters for microcontroller pins that can serve several functions. He contrasts Rust with C, which lets you cast any type into any other.
…about so he contacted me and we had some really interesting conversations around what could be done and about something later I've got I've got those 10 chapters done and I'm still kind of polishing things up a bit but yeah that's that's how we how we got we got to we got to that book in the end
…with C versus when you're working with Rust is there's particular bugs that that Rust can catch that C cannot besides obviously that you know the memory management things like that is there is there other things that make Rust a more valuable language for embedded development than compared to C?
…is strongly typed. So this is why ADA was chosen by the American DoD as a prime language for software development for DOD-related projects. Because you have that added safety. When you have a strongly type language, if you declare a variable of a specific type, you can only assign to that variable values of that type, unlike things like Python is very loose about types, or even C, because in C, of course, you can typecast a donkey into an elephant. You can typecast anything into anything. And that here is a minefield in terms of software development. Well, in Rust, you simply can't do that. The Rust compiler will say, no, you can't do that. This is not the right type. And it won't allow you to compile. So a practical example again in embedded software development will be something like IO ports. So most of those microcontrollers have Mayo ports and they are fairly generic. A little pin for an I/O port can be used for an L2D converter, but can also be used for a general purpose I/O…
Now, in your book, you do do something which is quite important. I think people who are writing Rust don't always do, which is you need to build a no standard binary from scratch, right? What's actually involved with that? And why is that such a big deal that you need to make a very clear point…
So that's a really good question. So as I mentioned, the book is called Embedded Software with Rust. And there's always a heated discussion around what do you mean by embedded. And some people would say, embedded Linux is embedded programming. Or in my case, when I look at embedded, and I think a…
What about when you boot an application for embedded development with Rust versus C, is there something that's kind of different about it, or is it basically exactly the same? Now, the reason I ask that is because, you know, I had one of my first episodes, maybe even the first episode I ever did on…