~damien/advent

Advent of Code submissions
zig: 2021 Day 14
zig: 2021 Day 13
zig: 2021 Day 12

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~damien/advent
read/write
git@git.sr.ht:~damien/advent

You can also use your local clone with git send-email.

Consolidated Advent of Code submissions

#Running

#Erlang

To run part1.erl:

$ erlc part1.erl
$ cat input | erl -noshell -s part1 -s init stop

To run tests in part1_tests.erl:

$ erlc part1_tests.erl
$ erl -noshell -s eunit test -s init stop

#Rust

To run:

$ cat input | cargo run

To test:

$ cargo test

#Zig

To run part1.zig:

$ cat input | zig run part1.zig

To test it:

$ zig test part1.zig

To debug the tests using GDB:

$ zig test part1.zig --test-cmd 'gdb' --test-cmd '--args' --test-cmd-bin --test-cmd "$(which zig)"