Hacker News new | ask | show | jobs
by lodovic 19 days ago
This is just moving to a higher level of abstraction. Nowadays people don't verify the compiler generated assembly code anymore. We don't care if our source generates a few million extra instructions. Source code is just an intermediate between specs and binary at an abstraction level decided by the developer. We do requirements -> code -> assembly.

To resolve this we should aim for a new intermediate format that is more high level than source code, the generated code is too monotonic to properly review manually. Something like requirements -> detailed specs for llm -> code -> assembly . Then let one agent implement the specs and have another review it. If we stay at the current abstraction level, humans become the major bottleneck.

1 comments

> Nowadays people don't verify the compiler generated assembly code anymore. We don't care if our source generates a few million extra instructions.

This analogy doesn't hold up. Compilers are designed programs and are deterministic. We "know" what they generate, and what they generate and how they generate it is well-designed and tested, and there are certainly people and teams who know how the compilers work.

None of that is true for LLM-generated code.

> To resolve this we should aim for a new intermediate format that is more high level than source code

That was the problem before and after. LLMs did nothing to address that. This is what the entire software engineering domain is about: translating loose system designs and requirements into programs.

LLMs do not replace the code, they replace the coder. The coder becomes the manager, and the model becomes the coder. The code it writes is ultimately deterministic and can be tested. The LLM coder may still hallucinate, although that can be said of human coders too. In the classic development model, we use specs and tickets to steer the output of a human coder. My take is that the same needs to be done for LLM coders.