Clojure High Performance Programming, 2/e(Paperback)
暫譯: Clojure 高效能程式設計(第二版)
Shantanu Kumar
- 出版商: Packt Publishing
- 出版日期: 2015-09-30
- 售價: $1,660
- 貴賓價: 9.5 折 $1,577
- 語言: 英文
- 頁數: 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 中進行高效能編程。