11
votes
Day 1: Dusty Shed
Today's problem description: https://adventofcode.com/2026/day/1
Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it nicely, with the code collapsed by default inside an expandable section with syntax highlighting (you can replace python with any of the "short names" listed in this page of supported languages):
<details>
<summary>Part 1</summary>
```python
Your code here.
```
</details>
Sorry for hijacking, but no one has started this year's AoC threads yet. Hopefully that doesn't mean everyone else has lost interest!
I'm using Lua as usual, partially because I never get past the first day or two and I'm a very basic scripter.
Both parts
I could do this shorter but it'd be uglier.
Google Sheets: Part 1 and 2
Welcome to 2026! A pretty simple puzzle for day 1, as usual, and thankfully part 2 is likely trivial if you get part 1.
Both solutions
Pretty straightforward in C#; just chaining together a lot of standard library functions. Theoretically, you could maybe make some optimizations by _not_ sorting the entire list, and manually calculating the top or bottom three only. But sorting a list of this size is already so fast that it's not really worth it.I'm using Guile to solve the problems.
My solutions may not be as elegant because I'm using this as an opportunity to learn the language. And for what I've seen, there's a lot of wheel reinventing in Scheme.
Day 1: Dusty Shed
I was originally planning on learning a new language for AoC this year, but I don't have as much time as I'd hoped, so since I've continued to work with it for personal projects I'm doing it in Lily again. There have been some significant additions and changes to the language since last December, though none of them matter for such a simple puzzle.
Solution (Lily)
Forgot all about it this year! Thanks for posting it. I’m relieved to see it’s still happening even as AI is actively flipping the table.
Normally I share my code here, fresh from the TypeScript harness I use to build and run AoC solutions. Today was more ad hoc, I just whipped up a few lines of vanilla JS in Notepad and ran it directly. Very simple today.
I'm extra excited for it this year since I have been barely writing any code at work (very sad tbh), so I'm itching to actually solve some puzzles by hand. I miss doing this kind of pure programming!
Obligatory Rust version. I tried making it all functional-ly looking but the
fors just look better:Both Parts (Rust)
Pretty short but, because I love to learn a new language for AoC, took me a bit to get started. Gleam seems fun so far :)
Both parts
I'm not 100% sure how idiomatic it is but I tried to be functional?