I wrote this in Go because it felt right being "close to the metal". That said, I could have done exactly the same in Javascript and this was really just an excuse.