~/talk

How Clojure Works: Understanding the Clojure Runtime

links:none on file
slides:none on file

Explains that Clojure’s REPL magic comes from mutable vars vs dynamic vars and that the implementation pays for it: namespace bootstrap produces thousands of class constants, startup is about 30–35x slower than a comparable Java hello world, and a stock runtime generates over 100,000 getRawRoot calls during load. Shows failed approaches (ProGuard fails because of indirection), describes successful lazy-loading from Clojure-Objective-C, and proposes a static/hybrid runtime that compiles functions to static fields to eliminate var indirection.

AI-written summary · about

  1. 0:00Remember this?
  2. 2:28Dynamic development
  3. 2:48Arthur C. Clarke
  4. 5:21What's the difference?
  5. 5:45Fun at the REPL
  6. 7:13Static vs. dynamic Vars
  7. 8:22'Hello, World!', decompiled
  8. 8:59The runtime cost of Vars
  9. 11:02Namespace mappings
  10. 11:19Namespaces REPL
  11. 12:13Creating mappings
  12. 14:28How you really do it
  13. 15:17Global namespace map
  14. 15:48Namespace initialisation
  15. 15:59A simple program
  16. 16:35What's going on?
  17. 17:15Clojure 1.5.1 startup
  18. 17:37Four key problem areas
  19. 18:56Heap use
  20. 19:54Indirect invocation
  21. 20:25Potential solution #1
  22. 22:16Potential solution #2
  23. 23:28Potential solution #3
  24. 23:48'Hello, World!', static edition
  25. 24:28Static runtime
  26. 25:22Long term plans
  27. 26:11DynamicClassLoader demo
  28. 27:18Multimethod demo
  29. 28:00Other runtime features
  30. 28:53Concluding remarks
~/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.