~/talk

What Are All These Class Files Even About? And Other Stories

Talkat Clojure/conj 2018 · 2018-11-29..12-01· [java, compilers-and-language-design]
slides:none on file

Clojure compiles almost everything to JVM bytecode even at the REPL, turning each top-level form into a zero-arg function class and each function literal into its own bespoke class. Loading mutates a mutable namespace graph (namespaces, mappings, VARs) and the compiler writes function classes plus one init class per file whose static initializer reproduces all top-level side effects. A small two-namespace example produces 7 class files (four for one ns, three for the other), and those init classes let the compiled code run correctly in another JVM.

AI-written summary · about

  1. 0:00Start
  2. 2:21The Dynamic Runtime
  3. 2:48Namespace Enclosure
  4. 3:38Aliases Map
  5. 6:50Loading Context
  6. 11:37Entry Points for Loading Code in Closure
  7. 19:28Compiler
  8. 20:56Multiple Functions in a Single Expression
  9. 23:31Ahead of Time Compilation
  10. 28:23Static Initialization
  11. 30:26Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.