Advent of Code 2025 in Nim 👑
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-08 15:30:19 +08:00
day_01 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_02 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_03 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_04 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_05 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_06 all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00
day_07 day 07: even faster solution 2025-12-07 21:26:19 +08:00
day_08 day 08: add solution 2025-12-08 15:30:19 +08:00
.gitignore more generic cookie retrieval from Firefox profile 2025-12-06 23:52:57 +08:00
AOC25.nimble use 1-12 days instead of 1-25 2025-12-06 23:58:50 +08:00
config.nims fix config.nims 2025-12-02 14:39:12 +08:00
LICENSE initial commit 2025-12-01 22:47:37 +08:00
README.md update readme 2025-12-07 00:02:45 +08:00
template.nim all days: use benchy for benchmarking 2025-12-06 22:54:55 +08:00

Advent of Code 2025 Solutions in Nim

Add a New Day directory and input

nimble setupday <day>
nimble getinput <day>

Run Solutions

cd day_<XX>

# Test with example data
nim r solution.nim

# Run with your input
nim r -d:release solution.nim input.txt

# Benchmark performance
nim r -d:release -d:bench solution.nim input.txt

Example for Day 1

nimble setupday 1
nimble getinput 1

cd day_01
< edit solution.nim >
nim r -d:release -d:bench solution.nim input.txt