midorishibukawa / advent-of-code_ml

moved to gitlab: https://gitlab.com/midorishibukawa/advent-of-code_ml
https://adventofcode.midori.shibukawa.io
GNU General Public License v3.0
0 stars 0 forks source link
advent-of-code htmx ocaml

moved to gitlab

as of december 12th 2023, this repository has been moved to gitlab.

advent of code (ocaml)

hello! these are my advent of code solutions in ocaml.

this (2023) is my first year participating in the challenge while it's still ongoing (and I'm already a day late!), but I do intend to implement solutions for past years challenges when possible.

you can find my solutions in the lib directory, grouped by year, or by clicking on the links at the bottom of this README. and you can have a look at the resulting web server here.

here's a cute drawing my wife made of our cat, tofu:

christmas tofu

running the web server

the bin directory also provides a simple https web server written using dream and htmx.

in order to run the server, you'll first need to install its dependencies. if you're using the nix package manager, the flake.nix provided (credits to opam-nix) will setup everything for you by simply running the following command:

nix develop

otherwise, you'll need both dune and opam installed on your system, as well as the following opam packages:

ocaml batteries dune dream crunch ppx_inline_test

once you've got everything you need, you can start the web server by using the following commands:

dune build && dune exec advent_of_code

alternatively, you can build and run on watch mode with the following command:

dune build -w @run

the web server is set up to listen on https://localhost:8080

Y23:

SUN MON TUE WED THU FRI SAT
01★★ 02★★
03★★ 04★★ 05★☆ 06★★ 07★★ 08★☆ 09★★
10☆☆ 11☆☆ 12☆☆ 13☆☆ 14☆☆ 15☆☆ 16☆☆
17☆☆ 18☆☆ 19☆☆ 20☆☆ 21☆☆ 22☆☆ 23☆☆
24☆☆ 25☆☆