by tommyage · 1w ago · 0 comments
LLMs modify source code.
Comparing LLM-generated code with a deterministic compiler are two completely separate things. Wishing for feature/reliablity pairity isn't the same as provable pairity.
The Comment OP, imho, hits the nail on the head. No offense but exactly comments like yours enable people at the workplace to compare LLM-generated code to be equal to engineered solutions.
There is a gap and I won't aid any LLM to close said gap.
Anyway in such cases, it's the compiler (respectively the LLM) that "completes" the specification of the HLL (respectively natural language) so that the machine code (respectively HLL source code) is produced.
Although I agree that both humans and LLMs maintaining the HLL source code is a mess. And exactly based on the compiler analogy - simultaneously maintaining the same assembler source by hand and with a compiler (from an HLL) would be a mess too, we don't do it for a reason.
I do! HLL aid humans in maintaining the abstractions, quirks, comments and design. That was my take indeed. Could you please elaborate why non-determisim is misleading?
> Anyway in such cases, it's the compiler (respectively the LLM)
Why respectively? LLMs munch statistics over a specification and do not guarantee a fully implemented requirements backlog.
I think you are inplying that we are putting a requirements document into a computer program specification. Either code needs to be verified by test cases.
Though the compiler is mathematically proven to transform Input A to Output C. LLMs might be capable of it and can be verified _on each occurance independently_ e.g. taking test cases in consideration.
So it differs in my mind. I can rely on the compiler but the LLM.
Reading someone else code thoughtfully requires high effort and focus on a specific issue in my limited experience.
It is a sacrifice I am willing to make in order to verify something which matters at this time to me. Sorry for the prolonged reply. Can't put my head or langauge around it - written from my gut.
I was explaining the analogy.
> Could you please elaborate why non-determisim is misleading?
Because LLMs can be made deterministic, but it's also clearly not what bothers you. I think the real question is if you're able to predict the resulting output (we could call it non-chaotic or linear behavior). Part of it is, as you state:
> I can rely on the compiler but the LLM.
And here I think you're imagining a bigger distinction than there really is.
Compilers routinely make decisions which are difficult to predict, especially in performance. Registers spill and break caching, GC can do random things and cause memory issues, query optimizer chooses wrong sequence of joins. And compilers also used to have bugs.
So on one hand, we've given up determinism of the compilers, for performance. That means we can abstract away details of an efficient algorithm. But this forgets how inefficient compilers used to be.
On the other hand, we're making LLMs more reliable. They abstract away details of what we want, and similar to evolution of compiler (although LLMs evolve faster), and we're increasing the precision of alignment of what the user wants with what the resulting program does.