Advent of Code - 2018 (Haskell Edition)
Note: Complete solutions (and a benchmark) for 2017 (in Scala, Haskell and Eta) can be found (here; star it, if you like it :)).
To make this work you need to ...
- install stack
stack exec haskell-aoc-exe
Note: The code also compiles with Eta. To make this work you need to ...
- install etlas
etlas run haskell-aoc-exe
Note: You need to have stack installed and need to run
stack build --dry-run first (to generate the
cabal file (the dry-run will invoke hpack to generate the cabal file from the package.yaml file)).
Locally you can run all solutions with
./bin/run-local.sh | grep -e "->" (or you can fork the repo into your account and enable a/the travis build).
The solutions also measure the elapse time in seconds.
With that we can do a very simple benchmark.
To create the numbers you can just run ...
stack build haskell-aoc-exe && stack exec haskell-aoc-exe
etlas build haskell-aoc-exe && etlas run haskell-aoc-exe
Note: To run the eta solutions you need to
export ETA_JAVA_ARGS="-Xss1024M -Xmx4096M".