logoalt Hacker News

hattmall • yesterday at 12:02 AM • 3 replies • view on HN

>Do you think that Claude Code is doing something like brute force when it writes a computer program for you?

It is 100% brute forcing. It's a more intelligent brute force than trying literally every combination, but that's exactly how it works. Generate millions of permutations, then walk backwards through them to see which matches the pattern most correctly.

In the case of programming there are other logical domain specific checks as well and testing that can all be incorporated.

That's how all of the generative AI works, generate millions of options based on the preceding pattern then test which option is the best fit, add it to the pattern and on to the next step.


Replies

bigmadshoe • yesterday at 12:19 AM

When Claude Code generates a computer program it is absolutely not generating millions of permutations of the program.

Perhaps with Riemann or similar that could apply, but I would hardly call it brute-force in the traditional sense of the term.

➕ show 1 reply
Zambyte • yesterday at 1:14 AM

It kind of sounds like you're confusing autoregression vs diffusion AI models

➕ show 1 reply
dboreham • yesterday at 6:38 AM

It's not doing that.