Chapter 13. Why ClojureScript?

This chapter covers

  • Protocols underlying everything
  • Stages of ClojureScript compilation
  • Web Audio
  • Advanced Google Closure compilation
  • Google Closure externs files
  • Differences between compile and runtime

ClojureScript is a redesign and reimplementation of Clojure and its compiler, written in a combination of Clojure and ClojureScript itself. Although the original purpose of the ClojureScript compiler was primarily to generate JavaScript to target runtimes and devices supporting it, in the long term this may be the least important feature of its design. After all, Clojure’s own compiler, which currently generates JVM bytecode, could have been altered to produce JavaScript as well.

In this chapter, we’ll ...

Get The Joy of Clojure, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.