4k Clojure Demo Competition
Me and Martin were discussing the feasibility of this and quickly ended up in a debate about the rules, which he won. More or less, your demo has to be a 4k stripped Clojure jar, that can be run like this:
java -cp clojure-1.4.0.jar:target/four.jar four $ ls -l target/four.jar -rw-rw-r-- 1 hraberg hraberg 2030 2012-08-22 12:00 target/four.jar $ unzip -l target/four.jar Archive: target/four.jar Length Date Time Name --------- ---------- ----- ---- 100 2012-08-22 12:00 META-INF/MANIFEST.MF 1670 2012-08-22 12:00 four.class 1570 2012-08-22 12:00 four.clj --------- ------- 3340 3 files
Fork and go. The bash script
build will produce (and run) a jar that satisfies the limitations.
Dependencies and resources are allowed, but obviously need to fit the size limit. PACK200 is allowed, as is ProGuard, which the
build script uses. Pulling resources from the network or local drive is not.
four.clj is an experiment that sets up a few seqs / fns for rendering over a timeline in Graphics2D.
The animation itself is just a flickering of colors, but will obviously soon evolve into a magnificent real time path tracer.