I finally finished this years AoC with all 50 starts. Here is my repo. I also want to link the repo of a friend, who also got all 50 stars of this years AoC with Roc.
It was fun. Maybe even more then last year. The most frustrating moments are, when the compiler crashes. Maybe with less panics in the compiler, it will be even more fun next year.
One this that was different then last year was my usage of crash. When I search for crash
in my AoC-Repo from last year, I find it 66 times. This year, I did not use it at all. I just used ?
instead and returned an result. This is only a problem, when there are no -Try
-version of a function. For example there is no Dict.walkTry
.
One big annoyance are overflow crashes. I hope, there will be better traces next year.
The last thing, that I hope will be better next year is calling single tests or ignoring tests.
Roc is a awesome language and it is fun do to AoC with it.
thanks so much for writing this up! :smiley:
Oskar Hahn said:
One this that was different then last year was my usage of crash. When I search for
crash
in my AoC-Repo from last year, I find it 66 times. This year, I did not use it at all. I just used?
instead and returned an result.
this is amazing to hear! I'm really glad that ?
has become a revealed preference even for advent of code, because that's how a lot of people will experience the language for the first time, and it's definitely much better for them to get in the habit of reaching for ?
than for crash
! :big_smile:
Good feedback!
Last updated: Jul 06 2025 at 12:14 UTC