https://github.com/sof3/aoc2023
advent of code 2023 in rust and jq
https://github.com/sof3/aoc2023
Last synced: 10 months ago
JSON representation
advent of code 2023 in rust and jq
- Host: GitHub
- URL: https://github.com/sof3/aoc2023
- Owner: SOF3
- License: unlicense
- Created: 2023-12-03T16:32:39.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T15:11:44.000Z (about 2 years ago)
- Last Synced: 2025-01-25T10:41:18.856Z (12 months ago)
- Language: Rust
- Homepage:
- Size: 143 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aoc2023
Download personal inputs:
```bash
cargo install cargo-aoc
cd rust && cargo aoc input --all -y 2023
```
## Rust
Time to micro-optimize!
Solutions are written in idiomatic Rust with no unsafe code.
Run tests on sample data:
```bash
cd rust && cargo test day${DAY}
```
Run on personal inputs:
```bash
cd rust && cargo aoc -y2023 -d${DAY}
```
## JQ
JQ is more powerful than it sounds,
and it is a very crucial tool for those who
have to deal with debugging large JSON files every day.
Run tests on sample data:
```bash
cd jq && make test DAY=${DAY} PART=${PART}
```
Run on personal inputs:
```bash
cd jq && make run DAY=${DAY} PART=${PART}
```