Top
Best
New

Posted by saisundar 1 day ago

Advent of Code 2026(adventofcode.com)
52 points | 396 commentspage 2
tomtom1337 9 hours ago|
I was up at 6AM this morning (Norway time zone) and loved doing this again!

Thank you to the creator!

I always enjoy getting a first solution, then improving it to be more readable, and then being flabbergasted when I look up online how others are solving it.

I'm keen to learn more strong typing languages, open for ideas.

emil-lp 2 hours ago|
Then I recommend looking at Peter Norvig's solutions!
tomtom1337 2 hours ago||
Will do!
neuwirth 4 hours ago|||
I'm doing the puzzles by hand in Haskell this year. Should be fun!
kccqzy 4 hours ago||
I’ll be doing it in Lean! I finished reading the FP in Lean book https://leanprover.github.io/functional_programming_in_lean/ earlier this year but I already felt rusty with the syntax without using Lean that much. Much of the concepts like functors and monads basically carry over from Haskell.
neuwirth 4 hours ago||
That's an awesome idea!
neutrinobro 3 hours ago||
I'm going to do them by hand in nano, using C++ (STL only). Its like going back on the running track in spring after a winter slouching on the couch.
tito 4 hours ago|||
I’m not much of a coder. I’ve tried Advent of Code several years in a row. I never got very far.

I have this funny belief that sounds something like this: learning happens fastest when the next adjacent step is within a certain mental distance. Too far and you just get stuck. Too small and well you don’t learn something new.

And for me, Advent of Code has simply been too big of a mental leap.

This year I’m excited to try it with Claude! An attempt to shrink that mental distance. The risk is it becomes too small and I learn nothing.

If there’s others here who want to compare notes on their process or have suggestions I’m all ears.

yoyohello13 2 hours ago||
I do this quite a bit for previous years and I really like it. I have a couple rules I stick too:

1. If I'm stuck, take a break, go cook dinner or something else and mull over solutions in the back of my mind for at least an hour or 2 (better yet, sleep on it). If I'm still stuck after that, I'll ask AI for a hint.

2. I have in my prompt to not give away the answers, but try to give me little hints.

3. Always write the code by hand.

4. Once I've solved the puzzle, I have AI review the solution and suggestion improvements or other techniques I could have used.

joosd 3 hours ago|||
> I have this funny belief that sounds something like this: learning happens fastest when the next adjacent step is within a certain mental distance. Too far and you just get stuck. Too small and well you don’t learn something new.

You're spot on, this sweet spot is also one of the premises of the book Flow by Mihaly Csikszentmihalyi

tito 3 hours ago||
Oh wow thank you, I looked it up and bought the Kindle version just now.
DrVoltz 4 hours ago|||
Well, if you're looking to give it a shot with an AI study buddy, I've found the following system to be a reasonable way to keep guided learning a thing that has enough friction to keep some actual retention around: https://www.youtube.com/watch?v=nfTDljFG2g0
tito 3 hours ago||
"Agent Harness for Learning Things", love it thank you!
hardbass 3 hours ago||
Lean Dijkstra and loop finding. These two should push you through a lot of the middle problems.
tito 3 hours ago||
Thank you! First time hearing those terms and I'm interested to see what I learn from them.
oalders 3 hours ago|||
The 2026 Perl Advent calendar is also online now. It's season 27. This may be the oldest of the code calendars, but I can't actually prove it. https://perladvent.org/2026/
DuncanCoffee 1 hour ago||
I´d like to learn a new language but for now I'll stick to kotlin, I disabled my IDE hints, so I'm forced to go online and read the documentation everytime I can't remember how to use something. I'm also trying to solve everything with a one or two-liner.

Anyway the first problems are always easy, the second day this time is a bit too easy, since it's basically the opposite of the first day: calculating a maximum becomes calculating a minimum, and it just required flipping two conditions on my code.

shmolyneaux 53 minutes ago||
I was tempted to use a new language for this, but `collections.Counter` in Python was just too tempting. I haven't done AoC for several years, but the writing here is really good.
6d65 1 hour ago||
This year I'm doing it in my own programming language in my own IDE written in my own programming language. Just chilling and having fun.

Definitely noticing things I have to improve in the language and IDE to make it smoother.

drakonka 4 hours ago|||
I did the first day this morning and it was so much fun to just treat it like a little mental exercise. I think now that we use more AI for daily coding little quirky puzzle games like these just become even more joyful to do by hand, for fun.
lexoj 4 hours ago|
I always find it fun… the first few days
fjfaase 5 hours ago|||
I have made a private leaderboard for people who want to compete in C not using AI or an extensive library. (I am using a small library with a function to parse the input into an array of strings.) You are encouraged to login with github and share your solutions in a github repository. The code to join is: 1563228-d419ba6d

I am using literary programming in MarkDown where I use an application to collect C code fragments in one or more MarkDown files and put them in the correct order to be compiled. See: https://github.com/FransFaase/AdventOfCode2026

kleiba2 4 hours ago||
By the way, the actual Christian Advent 2026 started already two days before December 1st! :)
jnellis 3 hours ago|
Splitters!
More comments...