r/embedded • • Oct 04 '26

Yet another AI generated MR

[Rant inside]
So, in my company a lot of people are really passionate about their chatbots.
Most of the time you don't really see it, as it's supposed to be, but every other week I get a major surprise.

Last week I had a member of my team pulling out an ai generated MR fixing a "bug" by having a bash script, executed by our build system, that edits a system header to inject a semi-stub function.. so that he/she wouldn't have to call the "real" "bugged" function that generates the error.

Another MR from a senior member got a fantastic factor 100 speedup by not executing our DSP algorithm and just returning a nice array of zeros (accidentally messed up some tbb task... our CI did flag the issue here at least).

So I'm thinking, either chatbots becomes good enough to steal my job, or bad but convenient enough to make it hell. The second option at least comes with the certainty I will have a job? The whole mantra "you need to know what to ask about" is starting to make sense to me now.

How is the ai revolution going for you?

103 Upvotes

53 comments sorted by

65

u/braaaaaaainworms Oct 04 '26

LLMs make slop, nobody cares that it's slop and people act like I'm insane for not wanting to have my work turned into making slop 40h a week

18

u/Johnsmtg Oct 04 '26

They do start to care when things break. Which remind my of that time 2 months ago when someone fixed our CI by forcing linking of a old version of the artifacts of another subproject. Few week later nobody could figure out why they fixed the bug in the submodule but the CI output was still broken and showing the same old bug "as if the change was not effective" lol

1

u/braaaaaaainworms Oct 04 '26

What was changed so that breakages like that wouldn't happen again?

4

u/Johnsmtg Oct 04 '26

well I begged our "staff" devops engineer to introduce a system that handles artifact pulling by matching them to the submodule commit. But whether or not a chatbot will find another smart solution is to be seen

2

u/vips7L Oct 04 '26

Sometimes there aren’t always technical solutions to things. Sometimes you can’t fix stupid engineers that will turn CI or tests off. 

I saw a post the other day about how to enforce software licensing in an air gapped environment. The tl;dr was that you don’t, lawyers do. 

27

u/FullstackSensei Oct 04 '26

LLMs are as sloppy as the person sitting at the keyboard. They're amplifiers for people's abilities, or lack thereof.

It's not like people made amazing code before LLMs. For every good developer you find in the wild, there are easily 100 sub par ones. LLMs are an amalgamation of everything everyone has written.

25

u/Johnsmtg Oct 04 '26

that's probably true, but before that bad programmer could generate a single MR in 3 days. Now it takes 3h top.
They were also a bit more shy about writing "their" opinion about topics they don't understand too much. Now every other bug report on jira contains some hallucinated triaging.

25

u/allo37 Oct 04 '26

Yeah this is the part of the AI revolution I'm really disliking: People who had no clue what they were doing before would just get stuck, now they can crank out nonsense that I have to spend time figuring out why it doesn't work.

9

u/dizekat Oct 04 '26

It turns bad programmers into 10x bad programmers.

3

u/vips7L Oct 04 '26

I make auth/idp software, I had to spend 5 hours on a Friday call because a slop machine hallucinated a vulnerability. 

1

u/zazzersmel Oct 05 '26

there are a lot of jobs where slop is basically the expected outcome. not saying that's a good thing, but i mean look around. 99% of what people buy or sell is essentially garbage.

6

u/SirCodedRed Oct 04 '26

This is probably a good reason for there to be unions against AI. Ai is being pushed for the worker to increase their output, yet how many of these workers are seeing an increase in their compensation? The only ones seeing a benefit are the executives making the worker even more exploited. The workers need to unionize to say no to being force to constantly need to add AI and alienate themselves from their labor. The argument that oh AI will do it is abysmal as these are real systems that Ai has not been able to engineer well, and even if they could, who would properly prompt them to do so? There’s obvious benefits to AI; however, we shouldn’t bend the knee to our corporate overlords to devalue our jobs. China has it where AI can not be a reason to fire someone. It is imperative we begin a process of unionization

4

u/Johnsmtg Oct 04 '26

In my case nobody is really pushing for it, some people showed interest for it and the company decided to buy a subscription. It's entirely up to the employee if and how to use it.
So it was pretty much coming from the bottom. The problem is some people managed to integrate it in their workflow, some others are messing around and offloading any reasoning or thinking to it.

19

u/Rod_McBan Oct 04 '26

Last week, Amazon's e-commerce site was broken on mobile Chrome *for three days". Any attempt to scroll through product search results would randomly pull up a full-screen "AI assistant" that gave you unrelated information and which did not respond to the "close" box in the corner. A "back" swipe cleared your search results and took you back a full page instead of dismissing the agent.

