Skip to content

Advent of Code 2022 solutions using a different language for each day

License

Notifications You must be signed in to change notification settings

fwcd/advent-of-code-2022

Repository files navigation

Advent of Code 2022

Run (macOS) Run (Ubuntu)

My solutions to the Advent of Code 2022, written in 25 different programming languages.

Scripts

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 the PATH
  • ./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.

Previous years

My solutions to the previous challenges can be found here:

About

Advent of Code 2022 solutions using a different language for each day

Topics

Resources

License

Stars

Watchers

Forks