0:00 / 0:00
Bare Metal Clojure with clojure.Spec - Michael Reitzenstein
ClojureTV
111K subscribers • 135 videos on Hallway
- Recommended by 2 people: 1 in engineering communities and 1 curated list.
- Presented by Michael Reitzenstein
Advanced. Deep dive for people who know the field.
4.8K views9 years ago2 recommendations
Programming languagesSystems programmingLisp and ClojureCompilers and interpretersPerformance and optimization
Michael Reitzenstein demonstrates how to generate specialized, highly optimized C code from Clojure specifications.
Clojure provides powerful abstractions and dynamic typing, and its high performance is enabled only through the amazing optimizations provided by the powerful JITs in JVM, V8 et al. Using Clojure's new spec and gen features, it's possible to generate specialized versions of Clojure code for constrained specifications, eliminating much of the boilerplate and branch heavy code, which can then be translated into efficient C. This talk follows optimization of the humble (fn fib [n]) in its most naive form, using a series of generally applicable techniques to transform it from a O( 2n ) to a O( log n ) algorithm, generating efficient C that would be difficult to match by hand.Why it's here
2 people recommend thisprogramming-talkscurated list on GitHubRecommends
Under “Clojure”
Bare Metal Clojure with clojure.spec 00:36:07 by **Michael Reitzenstein** (2016)