guibou / AdventOfCode2021

Solutions for Advent Of Code 2021 in Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My advent of code for 2021

Each days are in src/DayN.hs.

src/DayX.hs is the template to start each day, you can generate a new file using src/startDay X.

Starts stack with nix-shell --run 'cabal new-repl' to start a session and :l YourDay. You can also use direnv and everything will be setup automagically.

Utils contains a shitload of utils ;)

Benchmarks

run ./bench.sh to generate a benchmark of all tests.

the image bench.png here is the timing of all days:

~Benchmark results

I'm targeting to run all problems in less than 1s.

About

Solutions for Advent Of Code 2021 in Haskell

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 95.6%Language:Python 3.0%Language:Nix 0.9%Language:Shell 0.4%Language:Gnuplot 0.1%