Comment LLM ~ Compiler? (Score 1) 76
I'll steer clear of the code attribution/copyright questions. That's too complex for my brain. I'll also steer clear of the fact that one should understand the code they submit. That's obvious, surely.
What I'm primarily confounded by is Linus's "AI is a programming tool like a compiler is" analogy. I first heard him make it here (the video starts where his remark does). His recent mailing list email seems to be an extension of that line of thought of his, together with the "editors are programming tools too" remark for effect and bluster. The analogy seems to be, AI is a tool that takes the process
[High level code] -> [Compilers] -> [Machine code],
and augments it to
[Code narration] -> [LLM] -> [High level code] -> [Compilers] -> [Machine code].
I sort of see the analogy, but I am not as smart as Linus so I don't really see it. Unless you're working on the compiler, you're not going to, nor are you expected to, check the low-level code it generates from high-level code for correctness. Isn't it also the logical conclusion of that same analogy that we don't need to check the high-level code an LLM generates, either? This conclusion isn't far fetched. It is what seems to have happened with the race condition issue behind his recent 10 patch series he used an LLM to produce.
I actually do understand Linus's pragmatic approach to LLM usage declarations, but as a leader of an enormously important project, he appears to be setting an awfully bad programming example by pushing and/or pursuing this compiler analogy.