Ah, I remember I looked at that. https://gist.github.com/FeepingCreature/cd935a209fa2eebd5928... Here's a Neat port I had lying around, I think it's pretty much a copypaste from D? I think it was a bit slower, can't remember why though. Something like 80ms vs 60ms with `-O -release`.