Skip to content

Instantly share code, notes, and snippets.

@jamiely
Last active December 16, 2015 10:08
Show Gist options
  • Save jamiely/5417783 to your computer and use it in GitHub Desktop.
Save jamiely/5417783 to your computer and use it in GitHub Desktop.
Blog entry discussing implementing advanced optimization for the Tetris Attack Clojure Project

Intro

The latest update to Tetris Attack ClojureScript was getting advanced compilation to work. lein-cljsbuild allows you to specify settings for compiling your ClojureScript code to JavaScript. This article by Luke Vanderhart has a lot of detail about the various options you can specify.

  • Talk about the process of enabling advanced optimization
  • Work with v1.0.4 code and address problems step by step
  • Problems
    • Browser repl bug
    • Problem with cljsbuild auto not rebuilding updated config settings for game.prod.js
    • Problem with $, jquery
    • ^:export
  • Talk about results of using advanced opt
    • New code size ~ 300K from 11K
    • Compare simple optimization to advanced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment