Using an LLM on the Advent of Code
funcall.blogspot.com·19h·

I wanted to investigate further generation of Common Lisp code using an LLM. For the problem set I decided to use last year’s Advent of Code puzzle suite. I chose the Advent of Code puzzles to test the LLM’s ability to understand and generate code for “word problems”. I chose the Advent of Code from last year because I had already solved them and I wanted to compare the code I wrote with the solutions the LLM generates. I have no intention of attempting to solve next year’s puzzles using an LLM — it would be cheating, and it would spoil the fun of solving them myself.

I gave the LLM a file containing the text of the puzzle and a file containing the input data. The LLM was prompted to write a Common Lisp program to solve the puzzle and then to run the generated program on the input d…

Similar Posts

Loading similar posts...