Clojure High Performance Programming, 2/e(Paperback)
Shantanu Kumar
- 出版商: Packt Publishing
- 出版日期: 2015-09-30
- 售價: $1,640
- 貴賓價: 9.5 折 $1,558
- 語言: 英文
- 頁數: 175
- 裝訂: Paperback
- ISBN: 1785283642
- ISBN-13: 9781785283642
-
相關分類:
JVM 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Become an expert at writing fast and high performant code in Clojure 1.7.0
About This Book
- Enhance code performance by using appropriate Clojure features
- Improve the efficiency of applications and plan their deployment
- A hands-on guide to designing Clojure programs to get the best performance
Who This Book Is For
This book is intended for intermediate Clojure developers who are looking to get a good grip on achieving optimum performance. Having a basic knowledge of Java would be helpful.
What You Will Learn
- Identify performance issues in Clojure programs using different profiling tools
- Master techniques to achieve numerical performance in Clojure
- Use Criterium library to measure latency of Clojure expressions
- Exploit Java features in Clojure code to enhance performance
- Avoid reflection and boxing with type hints
- Understand Clojure's concurrency and state-management primitives in depth
- Measure and monitor performance, and understand optimization techniques
In Detail
Clojure treats code as data and has a macro system. It focuses on programming with immutable values and explicit progression-of-time constructs, which are intended to facilitate the development of more robust programs, particularly multithreaded ones. It is built with performance, pragmatism, and simplicity in mind. Like most general purpose languages, various Clojure features have different performance characteristics that one should know in order to write high performance code.
This book shows you how to evaluate the performance implications of various Clojure abstractions, discover their underpinnings, and apply the right approach for optimum performance in real-world programs.
It starts by helping you classify various use cases and the need for them with respect to performance and analysis of various performance aspects. You will also learn the performance vocabulary that experts use throughout the world and discover various Clojure data structures, abstractions, and their performance characteristics. Further, the book will guide you through enhancing performance by using Java interoperability and JVM-specific features from Clojure. It also highlights the importance of using the right concurrent data structure and Java concurrency abstractions.
This book also sheds light on performance metrics for measuring, how to measure, and how to visualize and monitor the collected data. At the end of the book, you will learn to run a performance profiler, identify bottlenecks, tune performance, and refactor code to get a better performance.
Style and approach
An easy-to-follow guide full of real-world examples and self-sufficient code snippets that will help you get your hands dirty with high performance programming with Clojure.
商品描述(中文翻譯)
成為 Clojure 1.7.0 中撰寫快速且高效能程式碼的專家
關於本書
- 使用適當的 Clojure 功能來增強程式碼效能
- 提升應用程式效率並計劃其部署
- 實用指南,設計 Clojure 程式以獲得最佳效能
本書適合對 Clojure 有一定經驗的開發者,希望掌握達到最佳效能的技巧。具備基本的 Java 知識將有所幫助。
你將學到什麼
- 使用不同的性能分析工具來識別 Clojure 程式的性能問題
- 掌握在 Clojure 中實現數值性能的技巧
- 使用 Criterium 函式庫來測量 Clojure 運算式的延遲
- 利用 Java 功能來增強 Clojure 程式碼的性能
- 通過類型提示避免反射和裝箱
- 深入了解 Clojure 的並行處理和狀態管理原理
- 測量和監控性能,並了解優化技巧
詳細內容
Clojure 將程式碼視為資料,並具有巨集系統。它專注於使用不可變值和明確的時間進展結構進行編程,旨在促進開發更強大的程式,特別是多線程程式。它以性能、實用性和簡潔性為基礎。與大多數通用目的語言一樣,Clojure 的各種功能具有不同的性能特性,為了撰寫高效能程式,我們應該了解這些特性。
本書將向您展示如何評估各種 Clojure 抽象的性能影響,了解其基礎知識,並在實際程式中應用適當的方法以獲得最佳性能。
首先,本書將幫助您對各種使用案例進行分類,並根據性能和分析的需求來了解它們。您還將學習專家們在全球範圍內使用的性能術語,並了解各種 Clojure 資料結構、抽象和其性能特性。此外,本書還將指導您如何通過使用 Java 互操作性和 Clojure 的 JVM 特定功能來增強性能。它還強調了使用正確的並行資料結構和 Java 並行抽象的重要性。
本書還闡明了用於測量性能的性能指標,如何進行測量,以及如何視覺化和監控收集的數據。在本書結尾,您將學習運行性能分析器,識別瓶頸,調整性能和重構程式碼以獲得更好的性能。
風格和方法
本書提供了豐富的實例和自包含的程式碼片段,讓您能夠深入了解使用 Clojure 進行高效能程式設計的實踐。