My solutions to the Advent of Code 2022, written in 25 different programming languages.
- Day 01: AppleScript
- Day 02: Vala
- Day 03: Zig
- Day 04: Racket
- Day 05: Clojure
- Day 06: CMake
- Day 07: Perl
- Day 08: Scala
- Day 09: Haskell
- Day 10: C
- Day 11: Elixir
- Day 12: Java
- Day 13: JavaScript
- Day 14: OCaml
- Day 15: Ruby
- Day 16: F#
- Day 17: C#
- Day 18: Apple Shortcuts (yes, this one)
- Day 19: Rust
- Day 20: Objective-C
- Day 21: Prolog
- Day 22: Swift
- Day 23: C++
- Day 24: Julia
- Day 25: Python
Each day includes two scripts:
./bootstrap
installs the language (compiler or interpreter) and project dependencies if needed./run
builds and runs the program
Some days that need additional configuration also have environment-related scripts invoked by CI:
./path
computes a list of entries to dynamically append to thePATH
./env
computes a list of environment variables to set
This standardized pattern lets CI use a single workflow (per OS) across all days. Additionally, they make it easy to get started developing locally even across the range of different languages, build tools and package managers involved.
Note that some bootstrap scripts are still geared around CI use, so you may still prefer to install the corresponding toolchain using your package manager manually.
My solutions to the previous challenges can be found here: