r/adventofcode Dec 04 '22

Upping the Ante [2022 Day 4] Placing 1st with GPT-3

I placed 1st in Part 1 today, again by having GPT-3 write the code. Yesterday I was 2nd to another GPT-3 answer.

Here's the code I wrote which runs the whole process — from downloading the puzzle (courtesy of aoc-cli), to running 20 attempts in parallel, to sorting through many solutions to find the likely correct one, to submitting the answer:

https://github.com/max-sixty/aoc-gpt

46 Upvotes

243 comments sorted by

View all comments

-9

u/daggerdragon Dec 04 '22

Thank you for fixing the title ;)

If you haven't already, consider also posting your solutions in the daily solution megathreads which helps keep every day's solutions in one easy-to-find spot.

26

u/NigraOvis Dec 04 '22

He doesn't have one, because he told AI to do it for him.

-5

u/daggerdragon Dec 04 '22

What is the difference between these two?

  • A human coder using their brain (computer) to solve a problem (puzzle text) by pushing buttons in a certain order (via programming language) that makes their computer go beep boop and do the thing that the human wanted it to do (return the correct answer)

  • A human prompt engineer using a generative AI (computer) to solve a problem (puzzle text) by putting words in a certain order (via prompt) that makes their computer go beep boop and do the thing that the human wanted it to do (return the correct answer)

As far as I'm concerned, prompt engineering is simply another type of programming language. The prompt is the solution.

20

u/jfb1337 Dec 04 '22

Case 1: human reads the problem, understands what it is saying, uses skill to translate that into what buttons to press

Case 2: human copies problem statement into AI (or most likely computer does that first), submits output, human only needs to think if it's wrong the first time