ClojureScript
Yet another flavor of JavaScript?
What’s wrong with JS?
Broken piece of shit?
Lots of stuff to worry about
Babel setup page
Babel setup page 2016
How to make the best
of JS?
Solar System of JS
http://shaunlebron.github.io/solar-system-of-js/#0
What’s Google
Closure?
Google Closure
• Closure Compiler
• Closure Library
Closure Compiler
• Dead code elimination
• Code splitting
• Optimizations
• Cross-browser compatibility
Closure Library
• Data Structures
• Namespaces
• Dependency Management
• Event Handling
• (RTFM)
Is ClojureScript worth
it?
Where can you run it?
• Rhino
• Nashorn
• Node.js
• JavaScriptCore
• Web Browsers (starting IE6)
Who uses?
• Consumer Reports
• eBay
• Prismatic
• Reuters
• CircleCI (https://youtu.be/5yHFTN-_mOo)
Benefits
• Structural Sharing
• core.async (Go style channels, 10,000 Processes
Example, 100000 DOM updates)
• Immutability for efficiency (Facebook rolled
Immutable.js)
• Implicit dependencies (Closure Compiler)
• PayPal article on Node.js and JS combination
• Lots of what Clojure provides (i.e. Prismatic
Schema)
Dependencies
Dependencies WIKI
Code splitting
JS interop
CLJS Presentation

CLJS Presentation