logoalt Hacker News

Advent of Code 2026

70 points • by saisundar • yesterday at 11:52 AM • 399 comments • view on HN

Comments

alexfoo • today at 7:49 PM

At a previous company we also used AoC as part of a security exercise. It went something like this:

1) Wait until a particularly tricky problem day

2) Look for a suitable solution in the appropriate language in the daily solutions thread in Reddit.

3) Download and augment the solution with some typical credential stealing code with mild obfuscation (we'd prepared this bit in advance) that uploads partial credentials (github tokens, kubectl tokens, browser caches, etc) to a seemingly random third party site under our control

4) Upload this new code to a seemingly random github repo

5) Get our plant to share the link to the repo and say on the internal #programming slack channel: "I saw this solution in _language_ linked on the Reddit sub-thread for today's AoC puzzle, it might be useful if you want the correct answer for your input if you're having trouble, I haven't looked at it myself."

Sit back and see who falls for it. A surprising number of people did, and some (but not all) were doing this from the same account they used for their daily dev work. (Think of the recent Binance heist...)

It really hit home when we shared what credentials we had managed to capture and what could be done with them.

Even the ones using it from a non-work account were surprised at what we managed to exfiltrate.

Only a couple of people were using completely clean accounts created purely for aoc with no useful credentials exposed.

ArcHound • today at 7:14 PM

Please, try and use your brain for AoC. At least once a year, to practice and learn. It'll help your skills.

Leaderboard is gone, there are no real stakes. You don't even have to solve the problem on the day it appears, they'll wait.

And maybe you rediscover the joy of creating a solution of your own.

I've checked some research on this here: https://blog.miloslavhomer.cz/use-your-brain-even-if-the-mac...

➕ show 3 replies
xavdid • today at 3:53 PM

One of my favorites! Eric & co do such a great job putting everything together.

For years I've written up a step-by-step guide to how my code works and published to a little side-blog at https://advent-of-code.xavd.id. It dramatically increases the time it takes to complete each day (I spend much more time writing/explaining than programming) but I've found the practice really rewarding.

I started partly because I wanted to make sure I understand the problems and partly because every solution in the daily Reddit thread is reads like a code golf competition. I get it, people tend to prioritize speed and terseness when solving (leaderboards, etc). But a bunch of inline functions and single letter variables make it really hard to understand their solutions. So in an effort to make something legible to readers of all skill level, my solution looks just like something I'd write at work.

➕ show 1 reply
WesleyJohnson • today at 2:15 PM

That took me far longer than it should have. I can't believe how rusty I've gotten after relying so heavily on AI for the past 4 to 6 months. Definitely considering 1 or 2 days a week of only hand-rolled code to stay sharp.

➕ show 16 replies
pprotas • today at 2:21 PM

I did the first level by hand. First time I coded without an AI agent in a year. I even visited Stack Overflow to look up how to sort a list... Feels like the good old times hahah

On a serious note, somehow I am happy that I was still able to do it by hand. Brain is not rotten yet! I'm sure the latter puzzles will destroy me though (but that has always been the case anyways!)

➕ show 2 replies
wkjagt • today at 6:56 PM

Strange feeling that another year went by. AoC 2025 feels like such a short time ago. Reading all the comments here, and in the context of AoC, I am pretty happy that I never really started using AI for anything. For me AoC is as fun as it's always been. My only change this year is that I am doing it in C instead of Ruby.

➕ show 1 reply
fduran • today at 2:22 PM

The Advent of Sysadmin variation: https://sadservers.com/advent2026 (free in-browser challenges, no registration needed. Disclaimer: I built this)

➕ show 2 replies
josu • today at 7:09 PM

I can only code with agents, so last year I tried to get all 12 days of Advent of Code to run in under a millisecond combined. Running in parallel, my Rust solvers clocked a median of 0.805 ms.

https://github.com/josusanmartin/advent-25

diego_sandoval • today at 7:42 PM

"What man of us has never felt, walking through the twilight or writing down a date from his past, that he has lost something infinite?"

- Jorge Luis Borges

➕ show 1 reply
tomtom1337 • today at 10:31 AM

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.

