Haxe port of Keith Peters minimalcomps