A port of MacRuby boingX from sojastar