Clean it up.
CSDNnews
AI writing code is no longer new, but one day, if the developer puts the tens of thousands of lines of code generated by AI in a package, how does it react?
The answer is obvious: he was directly angry.
In recent days, an updated patch for Linux 7.4 kernels has been submitted to Linus: the whole patch added 41197 line codes at once, both for a large number of AI-generated Bug fixes and for additional testing to validate AI patches.
Sounds like nothing, even a little positive. But Linus, after reading it, went straight through a fire. Although Linus eventually consolidated the code into the core, he also dropped a harsh phrase: "Tell your AI assistant to do his thing first!"
4.1 million lines of code submitted before release, Linus.
On November 24th, the request for an update -- this patch is quite impressive in scale: 41197 code added.
Part of this is the EXT4-owned module test framework generated by AI, which allows developers to check whether the code of different modules is in line with expectations. This additional test is also intended to make the patches generated by the subsequent validation of AI safer.
On a simple understanding, the idea for this update is that since AI is already involved in the kernel code, write more tests and add a little more security to the codes generated by the AI.
However, the problem arises in the time of submission. By that time, Linux 7.4 had entered.
But this submission not only added over 40,000 lines, but also caused some code conflicts during the testing -- and now Linus can't sit.
In his e-mail, he stated that such a scale update should never have occurred at the current stage. What is even more unacceptable to him is that it seems that, as long as the purpose of the patch is to fix Bug, it is natural to merge at the RC stage.
In response, he went back to the following: “The idea that `as long as it is to fix Bug's patch, you can merge it at the -rc stage' is so wrong.” He even talks: if something like this happens again next time, he will simply ignore it and no longer merge.
Linus' worst worry: AI fixed the old Bug, but could bring a new Bug
What really upset Linus is not just the inappropriate timing of the submission, but the developers seem overly optimistic about “repair patches”. One thing he repeatedly emphasized in his email:
Don't think that you or AI will never introduce a new Bug when you fix a Bug!
Because...
In Linus, it seems: Now that these Bugs are so covert, they didn't even find out about AI, then what is the correctness of the repair code now generated by AI?
In other words, the fact that AI can find the old Bug doesn't mean that it can write a fix without a new Bug.
That's why Linus is particularly against this submission. He had even indicated that he intended to withdraw the merger request directly, but only to choose to dispose of it and to warn the author. His requirements were also clear: all new developments and test examples would have to be carried out in a separate branch until the next round of formal consolidation windows were submitted; as for the code conflicts that arose during the testing, the developers themselves would have to resolve them.
At the end of the e-mail, Linus also named AI: "Tell your AI assistant to get it done."
It's, uh, 40,000 lines of code, not all of it.
Of course, if you look at Linus' anger, it's easy to think that this update is a whole bunch of AI trash codes. But since Linus eventually chose to merge this patch, it also includes some solid performance optimization.
One of them is from
Reduces competition between multiple threads in different segments of the group. In a set of tests, 16 jobs created 60,000 empty files under their own directories, with about 290,000 files per second before optimization; after optimization, they rose to about 780,000 files per second.
In addition, the update contains two other performance improvements:
• Optimizing the deletion of documents from the document.
• Accelerate the optimization of the logging process and reduce unnecessary processing.
This update is therefore not without technical value. What really disapproves Linus is that it's in the RC phase that so much of the change has been mixed up with Bug repair, which upsets the development rhythm that should have given priority to stability.
The developer argued: "Ai, write the code, do humans need to think?
This presentation by Linus also quickly generated discussions in the developers ' community.
It has been argued that, while Linus has always spoken politely, it is this very strong style that has kept Linux in good code quality for many years. Another concern was raised: Linus was so important in the Linux project that work should gradually be handed over to other defenders. After all, if the whole project is over-reliant on an individual, it could be serious if he suddenly leaves.
However, most of the discussion was about AI writing the code.
One developer put it bluntly, it's not a place for large-scale decomposition, and the code should not introduce so many changes at once, whether or not it's AI. Some have elevated the problem to the ability of the developers themselves:
“AI can indeed be used to check the code and detect potential problems, but why does it have to be used to write codes? The writing of the code itself is a process of thinking, and do we really want Linux' core to be written by a group of people who haven't really thought about the code?
There are also direct criticisms of kernel maintainers who believe that the codes generated by AI should not be cleared and call for an end to the contamination of the Linux kernel by AI slop. However, it has also been argued that the problem should not simply be attributed to AI, but rather to whether the developers are still carefully reviewing the codes they submit.
So what do you think about this?
Reference link: https://lore.kernel.org/lkml/CAHk-=whUfwzMTpih8Xs1MxmwTCDAc [email protected]/
This brings together AI technology and industry development developers, technology lovers and industry practitioners to share big models, such popular topics as sharing technology dry goods, cutting-edge insights and real practice.
It also provides first-time access to the content of the CSDN selection, technical activities and exclusive community benefits.