6d65 • today at 6:57 PM

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.

neuwirth • today at 3:13 PM

I'm doing the puzzles by hand in Haskell this year. Should be fun!

➕ show 2 replies
aspizu • today at 6:14 PM

https://x.com/aspizu_/status/2127818402098266217 - My Day 1 solution in Scratch made using goboscript

https://github.com/aspizu/goboscript - My programming language that compiles into Scratch.

tito • today at 3:18 PM

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.

➕ show 6 replies
oalders • today at 4:17 PM

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 • today at 6:32 PM

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 • today at 7:10 PM

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.

drakonka • today at 3:23 PM

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.

➕ show 1 reply
fjfaase • today at 2:48 PM

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

thibsrn • today at 2:27 PM

Does anyone have any fun ideas to share to experiment with the problems ? I was thinking of setting peculiar constraints, such as using specific data primitives or systems to solve it. I don't know how it would exactly take shape in practice but something like using solely HTTP, not as a tool to reach an API to solve it, but using the protocol as the computational model itself.

Or maybe using git primitives, fitting the computation using its data representations and functions. Or maybe bitcoin transactions (using a private simulated network obviously). How about going analog ? There must be something in my bookmarks about people using dominos or radio waves to do computation.

➕ show 5 replies
bel8 • today at 1:27 PM

My problem with AOC is the name.

A good part of the challenges require specific knowledge to solve so it wasn't about code but specific algorithms, math, shortcuts to skip brute force, etc.

➕ show 1 reply
kleiba2 • today at 3:48 PM

By the way, the actual Christian Advent 2026 started already two days before December 1st! :)

➕ show 2 replies
Eji1700 • today at 2:16 PM

Found Uiua a few days ago so I'm taking a stab with that along with my usual F#. Love it simply because hell yeah glyphs + i like the whole "just type the word and it'll figure it out" approach to glyphs.

➕ show 1 reply
floren • today at 6:26 PM

I'm trying it in Medley Interlisp this year. Day 1 was a fun combination of remembering various ways Interlisp differs from Common Lisp, and figuring out how to use the structure editor again, and then just working out the actual code.

8bitbeep • today at 2:27 PM

I got a bit lazy, thought of reaching for AI and it broke my heart.

robin_reala • today at 2:33 PM

If you’re looking for other web design / dev advent calendars, Adrian Roselli has a decent list for this year: https://adrianroselli.com/2026/12/web-design-dev-advent-cale...

bradley13 • today at 2:11 PM

Funny feeling. I want to code this without AI. But the IDE autocomplete still exists, and is pretty clearly AI driven. Hmmm...

➕ show 8 replies
markhermeling • today at 5:21 PM

For people that want to use AI and formal methods to solve these problems:

https://forum.ada-lang.io/t/charity-advent-of-ada-spark-2026...

Ampersander • today at 2:04 PM

Starting out with C++ this year, trying to use some stuff I don't normally use, like ranges.

upmostly • today at 3:25 PM

There's also the Advent of SQL 2026: https://www.dbpro.app/advent-of-sql

phmx • today at 3:18 PM

What an adventure and puzzle feast, can't thank Eric Wastl enough for taking his time each year to prepare such a gift for all of us.

openingai • today at 5:17 PM

Nice. I remember trying a couple problems once but this will be my first time completing the entire series. Very excited!

efficax • today at 2:08 PM

I haven't written any code since early this year when my company went all in on LLMs and I became obsessed to see what I could do with them. This should be good to do the old fashioned way to get my brain back on its axis

LanceH • today at 3:01 PM

I both love and hate Advent of Code.

I just can't resist the leaderboards, which means pulling the problems as soon as they are available.

This leads me to trying to perform maximally at 11pm, which leads me to not being able to sleep until my mind is less active.

Now I just have to wait until the whole thing is over and do the month all at once, with no competition.

My personal relationship with it aside, I love that it exists.

➕ show 3 replies
yerik • today at 2:57 PM

First day, so far quite fun. Decided to do this one entirely in the terminal, without writing code. Was a bit rusty on some commands but managed to get it pretty fast

