Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"

(lore.kernel.org)

9 points | by DeepLogin 5 hours ago ago

1 comments

  • AnimalMuppet 4 hours ago ago

    Two things jump out to me.

    > STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING.

    Absolutely. I read somewhere - I think in Datamation magazine back in the 1970s - that the odds of introducing a bug when fixing a bug was 30-50%.

    Well, things are better now. We don't program in assembly, so the code is easier to reason about. We have tests. (You do, don't you? Good ones that actually test that the code does what it's supposed to, not that just test trivialities?) We have AI, which may be better than humans at reasoning about the code. The odds may be better now.

    May. Has anyone done a careful measurement lately, with agentic workflows? What are the current chances?

    Whatever they are, they're still not zero. You still have some chance of introducing a bug when you fix one. So if you're going to dump fixes for a thousand bugs at once, yeah, you fixed the thousand bugs. How many did you create? Note well: The new bug may be more severe than the fixed one.

    The second thing where Linux is absolutely right: The kernel is a large team. It has a pattern of how everybody works together without stepping on each other's toes too much, and of how it's handled when the stepping happens anyway. You switched to using AI? Great. You're feeling super productive? Fine. But you still have to follow the pattern of how you interact with the rest of the team. You don't get to scrap those rules and patterns just because you fired up an agent and feel that you're faster now.

    In this case, it sounds like someone created a change set with 41,197 insertions, and wanted to merge it in right now, because it was going to be a royal pain for them to have to keep it up to date until the merge window. That kind of thing - putting your convenience (and your change set) above the rest of the team, and above the established flow of how work is done - can destroy a team. It can turn a cooperating, functional group into a selfish group that's stepping on each other's changes. Linux can't be done that way. It would not have gotten Linux to where it is now, and it won't be a functional way to go forward.