I wrote a short note about extending constants hoisting mechanism in ClojureScript’s compiler to arbitrary values, not only symbols and keywords. The example described in the post is based on the implementation in UIx library. Though it might be interesting for someone who wants to learn more about the compiler.