Today was a highly productive day of coding. It's a rewrite of stuff I'd previously written, but now there are relevant language and library features that didn't exist the first time around so I can write it smaller, simpler, and with fewer hacky workarounds.