Code

Dec
02
Advent of Code: Day 1

Advent of Code: Day 1

Stumbled across this problem set Day 1 - Advent of Code 2021 [https://adventofcode.com/2021/day/1]. Problems that
1 min read
Dec
01

Omg there's a bug here!

It pains me to say I spent about an hour debugging this, thinking through the logic over and over again in the wrong place.
Nov
24

Git and Subversion

You can use git with a svn repository. Note that this step can take a few hours because git checkouts out every revision in the svn repository and commits it locally.
Oct
07

Trivial Monad Example in F#

So how do we solve this? Well a good programmer will recognize the repeated nested match statements and try to devise a function to abstract this away.
Oct
03

countdays: a template metaprogram

Getting the compiler to count so that calculation isn't done at runtime.