milanaleksic/adventofcode2023
My AOC2023 solutions. Read-only mirror of https://git.milanaleksic.net/milanaleksic/adventofcode2023
done by: [email protected]
Using: zig v0.11.0
Note: I am a Zig newbie & using AoC to learn as-I-go
➜ ./run.sh
...
# no dependencies beyond system
➜ otool -L zig-out/bin/adventofcode2023
zig-out/bin/adventofcode2023:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.0.0)
➜ mls zig-out/bin/adventofcode2023
.rwxr-xr-x milan staff 233 KB Wed Dec 6 12:55:08 2023 zig-out/bin/adventofcode2023
stable naming of functions and tests
multi-line test source instead of manual append
calls
switch places for equals comparison in tests, figure out the comptime error cause (https://github.com/ziglang/zig/issues/4437)
named structs as function results in day2
use test allocator in prod code as arg to verify no leaks occur
try different allocators (arena maybe?)