Skip to content
/ aoc Public
forked from MartinEllegard/aoc

Advent of code 2023 challenge

Notifications You must be signed in to change notification settings

Ola-HH/aoc

 
 

Repository files navigation

advent-of-code-2023

Advent of code 2023 challenge

Dependancies

  • [all] make
  • [rust] If solving using rust
    • Rust
    • [cargo] cargo-binstall
    • [cargo] cargo-generate
  • [go] If solving using go
    • Go

Go

Create day

go run go-day/main.go 2024 1
  • 2024: year
  • 1: day

Work with day

cd 2024/aoc2024day1

Test day against example

make test

Get day result

make run

Benchmark all days

./bench-go.sh

Rust

Setup

Installing dependencies:

cargo install cargo-binstall
cargo binstall cargo-generate

Create day

make rust-create-day -e day=1 -e year=2024
  • day={WORKING_DAY}
  • year={WORKING_YEAR}

Run day aka getting final result

make rust-run-day -e day=1 -e year=2024
  • day={WORKING_DAY}
  • year={WORKING_YEAR}

Test day aka getting testing against example result

make rust-run-day -e day=1 -e year=2024
  • day={WORKING_DAY}
  • year={WORKING_YEAR}

Benchmark day ~ Documenting performance

make rust-bench-day -e day=1 -e year=2024
  • day={WORKING_DAY}
  • year={WORKING_YEAR}

Benchmark all ~ Documenting performance

make rust-bench-all

About

Advent of code 2023 challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 72.8%
  • Go 23.8%
  • Makefile 2.1%
  • Shell 1.3%