Skip to content

Instantly share code, notes, and snippets.

View puredanger's full-sized avatar
😀
Clojure is life

Alex Miller puredanger

😀
Clojure is life
View GitHub Profile
@puredanger
puredanger / breezy.clj
Last active August 29, 2015 14:05 — forked from quephird/breezy.clj
Added type hints I suspect would make math faster here. Just eyeballing, so not sure if it's all right. Normally I would check the bytecode to look for boxing as well.
(ns fun-with-quil.breezy
(:use quil.core))
(set! *unchecked-math* true)
(def ^:constant screen-w 1920)
(def ^:constant screen-h 1080)
(defn r ^double [^long x ^long y]
(loop [k 0 i 0.0 j 0.0)]