Lurker News
I started my career 15+ years ago doing native development (c, c++, etc), but the last decade I've been doing fullstack web applications.

I'd like to transition closer to my roots with a job doing primarily c, c++ or rust. The natural place seems to be in embedded development or firmware work. How feasible is the transition this late in the game? Any advice?

Comments (96) 61 threads

Earlier comments
wernam3 replies#
For fun or for business?

For fun - just do it. There are no barriers. Esp32, audio synthesizer gadget, cameras. Everything is cheap and available.
For the money? Expect lower pay, lower standards, worse hours and shit conditions

coryrc#
That's why I moved away from it (money).
amelius1 reply#
And AI is getting good at designing PCBs and writing firmware, at a crazy speed.
fedpost#
It's okay firmware if and only if you have a strong architectural understanding to drive it with.

In terms of PCBs... It's hot garbage. It'll make little toy two/four layer boards that kinda work for low speed stuff but that's not the kinda shit that real EEs/embedded engineers work on.

ex-aws-dude#
Sorry but I gotta call BS

If you work on firmware/embedded at the big tech companies it pays the exact same as other webshit roles and the WLB can be a lot better because there is no oncall for firmware
You're not waking up at 3AM to push out a firmware update
I've literally done it, do you want to see my paystubs?

AnimalMuppet1 reply#
There are two issues: 1) transitioning your skills, and 2) persuading someone to hire/pay you for your new skills.

Transitioning your skills is possible. But embedded is a different world and a different mindset. You a lot less RAM and a smaller CPU. You may have hard deadlines - the right answer can be wrong if it's too late. You may have multiple threads that have to share data and not corrupt it, no matter what order events occur in.
In the worst case, you may not have logging available at all, and you may not have a debugger. (I think the worst I ever had to do was attach a logic analyzer to the address bus, triggered by a specific address, and then use it to look at past memory addresses in order to figure out what path of execution had got me to the point of the crash.)
So, yeah. It's a different world. Learnable, but different.
Getting someone to believe you can do it enough that they're willing to pay you: I don't have great advice there. I spent almost my whole career in embedded. It seems to me that it's easier to get from there into, say, desktop programming, than it is to go the other way. Your best bet might be to emphasize your native development background, and count on there being a shortage of embedded people.

wojciii5 replies#
If you have no logging and no debugger .. you should run away. Fuck debugging something complex by blinking a led. This is a waste of your time.

I'm sure you can make Claude help you with this .. but still..logs are important. So is a good debugger and software support for it. It saves so much time in the end.

unrented7977#
> This is a waste of your time.

This is the reality of highly constrained embedded systems. If you don't like that, I'd suggest moving to web dev where you have state of the art debugging.

readthenotes1#
That's kind of like saying "don't be a farmer--you have to go outside".
voakbasda2 replies#
Have you never experienced a bug that goes away from adding/removing a logging statement?

I recently restructure a logging module in a client’s project, and the resulting performance gains exposed all sort of race conditions.
Sometime all you get is an LED.

studog3 replies#
I had a bug triggered by adding a comment. :-(

Continue this thread — 3 replies

Zanfa#
One time I had a register write that worked in release mode, but didn’t in debug. Ended up being an AVR timing requirement when configuring the oscillator or flash that expected the second write to happen at most N cycles after the first and debug mode just happened to add enough operations between the two lines of C to miss the window.
aforwardslash#
Having done basically that a couple of weeks ago (with a scope to verify timing signals), its actually pretty common, specially when you are implementing protocols with hard timing requirements.

And in my case, I was actually troubleshooting the code that makes leds blink, with a bit-banged implementation on a deterministic processor.

mrheosuper1 reply#
>If you have no logging and no debugger .. you should run away.

That's a wrong mindset in embedded. In this field, your debugging toolbox should not stop at debugger(gdb) or logging(UART). It must include at least: LA/DMM/PSU/O-Scope.

wojciii#
Or its the right mindset, as no every one wants to do the same shit with bad tooling.

We are not the same, obviously.

mikewarot#
You can get started learning with any of the amazingly cheap and powerful ESP32, Raspberry Pi, Raspberry Pi Pico, and Arduino stuff out there, along with dirt cheap TANG FPGAs, etc. Get some projects under your belt in your free time. Start with the canonical blinking of an LED, and step it up from there.
unrented79771 reply#
If not embedded, there is still plenty of space for low level PC programming in C/Rust/etc. Try as we might, I don't think we will ever get rid of C as the native language of low level Win/Linux APIs. Someone has to write low level drivers.

But embedded is something else entirely that I'd argue is fundamentally incompatible with the perspective of a web dev. In embedded, you need to be aware at every moment of exactly what the CPU is doing and how many resources are being used. You generally don't have multiple CPUs or even threads. Multitasking means hardware interrupts instead of cooperative threads. You also likely need to be aware of assembly because sometimes you have to write a really hot function in raw assembly to get the required performance.
Embedded is all about resource optimization, and we dev is about throwing more and more resources at the problem. It will probably be a difficult transition to make because it's a fundamentally different way of looking at and thinking about programming.
I would recommend you find a problem, then buy the cheapest microcontroller you can find and spend a few weeks learning how to optimize your code to make maximal use of the hardware while still solving the problem in acceptable time. A big part of getting my current job was talking in my interview about how I solved a novel problem by using an obscure CPU feature in assembly that resulted in 30x fewer instructions than optimized C.
Find a problem, solve the hell out of it, and speak confidently about your solution.
One benefit that web dev does bring you is thinking about concurrency. Your CPU can only do one thing at a time, but microcontrollers have peripherals that run in parallel, and the embedded system usually consists of multiple chips talking to each other and doing independent work. Managing this concurrency efficiently with a single CPU thread is a large chunk of embedded engineering. Instead of IPC, you do things like set up a DMA pipe between SPI and RAM, trigger an interrupt on I2C bytes, use harhardware timers to simulate threads. You'd be shocked at just how much concurrent work can happen with only a single non-pipelined in-order CPU thread.
If you want to break into a new field, the advice is always the same: do the work in your own time, build a portfolio, show you know the job, and speak confidently about the hard problems you learn to solve.

zergrush1 reply#
One problem I found while reading your argument is that it completely ignores the reality where LLMs are doing exactly what you described without the same level of human effort.

The "hard" stuff you described is already being done with LLMs

unrented79771 reply#
Thanks for this interjection, you sure did contribute to the conversation. Good job!
acureau2 replies#
These kinds of thoughtless, "but LLMs!", replies actually make me weirdly hopeful for the future. In a career largely about understanding and modifying systems a large chunk of "engineers" seem all too happy to offload their real job to code-writing machines. The last several years have been good to the code monkey, I suspect over the next several there will be far fewer among us.

Continue this thread — 2 replies

Load more comments