Giter Club home page Giter Club logo

aoc2021's Introduction

AOC 2021

Run All

These are my solutions to Advent of Code 2021, written in Haskell. Each day can be found in the src folder.

Building

Just run ghc manually on each day in the src folder. Solutions take input from standard input.

There's some scripts to help:

  • ./fetch.sh <day>: fetch input for the given day, putting it in the inputs directory.
    • Requires session.key in the containing directory, which must contain your session cookie from the Advent of Code website.
  • ./cmp.sh <day>: compile the solution for the given day, outputting to the out directory.
  • ./run.sh <day> [--]: run the solution for the given day. Always recompile. If -- is not provided, fetch input (with fetch.sh) if not yet downloaded. With --, just read input from stdin.

What on earth does (($) >>= (.) . ($ (>>)) . (.) . flip (.)) mean?

Most of the solutions have been rewritten in point-free style for fun. These solutions are not meant to be read, and most of them are, in fact, quite incomprehensible. They are almost always entirely equivalent to the normal, "pointful" solutions, which are preserved below the point-free ones, usually with the function name main1.

aoc2021's People

Contributors

eutro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.