logoalt Hacker News

carterschonwaldyesterday at 8:31 PM1 replyview on HN

whats your fave/best one shot code gen?

mine def has to be the initial impl of my python to my personal fave compiler ir. i got claude chat to write it in two sentences. 4 turns helping it rmeemver where it put shit becsuse of transcript issues


Replies

sdesolyesterday at 9:39 PM

The code in http://github.com/gitsense/gsc-cli contains over 300 go files and I would say 90% were one shots. I can even prove that they are AI generated since I attribute the AI in each file, as shown in the example below:

https://github.com/gitsense/gsc-cli/blob/main/internal/cli/r...

Since I don't know go, I can't say which is the best. I am also sure they would not live up to a go experts expectations. I just know that since I don't know go, I would not have been able to create the tool. I can also prove that you can easily maintain AI generated code since I have been expanding and evolving it for over 6 months with pretty much no issues.