The ClojureScript Compiler - A Look Behind the Curtains
summary
A walkthrough of the ClojureScript compiler shows a working GSoC project that adds JavaScript module support and demonstrates compiling a simple form that sets document.body.style.backgroundColor = "tomato" entirely in the browser. The pipeline is concrete: reader -> data structures uses the cljs.tools.reader port, the analyzer performs macroexpansion in analyzer and builds AST nodes as maps with keys like op form env target/val, and the emitter calls emit-string to JavaScript via cljs.compiler to produce the final JS. Contribution tips: JIRA newbie label currently surfaces about six starter tasks.
AI-written summary · about
chapters (5)
related talks
42mData All The ASTs
29mExtending JavaScript Libraries from ClojureScript
44mJavaScript AST programming: Introduction and beyond
38mBuild your own Svelte 5
29mMy Little Parser: Tooling is Magic
38mLooking into the Svelte Compiler
46mCompilers, User Interfaces & the Rest of Us
01h 04mClojure Compilation, Backwards
