posted in Technology
Linus Torvalds let Claude Code fix the Linux page cache. Then reviewers found a race.
They got to him
thenewstack.io/torvalds-claude-code-kernel/posted in Technology
Linus Torvalds let Claude Code fix the Linux page cache. Then reviewers found a race.
They got to him
thenewstack.io/torvalds-claude-code-kernel/Replying to @mannycalavera@feddit.uk
On Tuesday, he submitted a 10-patch series that delivered a 23-fold throughput improvement in a synthetic benchmark
Impressive, probably kind of like I can answer math questions very very fast.
Reviewers have since identified a race condition and raised concerns about memory reclamation.
That what I thought, I can answer math questions fast, but I don’t claim to be able to answer them correctly.
Replying to @Buffalox@lemmy.world
So you’re saying the review process worked as designed?
Yes, but it’s bad because software has bugs.
Replying to @Diplomjodler3@lemmy.world
Maybe it did, but apparently the code was not properly reviewed initially, so there could be other hidden problems.
Of course that’s the same for human made code, but there’s a problem in only judging code from how it performs, and not actually understanding the code. And that seems to be the situation with a lot of AI code.
Replying to @Buffalox@lemmy.world
And particularly disturbing when the human understanding failure is from the original and lead Linux developer.
Is it an understanding failure, an unexpected interaction, or just an existing issue now exposed? A 23x performance increase could very well expose an existing race condition that systems weren’t fast enough to run into.
People make mistakes. Software bugs existing at all is proof of this. This is certainly not the first time a change Torvalds approved has an issue, and it won’t be the last.
There’s a reason code is reviewed, and there’s a reason people still go through after it is approved and verify. The process is working exactly as designed, the way it has for decades before AI coding.
Expecting absolute perfection is ridiculous, the anti-AI circlejerk acting like only AI fucks up just makes them look ridiculous. Any developer could have developed this fix, and there would be no article. Nothing in this issue is specific to AI usage and treating it like it is somehow special just undermines arguments against AI slop and vibe coding in general.
Replying to @db2@lemmy.world
100% that is the worst place to have the problem originate.
I have rarely disagreed with Linus Torvalds on things regarding the kernel, and maybe I’m wrong, but I strongly disagree with him on this issue. Contributing code nobody understands cannot be a good thing.
Replying to @Buffalox@lemmy.world
Contributing code nobody understands cannot be a good thing.
You people act like Linux adopted an all-AI pipeline.
Replying to @Buffalox@lemmy.world
The code still undergoes the exact same code review as before, because humans were the original slop coders.
The standards needed for code to be accepted haven’t changed at all. Even the code Linus personally is reviewed…
Replying to @auzy1@lemmy.world
The code still undergoes the exact same code review as before.
That’s not good enough, because it is well documented that AI often make mistakes and absolutely needs to undergo way stricter review.
It is also well documented that although you can achieve some results quickly, AI code also quickly becomes impossible to maintain.
If nobody understands the code, as it seems was the case here, and it is introduced anyway, the kernel is doomed to deteriorate.
My wife has already noticed deteriorating quality in Debian, with system hangs after they loosened the requirements for AI code. The quality of Debian now is lower than it has been in a decade!
Maybe you need to watch something like this:
Replying to @Buffalox@lemmy.world
Lol. That guy banned me from his community yesterday. He doesn’t want debate, he wants to be surrounded in yes men and it’s clear he has no idea how the kernel process works.
That was after I pointed out that submissions to the kernel go through a huge process to get to main
I actually checked, and I can’t find any evidence whatsoever he contributes code anywhere, and his blog is at best described as human slop. It’s fairly obvious that he already had a conclusion, and tried digging up anything to support it.
He basically thrives on rage bait
Well documented by who exactly? Show some examples please. Because in my own experience over the past year, I’ve resolved probably hundreds of bugs in our products and a lot of it was due to AI identifying logic bugs. It can produce crappy code, but I’ve also had to review some absolutely crap code too. The kernel team have been discussing providing official AI agents files and such to help the code match what they’re after
Nobody is generating AI code and simply pushing it to main lol. And, if you submit badly written code immediately, the team are going to spot it easily
Also, if you’re getting system hangs, there are so many possibilities for that. Define system hangs for starters. That could be anything, but it’s been the opposite of my experience. At best it’s anecdotal. At worst you have a gpu driver possibly with a single bug causing issues
I can’t remember the last time my nuc 14 pro plus hung for anything other than self stupidity
Replying to @auzy1@lemmy.world
Lol. That guy banned me from his community
Maybe because you are making stupid ignorant comments.
Replying to @Buffalox@lemmy.world
Or maybe his blog post falls apart completely by simply pointing out that AI isn’t approving code, code doesn’t go straight to main, and all code is manually code reviewed by human.
And his blog is pages of slop.
Replying to @auzy1@lemmy.world
AI isn’t approving code
You really seem to believe that’s a good point, but it isn’t.
It is an extremely well documented fact that critical/independent thinking declines with use of AI, and you apparently have zero understanding of that fact.
Replying to @Buffalox@lemmy.world
You seem to believe that’s a great response. At this point, you’re just arguing (which seems to be most of your Lemmy history).
If you want to argue that a journalist with a slop blog and no evidence of being a developer anywhere is credible, that’s up to you.
All I see is obviously bad journalism from a guy who wants attention…
Replying to @Buffalox@lemmy.world
Did you even read that 1 study you’re repeating, or just click the link
If you read the study, they ran the tests over 13 mins only. And, they didn’t keep retesting to see if results changed over time either. If that ran the test over an hour, both results may have ended up at similar levels (we don’t know because it only tested over a short time)
You need to learn to stop exaggerating or actually read crap instead of just the headline lol
I know it’s the same study we both (or presumably just myself) read, because it was the only one. I wouldn’t call that “extremely well” anything
Replying to @Buffalox@lemmy.world
So, let me get this right. You’re disapproving on how things were handled based on your speculation of how it went?
Replying to @Diplomjodler3@lemmy.world
Not based on speculation, based on numerous analysis of the problems with using AI code you don’t understand.
Clearly Linus failed to understand the code, otherwise he wouldn’t have suggested it for submission.
You seem to have a problem with criticism of Linus, is it a religious thing?
Replying to @Buffalox@lemmy.world
Of course of course. How dare you blaspheme against our Lord and Saviour, filthy infidel!
But anyway, I’d like to be as enlightened as you. Could you name any of those numerous analyses that detail exactly what Torvalds did and what he failed to understand?
Replying to @Diplomjodler3@lemmy.world
No I can’t, because those are so general and commonly known, that if you somehow are unaware, you must have been living under a rock for the past year.
The second option is that you are just trolling or for some reason is in denial.
Either way I’m not wasting my time on any of those options.
Replying to @Buffalox@lemmy.world
You understand it less it sounds like.
This isn’t a unique or interesting story in any capacity… It’s boring and normal
Replying to @auzy1@lemmy.world
Race Conditions are common.
For Christ sake, of course I know that.
Replying to @Diplomjodler3@lemmy.world
Only while there are still reviewers who care to review the slop. Which is a rare breed and will quickly soon vanish.
Replying to @devfuuu@lemmy.world
I bet some projects will get more tolerance and love than others, based on value and utility. The kernel will get more, and Systemd will get less.