Here I will be sharing my solutions to the Advent of Code online puzzle.
The solutions might be implemented in different languages, out of curiosity, for practice, comparison or fun.
I tend to mostly focus on Functional Programming style.
My goal isn't to solve each puzzle as fast as possible. I want to create a beautiful solutions that satisfies me.
The speed and performance of how fast a solution runs is also not my priority. I try to keep general performance in mind but I don't want to optimize the code for every bit of performance.
clj -M:nextjournal/clerk nextjournal.clerk/serve! --watch-paths src --port 7777Take a look at the dev/user.cljfor running the server, evaluating individual notebooks, etc.
Evaluate expressions from within your editor if you can, or start a REPL and run clerk commands.
run
clj -X:nextjournal/clerkThen run the output with an http server like http-serve
http-serve public/buildThe runner.clj file helps run each day.
clj -M:run <year> <day> <& args>