➕ show 1 reply
irishcoffee • today at 7:20 PM

I didn't even "program" anything for the first day, 2 really dead simple bash one-liners and a calculator, which I did not need a model to generate for me. The one-liners could probably get gussied up to do the math for me as well, but I didn't see the point.

ptmvp • today at 8:31 AM

I'm not anti-AI but it does feel a bit hollow and sad, sign of the times, I even wondered for a moment if it still makes sense for adventofcode to continue existing.

But I actually think it can play an important role in two ways. First, as a reminder, specially to less technical people like myself, of the challenges and complexity involved in what we now take for granted.

Second, as a (re)spark of passion. People still journal with pen and paper, solve jigsaw puzzles, play solved games like tic-tac-toe with each other and paint portraits that will never match the "quality" of a digital photograph, and those activities are almost universally regarded as healthy and even romanticised a bit.

Maybe now that advent of code no longer works as much of an employability signal it can actually be purer, even if it's a bit sad that we won't ever again have the healthy and impressive (to me at least!) competitiveness of the pre-LLM days.

➕ show 8 replies
MisterMunchkin • today at 12:25 PM

On the one hand AI makes it obsolete, but on the other hand, we could have much cooler competitions.

Instead of asking people to solve a simple puzzle, you could ask them to implement the best object storage system, or the best compression algorithm. We could get some way more interesting competitions out of it.

➕ show 3 replies
ah27182 • today at 7:58 PM

Everyone’s complaining about using AI and here I am feeling bad that I used the Duckdb CLI

random_cat_8745 • today at 5:01 PM

Will pick this up to code without AI like good old times!

On a satirical side note, someone should release an Advent of Vibe Code, featuring, but not limited to:

- one-shot a new operating system kernel

- rewrite a bank's system in Rust

- build a spreadsheet where every cell is an autonomous agent

bitbasher • today at 2:20 PM

> To play, please identify yourself via one of these services: [GitHub] [Google] [Twitter] [Reddit]

So, I can't play then?

➕ show 4 replies
makerofthings • today at 4:03 PM

I love AoC. It's a shame the sloppers killed the global leaderboard, but we still have a nice competition going in the office.

jgoewert • today at 12:33 PM

Love AOC. It helped me flesh out learning all the ins and outs of Python over the years.

Today was great because I could use a python library for the busywork and the [-1] feature of list traversal.

Do all the negative people in the thread here and reddit also just take a picture of the Sudoku puzzle in their newspaper and as Grok to solve?

larodi • today at 6:12 PM

there are plenty of sponsors here https://adventofcode.com/2026/sponsors. what are they actually sponsoring and why advent of code needs sponsors to begin with?

MattCruikshank • today at 4:40 PM

So wait, I'm supposed to... type... code?

I should turn off Intellisense...

Or just use Notepad++ or something... Like a cave-person...

saisundar • yesterday at 11:52 AM

About to dive in, writing code with my hand like a caveman.

➕ show 2 replies
GuB-42 • today at 2:38 PM

This whole thread feel like:

Guy posts a bunch of interesting chess puzzles

Here: Let's see what Stockfish can do

Of course you can use AI to solve the Advent of Code, but what's the point? That's not even a clever hack, it is the obvious thing, and there is no global leaderboard anymore, so you won't gain anything by doing that.

Maybe if you are a complete noob in AI coding and want to try it out, or maybe you want to challenge yourself with tiny models, but otherwise, wasting Claude tokens on it seem a bit childish.

➕ show 1 reply
profunctor • today at 2:08 PM

Looking forward to some manual coding!

streetfighter64 • today at 4:00 PM

Not to be a negative nancy or anything but every time I read advent of code threads I'm horrified at the level of programming knowledge amongst "techies". I consider myself a fairly mediocre programmer, but when I see how people talk about the "challenge" of finding the three most common elements in a list, I understand why the hiring process at many companies looks like it does.

( I enjoy AoC a lot, but the first week is really just an exercise in typing speed. Or perhaps warm-up on the language if you're using one you haven't used before. )

🔗 View 27 more comments