News for hackers. Stuff that matters.
Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @10:57AM (#33854768)
Here is OP,

If anyone has any questions, I hope the first lines of the README clarify the process, as it was just a 2 hour effort and I didn’t want to interest invest more time with it.

As for note, I am a python expert but I never truly used yacc or llvm. Just some minor versions needed to be fixed in the requirements.txt and with the import of the library.

The rest was generated and refactored as I explained it in the README.

Re:Show HN: Whole Git repo was made with ChatGPT by cpb on Sunday December 04, 2022 @11:37AM (#33855148)
Could you go into more details about the errors you encountered along the way?

I tried having ChatGPT do TDD to vectorize n-ary trees, but it made mistakes that indicated it didn't understand it's output:

- the expected vectors in the tests were the format it suggested for binary trees

- when asked to represent a vector as a tree, produced one correct tree and another incorrect tree. (Correctness as determined by how it chose to encode a tree as a vector).

It took some iterations to get it to fix the tests, but I grew weary of coaching it through each of the problems as we encountered them. Maybe if I was at my keyboard rather than on my phone I could have had it complete the task quicker.

So, what errors did you encounter along the way? How did you overcome them?

Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @12:02PM (#33855364)
See the previous comment and the Twitter screenshots, have a nice day.

https://twitter.com/nudpiedo/status/1599444651462733824?s=20...

Re:Show HN: Whole Git repo was made with ChatGPT by AkshatJ27 on Sunday December 04, 2022 @11:33AM (#33855103)
Were the typos in the readme intentional?
Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @11:40AM (#33855178)
As said… I had to take a train so I rushed typed the top lines and pushed it.
Re:Show HN: Whole Git repo was made with ChatGPT by 8jy89hui on Sunday December 04, 2022 @11:14AM (#33854916)
Very cool project!

Do you have screenshots or did you save the chat log when creating this project? There are some really cool files and I would love to see how your coaxed chatGPT into producing this project. I had success using https://addons.mozilla.org/en-US/firefox/addon/save-page-we/ to save the whole chat long and then display it on my website.

Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @11:35AM (#33855125)
I could not export easily the conversation so I just have some which I happened to have sent via WhatsApp. As I had to take a train I just wrote the top lines in the README and pushed it.

I may upload them in the evening if you are interested when I am back home, but what I wrote there was basically it.

Re:Show HN: Whole Git repo was made with ChatGPT by cloudripper on Sunday December 04, 2022 @11:17AM (#33854941)
I like how you included a significant number of typos in the README to make it clear that it was not produced by chatGPT (nor supported by any spell-check technology for that matter).

This is an interesting exercise and really adds to the sentiment that things will never be the same again with the implementation of this sort of AI tooling being made available for the masses. Truly revolutionizing.

Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @11:39AM (#33855171)
As I had to take a train I just wrote the top lines in the README and pushed it and I am still in the train so there is not much I can do about it.
Re:Show HN: Whole Git repo was made with ChatGPT by robgibbons on Sunday December 04, 2022 @11:58AM (#33855316)
Someone can make a PR after they prompt ChatGPT to fix the typos.
Re:Show HN: Whole Git repo was made with ChatGPT by nudpiedo on Sunday December 04, 2022 @12:00PM (#33855344)
Everyone’s asking, the typos were actually accidental since I had to take a train on a rushed. I uploaded some screenshots in the following link at my Twitter account, you can see there part of the process.

https://twitter.com/nudpiedo/status/1599444651462733824?s=20...

Some of the errors I encountered, where an obsolete package, wrong, absolute import, a missing token, some president rule which was wrong, and it still was not compiling a time to leave, but I think the experiment proves what I wanted to: development as we know it will be soon gone.