Using a different language every day.
Programs assume a file named input
containing input text in the day's folder,
and should be executed from that folder.
- Day 1: Uiua (0.3.1)
uiua solution.ua
- Day 2: Factor (0.99)
factor solution.factor
- Day 3: Zig (0.11.0)
zig run solution.zig
- Day 4: BQN (CBQN 0.4.0)
bqn solution.bqn
- Day 5: Clojure (1.11.1.1429) [spawn a REPL (e.g.
clojure
) and run the contents offive/src/five/core.clj
] (this should have been a clojurescript file to be fair) - Day 6: Wolfram Language (1.9.0)
cat input | wolframscript -file solution.wl
- Day 7: Zsh (5.9)
cat input | ./solution.zsh
- Day 8: Julia (1.9.4)
julia solution.jl
- Day 9: Crystal (1.10.1)
crystal solution.cr
- Day 10: F# (MS FSI 12.8.0.0)
dotnet fsi solution.fsx
- Day 11: Haskell (GHC 9.8.1)
ghc solution.hs && ./solution
- Day 12: Lua (5.4.6)
lua solution.lua
- Day 13: Koka (2.4.2)
koka -e solution.kk
- Day 14: Kotlin (1.9.21-release-633)
kotlin solution.kts
- Day 15: Idris 2 (0.6.0)
cat input | idris2 -x main solution.idris
- Day 16: Typst (0.10.0)
typst compile solution.typ
note: part 2 must be computed one section at a time due to memory leaks - Day 17: Rust (1.74.0)
cargo run
- Day 18: APL (Dyalog 18.2)
dyalogscript solution.apls
- Day 19: Raku (v6.d, Rakudo v2023.11)
raku solution.raku
- Day 20: Elixir (1.15, Mix 1.15.7)
elx -S mix
and runTwenty.part1
/Twenty.part2
- Day 21: Typescript (5.3.3, Node v21.2.0)
tsc && node solution.js
- Day 22: Swift (5.9.2, swift-driver 1.87.3)
swift solution.swift
- Day 23: Scala (3.3.1, sbt 1.9.7)
sbt run
- Day 24: Python 3 (cpython 3.11.6, z3-solver 4.12.4.0)
python3 solution.py
- Day 25: By hand (v2023-12-25)
read and follow solution.txt