Home

Advent of Code 2025:2, Rockstar edition

2025-12-07

Background

The other day I posted my first attempt at coding in Rockstar. After that I couldn't help myself, and continued with the second Advent of Code puzzle.

The code

Just like the first time, I wrote a little JavaScript implementation first, to make sure my logic was sound, then I implemented it in Rockstar. This time I hit the ground running, and except for a few frustratingly vague error messages (Unexpected 'Let' at line 1 col 1: Failed to parse 'program', basically saying that this program here as a whole couldn't be parsed) I got it working fairly easily. This time I decided to make it sound a bit like a Christmas rock song, but it also ended up sounding a bit like a cookie recipe.

Everybody wants cookies
Cut silence with cookies into joy
His dreams are so overloaded
Let the holiday be joy with them
Let angels be silent
Put them into the night
Fire is like you
Let the spirit be like wow!
It is without fire
While the spirit is weaker than the holiday
Let praise be joy at the spirit
When the spirit is smaller than the holiday between like us
Angels are with praise
Otherwise, put the night with praise into the night, baby
Build the spirit up! Yeah
Let wonderful be angels are really the night
Let the message be it! Send it!

Listen to the singing
Let the dream be gone

The streets are silent
Rock them with like snow plow!
Let us be the streets

Put the singing into baking
The cookies are empty
Rock them with like corn flour!
Let the dough be baking

Cut the dough into pieces with us
Put the cookies into us

For the piece in pieces
Cut it into halves with us
Roll halves into the night; cast them with like a gingersnap
Roll halves into the oven; cast them with like a nutcracker
Let peace be the night
While peace is as low as the oven
When everybody taking peace is right
The dream is with peace, baby
Build peace up
Oh yeah
Shout the dream

Surely this is it now. I can't possibly be bothered writing another one of these, right?