~/talk

Bare Metal Clojure with clojure.Spec

Talkat EuroClojure 2016 · 2016-10-25..10-26· [software-architecture]
links:none on file
slides:none on file

A compiler uses clojure.spec generators to feed sample inputs and statically specialize pure numeric Clojure into C (and Java) by inlining, unboxing and stripping branches, producing unboxed native integers and near-handwritten C output. Benchmarks show plus compiles from scratch in about a minute and a fully inlined Fibonacci build takes ~15 minutes, and combining inlining with memoization yields an O(log n) Fibonacci via inlining+memoize. It works but compilation is slow and correctness is probabilistic unless specs exhaust edge cases.

AI-written summary · about

  1. 0:00Introduction to the compiler
  2. 0:55Motivation and architecture
  3. 3:42Why Clojure for this project
  4. 6:49Clojure spec and generators
  5. 8:30Basic translation process
  6. 10:45Compiler optimization strategy
  7. 13:22Deep dive: optimizing plus
  8. 17:38Refining the optimization output
  9. 22:32Higher-order optimizations
  10. 27:22Advantages of this approach
  11. 30:24Challenges and limitations
  12. 34:37Q&A session
~/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.