Advent Of Code
Go to file
2023-11-19 16:44:12 +01:00
_templates/riddle/new benchmarks 2023-11-18 17:52:07 +01:00
.vscode update deps 2023-11-01 23:28:25 +01:00
2019 day 2 2023-11-02 01:05:56 +01:00
2020 move to 2020 fodler 2021-12-01 11:43:46 +01:00
2021 remove inputs 2022-12-10 02:11:48 +01:00
2022 day 2 2023-11-19 16:44:12 +01:00
.gitignore add rust 2023-11-18 16:45:50 +01:00
bun.lockb download also the input 2023-11-02 00:23:17 +01:00
Cargo.lock add rust 2023-11-18 16:45:50 +01:00
Cargo.toml day 2 2023-11-19 16:44:12 +01:00
package.json hygen rust 2023-11-18 17:06:39 +01:00
poetry.lock update deps 2023-11-01 23:28:25 +01:00
pyproject.toml update deps 2023-11-01 23:28:25 +01:00
README.md benchmarks 2023-11-18 17:52:07 +01:00
rust-toolchain.toml benchmarks 2023-11-18 17:52:07 +01:00

Advent Of Code

Getting started

New "days" are generated with hygen. This will bootstrap code for python and rust. See details about the specifica languages below

# First time setup
bun i

# Generate
bun run gen --year 2022 --day 1

Python

Rust

Run a single day:

cargo run --bin 2022-01

Bench a day:

cargo bench --bin 2022-01

Bench all days:

cargo bench

The benchmark is the built in Rust one. This is the reason for the nightly version.