It’s everybody’s favourite time of year! Share solutions and discuss puzzles for this year’s Advent of Code (spoiler etiquette please!) Note that this is the first 12 day advent instead of the erstwhile 25 days (see the FAQ).
I’m using this year’s to finally learn OCaml! (After starting off on my FP journey with Elm for AoC 2019, and continuing through Haskell and Purescript…) Using a starter pack called Tanenbaum (though it’s gotten in the way a couple of times—more on that below)
I should also highlight the OCaml leaderboard: code 3236051-3f7ecc0b (set up by Sabine)
My solutions are on github: GitHub - dlesbre/advent-of-code: Puzzle solutions for advent of code 2022, 2023 and 2024 , I’m trying to go for short solutions, even though these may no be the fastest. I’ve also got a small custom library from previous years (included in the repo) for common patterns that crop up in these puzzle (grid functions, count and sum iterators, etc).