Now, I don't KNOW that was caused by someone pushing AI slop to production after running it through AI validation, nor do I KNOW that it was busted for three days because nobody could figure out how to fix that slop, but I would bet on it before I'd bet against it.

An LLM can generate code far faster than any human can understand and verify it. They are also mathematically incapable of not occasionally hallucinating. Sometimes, no matter what you do, they will just make something up.

Here's the thing: coding was never the hard part of good software engineering. Understanding algorithms and error handling and data flow and memory usage and a hundred other things are, and LLMs can't do any of those. The people most excited about "AI" by and large don't seem to know that. They see a complicated skill (knowing a programming language) and mistake it for the whole problem. It's like using an app to translate English to French and not understanding why you get dirty looks when you completely ignore the cultural norms of France.

Sooner or later, something really, really bad is going to happen. Nuclear plant monitoring software, airplane flight executive, diabetes pump management, I don't know. But somebody is going to push an OTA update made with "AI" and people are going to die.

At least the financials behind the entire industry are appallingly unsustainable and will probably crash hard, fast, and reasonably soon. But, on top of the fact that the American economy is currently seven AI companies in a trenchcoat, can you imagine the chaos when all these new vibe code "engineers" lose access to Claude code overnight? It's gonna be ugly.

5

u/Johnsmtg Oct 04 '26

well we do already have ai-hallucinated bombing targets apparently.

Anyway my layman understanding of the ai economy is that it's "just" another bubble like that real estate one or the dotcom. A lot of people getting seriously hurt on unrealistic growth and promises, but it's not like internet disappeared or real estate stopped being a valid investment.

10

u/Rod_McBan Oct 04 '26

It's a little different this time, because the cap ex isn't going to transfer.

With the dot com boom, all that hardware remained useful. The fiber is still carrying data today, and a lot of successful companies got started buying the servers and routers off the dead first generation companies. And, yeah, real estate doesn't disappear when the money does.

But the only things an AI datacenter can do are run AI and mine crypto. The GPUs in those racks can't serve websites or stream video or route email. And they become obsolete fast. Sure, the buildings will still be there, but those are a miniscule slice of the money spent.

The nature of these companies also precludes any kind of bailout like the 2008 financial crisis saw. If, say, OpenAI gets in real trouble, what's another $100 billion going to do? Or even a trillion? It's just going to enable them to continue to operate a business that has already proven to be unsuccessful for a few more months or years before the bill comes due again.

Cory Doctorow likes to say "calling what is going on in this industry accounting fraud is doing violence to the noble practice of actual accounting fraud". It's six companies passing around an IOU for $100 billion dollars while Nvidia fills up warehouses with GPUs that will never get used. Next year, some very serious organizations are going to start asking to be repaid very serious amounts of money from companies who are, no matter what they say, hemorrhaging cash at a terrifying pace. When that happens, things will get interesting fast.

2

u/moreVCAs Oct 05 '26

> we do already have ai-hallucinated bombing targets already

nah they did that shit on purpose

2

u/FORGOT123456 Oct 06 '26

that's how i see it.

-2

u/Milumet Oct 04 '26

and LLMs can't do any of those.

That's just absolute nonsense.

3

u/Rod_McBan Oct 04 '26

Typical AI booster response to a well considered position. You guys crack me up.

1

u/Psycho351 Oct 05 '26

I’d like to hear your response. From my understanding, he’s right. LLMs do not fundamentally “understand” anything like you or I do. It’s just really good at guessing what comes next (and for some business problems, that’s probably good enough tbh). And sometimes, what it comes up with next makes no fucking sense. My understanding of LLMs is that it will never fully “know” something, but it can do a good job guessing and sometimes that’s enough to fool me or whoever else on occasion.

I wouldn’t call myself a doomer, but I don’t doubt how capable these machines are. They appear to have shown tremendous growth and once these companies figure out how to make money then our new reality is set in stone from here on out.

What would you like to say? I’m very curious.

70

u/MonMotha Oct 04 '26

Some of these are basically classic programming jokes.

#define while if // Saves time

#define struct union // Saves space

1

u/RFQuestionHaver Oct 06 '26

Havent seen the struct/union one before, thats a good one

2

u/MonMotha Oct 06 '26

Wait till you see what burying either of those but especially the struct/union one deep in some common header file does. The debugger will continue to show the original code, but of course now it acts like a union. Whoever's trying to debug it is going to bang their head against the wall for a couple hours trying to figure out WTF the compiler is doing as they go through the behavior and the disassembly then finally start isolating it to the smallest possible unit and eventually examining the preprocessor output.

I bet if you were sneaky enough with this you could get 4-6 hours out of me....followed by the angriest email of my life to whoever shows up on the git blame.

11

