News for hackers. Stuff that matters.
Re:Using AI to write better code more slowly by yread on Tuesday May 26, 2026 @02:52AM (#48276029)
> I go back and forth a bit to see if its proposals are better than mine

I find it useful to let it generate benchmarks comparing the approaches. Turns out AI is terrible at guessing whats faster or allocates less

Re:Using AI to write better code more slowly by puilp0502 on Tuesday May 26, 2026 @06:27AM (#48277689)
> Turns out AI is terrible at guessing whats faster or allocates less

s/AI/a human being/ would work equally well, lol.

Jokes aside, I do like the approach of letting the AI build something deterministic and make decisions based on that.

Re:Using AI to write better code more slowly by chris_st on Tuesday May 26, 2026 @06:27AM (#48277691)
Yup, just like people!
Re:Using AI to write better code more slowly by ptsneves on Wednesday May 27, 2026 @03:12AM (#48290773)
I had the exact experience yesterday.

I have a performance problem and went down the path of optimising part of a pipeline that when benchmarked was not the bottleneck, even if it looked plausible for me and the llm. When I asked it to make a final benchmark for documentation I found most of the work I did improved 30% while another path would have improved a magnitude more.

Thankfully iteration is now faster than ever and given how fast it creates tests, previous tests created for the aborted optimisation were helpful.