Three prevalent themes in the discussion
- LLMs can improve code when a clear, measurable goal and feedback loop are provided
- “If it can be measured, then LLMs can optimize it.” – hombre_fatal
- “They can use tools like
perfand do some analysis on the output… as long as you’re sort of babysitting the process, you can make pretty rapid improvement to naive code.” – loeg -
“Give it a benchmark feedback loop then it might get there eventually…” – metalspot
-
LLMs often stall, over‑fit to the benchmark, or suggest superficial changes that lack deeper architectural insight
- “They can also spin round and round making the numbers worse because they don’t actually know what to do.” – Capricorn2481
- “The point of this post is that this is explicitly not the case… learns from iterations where changes caused a regression after a revert.” – minimaxir
- “Unless its an easy memory/parallel/algorithmic win, its not worth it.” – vatsachak
-
“They won’t suggest writing a tool to make their own life easier…” – ashkankiani
-
Human guidance, proper measurement harnesses, and documentation (e.g., ADRs) are essential for useful LLM‑driven optimization
- “You need a place were you can document invariants, why you have them + the rejected ideas and acceptable risks.” – hombre_fatal
- “I find that really just need a sensible framework within which the optimization can take place. Essentially just providing the measurement harness…” – lordnacho
- “When I run into things like this, it becomes a one‑liner in my instructions/harness… I instruct agents to proactively build/improve diagnostic tooling…” – hombre_fatal
These themes capture the consensus that LLMs excel at measurable, iterative tuning but still rely on human expertise to set goals, avoid pitfalls, and steer toward meaningful improvements.