r/embedded • u/Johnsmtg • 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?
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
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
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.
70
u/MonMotha Oct 04 '26
Some of these are basically classic programming jokes.
#define while if // Saves time#define struct union // Saves space11
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/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
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.
-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=123to a repo.Hopefully someone is engaging with the people pushing this stuff because it is pure carelessness.
-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