Written for intermediate Clojure developers, this compact guide will raise your expertise several notches. It tackles all the fundamentals of analyzing and optimizing performance in clear, logical chapters.
- See how the hardware and the JVM impact performance
- Learn which Java features to use with Clojure, and how
- Deep dive into Clojure's concurrency and state primitives
- Discover how to design Clojure programs for performance
Clojure is a young, dynamic, functional programming language that runs on the Java Virtual Machine. It is built with performance, pragmatism, and simplicity in mind. Like most general purpose languages, Clojure’s features have different performance characteristics that one should know in order to write high performance code.
Clojure High Performance Programming is a practical, to-the-point guide that shows you how to evaluate the performance implications of different Clojure abstractions, learn about their underpinnings, and apply the right approach for optimum performance in real-world programs.
This book discusses the Clojure language in the light of performance factors that you can exploit in your own code.
You will also learn about hardware and JVM internals that also impact Clojure’s performance. Key features include performance vocabulary, performance analysis, optimization techniques, and how to apply these to your programs. You will also find detailed information on Clojure's concurrency, state-management, and parallelization primitives.
This book is your key to writing high performance Clojure code using the right abstraction, in the right place, using the right technique.
What you will learn from this book
- Learn techniques for achieving numerical performance in Clojure
- Use Java features in Clojure code for performance
- Avoid reflection and boxing with type hints
- Analyze latency using the Criterium library
- Understand Clojure's concurrency and state-management primitives in depth
- Explore how to design Clojure applications for better performance
This is a short, practical guide that will teach you everything you need to know to start writing high performance Clojure code.
Who this book is written for
This book is ideal for intermediate Clojure developers who are looking to get a good grip on how to achieve optimum performance. You should already have some experience with Clojure and it would help if you already know a little bit of Java. Knowledge of performance analysis and engineering is not required. For hands-on practice, you should have access to Clojure REPL with Leiningen.