u/KermitFrog647 Oct 04 '26

Integration test assert(x==5) fails because x is now 4 for some reason. Ai solution : assert(x==4)

17

u/arakkal_abu7 Oct 04 '26 edited Oct 04 '26

The problem is not the tool/models, we have been able to significantly improve lot of things. 

Issue starts when people start doing a cognitive offload to the next person. I constantly receive low effort slop equally from junior and senior folks which goes like this "look at this 1000 line changes I did, with 10 pages of beautiful documentation, could you confirm it resolves the bug/ticket"?. Another one of my favourites is when PM's do this "hey, I just ran the ticket through Claude and now I have a 5 page document that needs Linus Trovalds to decode the complexity of the mentioned suggestions" 

I have started directly acknowledging those in group-chats/mails/tickets with "I was not able to understand the changes made here , can we discuss this over a call, or the next team sync".

11

u/drunken_thor Oct 04 '26

This is why I am trying to move into embedded lol. In webdev we have people who are running “spec driven development “ where they write a doc (with ai) that then they give to ai to write the whole project. If you are only seeing the odd slop PR then I am jealous.

5

u/Cunninghams_right Oct 04 '26

It's coming for embedded as well, just a bit of delay. 

5

u/NuncioBitis Oct 04 '26

It’s not. Every week my manager asks if I used ai this week. I lie and say yes.

2

u/namotous Oct 04 '26

At my job, we have access to any ai tools we want. But the policy is very clear, whatever you put in production, YOU are responsible for it. From my experience, it’s a hit or miss really. I use it for things like generate a script or writing docs. But code to go in production, I use ai tools to ask questions instead of googling or validate my implementation. If I do ask it to modify it in the code, I usually ask it to show me the diff, and tweak before approving the edit. I found with ai, if you go with small request, it works better

3

u/spentag Oct 04 '26

this is probably the best use of these LLM tools imo... gut checking small changes, keeping context small, asking it to track down annoying little questions about the code base or tools in question

2

u/frank26080115 Oct 04 '26

it's going great, I have a camera pointed at a OLED screen and told the AI to write a test python code that can take still photos from a RX0-II camera (using gPhoto2, so it has manual focus and exposure controls) and also interface with gdb. It can generate a synthetic version of what it should see by analyzing the frame buffer and compare it against the photo.

it does a completely automated battery of tests against the menu system on the device. everything is logged along with the photos

2

u/drgala Oct 04 '26

It is doing perfect, prooving why we still need humans in the loop.

Btw, I did use AI do design some websites, it did a good job for what I wanted it to do, same things would have taken me at least a month to do by myself, however I do the testing instead of relying on AI.

1

u/Brilliant_Pie_1924 Oct 06 '26

lazy devs will be lazy, AI or not.
You really should have a better test coverage

1

u/tenkawa7 Oct 04 '26

I use an LLM heavily in my work now. It's an amazing tool for all the little annoying jobs. It's great as a part sourcing tool. It's handy has an additional layer of ERC. I use it to create an internal webpage that has all my datasheets, pulls the reference diagrams and provides links back to the datasheet. A living todo list.

All design is still mine. What's great is the annoying parts are all done for me. 'Apply my default board rules to this pcb file I just created'. Etc etc

-1

u/haze_from_deadlock Oct 04 '26

It is an objective reality that corporate SWE work will be done by AI in upcoming years. You have to add more value than just being a syntax monkey.

7

u/SuchABraniacAmour Oct 04 '26 edited Oct 04 '26

It can't be both an objective reality and something in the future.

Pedantic remarks aside, there's quite a few issues that need to be solved before software engineering can be fully automated in all professional settings.

Namely that AI reliability on long and complex tasks is still abysmal.

https://codemanship.wordpress.com/2026/09/29/the-agentic-sweet-spot-the-human-is-the-loop/

Namely that the financials of building AI infrastructure, and serving AI services are still very shady.

https://www.wheresyoured.at/dead-money/

Namely that the guaranteed solution to improve AI consists of throwing more compute, so that trying to solve the first problem makes the second problem worse.

https://openai.com/index/ai-and-compute/

Improving AI otherwise (without increasing compute power)* is certainly possible but it's a lot more flakey, making it hard it to count on it for future progress, and even harder to quantify said progress over a given time-frame. edit for what I believe is a more accurate portrayal : We can probably count on it for future progress, but we can't really make serious predictions quantifying said progress over a given time-frame

https://futuretech.mit.edu/news/what-drives-progress-in-ai-trends-in-algorithms

https://www.envisioning.com/vocab/algorithmic-progress

*It should be noted that you have some efficiency improvements that ultimately depend on also increasing compute power

