My solutions to Advent of Code
https://github.com/ruuda/adventofcode
- Zig 18.7%
- Pony 7.5%
- Nim 7.1%
- Haskell 6.7%
- Rust 6.6%
- Other 53.4%
| 2020 | Remove input files | |
| 2021 | Remove input files | |
| 2022 | Remove input files | |
| 2023 | Update to latest version of RCL | |
| 2024 | Fail once more at trying to learn Prolog | |
| 2025 | Solve 2025-12a in Zig | |
| .gitignore | Load a file in Idris | |
| languages.sh | Update language stats | |
| LICENSE | License my solutions under the GPLv3 | |
| README.md | Update language notes | |
Advent of Code
My take on https://adventofcode.com/.
Personal rule
In 2023 and 2024 I used the following personal rule. To spice things up a bit, every new solution must be written in either:
- A language that I haven’t used before in this repository.
- A language in the bottom 33% used in this repository, by lines of code.
In 2025 I wanted to get a bit more hands-on experience with Zig, so I limited myself to Zig and RCL.
Languages used as of 2025 final day, as computed by languages.sh:
Next Language %Used %Cumulative Files Lines Verbosity
[ ] Zig 15.5 15.5 12 1249 104
[ ] RCL 7.5 23.0 13 603 46
[ ] Pony 7.0 30.1 4 565 141
[ ] Go 6.8 36.9 4 546 136
[ ] Nim 6.1 43.0 5 492 98
[ ] Haskell 6.0 49.0 7 485 69
[ ] Python 5.0 54.1 10 405 40
[ ] AWK 4.9 59.0 12 394 32
[ ] C 4.9 63.8 2 390 195
[ ] D 4.8 68.7 3 388 129
[x] Hare 4.7 73.4 3 378 126
[x] Rust 4.7 78.1 5 378 75
[x] SQL 3.2 81.3 3 256 85
[x] Clojure 3.1 84.4 3 250 83
[x] OCaml 2.9 87.2 3 231 77
[x] Nix 2.0 89.3 3 164 54
[x] Hoon 1.9 91.2 3 154 51
[x] F# 1.9 93.1 2 149 74
[x] C# 1.6 94.7 1 130 130
[x] Lua 1.5 96.1 2 117 58
[x] Racket 1.2 97.4 2 100 50
[x] Prolog 1.0 98.4 2 79 39
[x] Idris 0.9 99.2 1 70 70
[x] Unison 0.5 99.7 1 41 41
[x] Scheme 0.3 100.0 1 21 21
Some languages that I still want to try:
- Clojure
- D
- F#
- Guile, Racket
- Hare
- Hoon
- Idris
- Julia
- Nim
- OCaml
- Pony
- Prolog
- Zig
License
GNU General Public License, version 3.