Advent of Code 2026 in Zena
Try Zena on Advent of Code 2026 in our dedicated browser playground, complete with input.txt support, toggleable solutions, and daily language improvements.
We're a day late kicking this off—December 1st snuck right up on us—but Advent of Code 2026 is underway, and we've put together a dedicated Advent of Code playground so you can solve the puzzles in Zena right in your browser.
Why Advent of Code? ​
Advent of Code is one of the best excuses to try out a new programming language. If you've been curious about Zena without a specific project in mind yet, a self-contained daily puzzle gives you something concrete to write in ten or twenty minutes.
It's also a great way to see how a language fits real problems—parsing messy text inputs, counting frequencies, searching graphs, wrangling grids—and a fun chance to show off what Zena feels like in practice.
Measuring (and improving) Zena along the way ​
Zena is still evolving, especially in the standard library. Up to now, we've mostly added the APIs we needed at the moment to build the compiler, CLI, and tooling. Advent of Code exercises a different slice of everyday programming, so it makes a great measuring stick.
Our plan for each day is to solve the challenge with the Zena we have, notice every spot that feels clunky, and then update Zena itself so the solution gets cleaner.
Day 1 already paid off. While working through Day 1: Dusty Shed, we added:
Map.update(key, updater, ifAbsent)for single-lookup frequency countingArray.sorted(compare)for non-mutating sortingIterable.toArray()(viaIterableUtils.toArray()) andArray.from(iterable)so maps, ranges, and filtered iterables convert directly to arraysArray.filterMap(f)to parse and filter in a single pass using Zena's inline(true, value) | (false, _)tuples:
let ids = input.split('\n').filterMap((line) => parseI64(line.trim()));
We also caught and fixed a handful of bugs along the way: an unused-variable
warning on destructured closure parameters, generic type inference gaps for
inline tuples and unions, and a formatter bug that printed synthetic
$$destruct_0 names for destructured parameters.
Day 2: Fulminating Farmland is up in the
playground too (with both Part 1 and Part 2 solutions), and Day 1's toArray()
and filterMap() additions already came right in handy for parsing its input.
A playground built for daily puzzles ​
To make trying the challenges easy with zero downloads, we built a dedicated playground at /advent-of-code/2026/:
- Links to each daily problem on adventofcode.com, paired with a minimal
starter
main.zenaand the day's example data pre-loaded ininput.txt. - In-browser file reads via
zena:fs: paste your personal puzzle input intoinput.txtand read it withawait readFile('input.txt'). Your edits stay saved inlocalStorage. - Show Solution toggle: click Show Solution whenever you want to see our
Zena solution. It swaps in
main.zenawhile keeping whatever you pasted intoinput.txt, and Back to My Code restores your own code.
If you prefer working locally, you can also install the
zena CLI in one command and run your solutions from the
terminal.
Join in ​
Give Days 1 and 2 a try in the Advent of Code 2026 playground, and if you want to share solutions, compare approaches, or point out rough edges in Zena, drop by the Zena Discord or open an issue on GitHub.
Have fun with the puzzles, and keep up the spirit of learning!