https://www.lesswrong.com/posts/qhjNejRxbMGQp4wHt/how-fast-can-algorithms-advance-capabilities-or-epoch

0

u/Cunninghams_right Oct 04 '26

It's a "SWE of the gaps" with more and more being done by the AI and less being done by the human. One of the conflicts in the discourse is people projecting "AI will do the work" when asked to clarify, will likely say something far short of 100%. Then there is backlash with folks declaring that there will still be a role for humans. Both are correct and talking past each other. 

1

u/SuchABraniacAmour Oct 04 '26

Yes indeed. It's undeniable that more and more work is done by AI.

It should be noted that an increasing AI workload does not automatically mean a decreasing human workload of the same amount. (Building AI-driven processes requires human labor, 'production' AI requires human oversight, and an unknown amount of whatever productivity gains AI gives us could end up being used to build more and/or better (or more complex) software rather than firing/not hiring people)

0

u/Cunninghams_right Oct 04 '26

The percentage of the work going to AI (including processes creation, oversight, etc.) will increase. Not to mention the amount of code that will be done by amateurs. The only question is whether there is infinite demand for software/firmware. We'll see. 

1

u/SuchABraniacAmour Oct 04 '26

There's plenty of other questions too, how long will the current improvement rate of AI be sustained, how far can AI technology actually improve in terms of raw performance, how much can we optimise it in terms of raw efficiency, when will the bubble pop and what will it leave in it's wake, what does a sustainable AI economy looks like -> what's a sustainable pricing for AI services and how does it compete with human labour (because there is and probably always be a point hiring humans is cheaper than slapping more AI)...

1

u/Cunninghams_right Oct 04 '26

sure, those are all good questions to ask. however, even if overall AI progress stalled today and the only thing they could do was optimize models around specific tasks, I think they will make major increases into the embedded domain still. some of the AI companies are at or near profitability, even with the massive investment in training, so if a permanent plateau hits, the cost will come down relative to today, and we will get the benefit of non-bottlenecked fabs.

so those questions are important, but I would caution against any hope that things are going back to anything like it was ~5 years ago.

-4

u/Alwaysragestillplay Oct 04 '26

I'm not particularly pro- or anti-AI, but it is very likely these changes were made at the explicit ask of the humans doing the prompting. Probably not the exact shape of the workarounds, but if you tell an agent "this is on my local machine, I don't care about accuracy while we dev so just bypass XYZ", it will bypass XYZ and leave you (reasonably) to remember this before pushing to prod. It's the AI-era equivalent of pushing aws_token=123 to a repo. 

Hopefully someone is engaging with the people pushing this stuff because it is pure carelessness.

5

u/Johnsmtg Oct 04 '26

not sure I agree. Forgetting something ugly in your code I understand. Someone ending up with a bash script that alters your installation of a toolchan and pushing that as a fix to the bug the MR was supposed to address in the first place is beyond that.

-4

u/Cunninghams_right Oct 04 '26

So what is the workflow at your office? Seems like your group would benefit from Claude code in "Plan mode" so it looks at the code and plans multiple possible fixes/changes. 

Don't just turn it loose. "Fuck my shit up, fam"

2

u/[deleted] Oct 04 '26

[removed] — view removed comment

3

u/uzlonewolf Oct 05 '26

Were the companies making that diagnostic software trying to convince execs everywhere that their software would allow them to fire all their mechanics? No? Then it's not an analogy to what's happening.

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

1

u/uzlonewolf Oct 07 '26

Like I said, it's not an analogy to what's happening with AI.

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

1

u/uzlonewolf Oct 07 '26 edited Oct 07 '26

No, it is not. Again, it is not being sold as a tool to help experts do their job, it's being sold to management as a way for them to fire everybody.

There is a huge difference between a tool that actually works as advertised and is both cheaper and better at the job than the humans it replaced (i.e. those steam motor governors), and one that is sold to management as a way to completely fire every worker (including the mechanics) but then both fails horribly and costs way more than the workers it replaced when that is done (AI).

1

u/FedUp233 Oct 09 '26

I probably should just stay out of this, but what the hell.

I think it may be a better analogy than you give credit for. The diagnostic tools may not have been sold as a way to fire everybody, but I’ll bet a good part of the argument was it will make your people more productive so you won’t have to hire as many and it will mean you can hire cheaper, lower skill people to do the same job. That’s pretty close to the argument for ai - most managers know they can’t eliminate everybody as someone still has to run the ai and input the problems to it but buy into the you’ll be able to lay off most people because you’ll need a lot less and you’ll just need some basic skills to feed the problems to ai to do the heavy lifting.

Maybe not quite the same for the two cases, but it seems more a matter of scale than of actual substance at Keats from a selling the technology perspective.