
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
متخصص نوشتن کد سریع و پربازده در Clojure نسخه ۱٫۷٫۰ شوید.
درباره این کتاب
با بهکارگیری قابلیتهای مناسب Clojure، کارایی کد را بالا ببرید. بازدهی برنامهها را بهتر کنید و برای استقرارشان برنامهریزی کنید. راهنمایی عملی برای طراحی برنامههای Clojure تا به بهترین کارایی برسید.
این کتاب برای چه کسانی است
این کتاب برای توسعهدهندگان متوسط Clojure نوشته شده که میخواهند روی رسیدن به بهترین کارایی مسلط شوند. آشنایی پایه با Java هم مفید است.
چه چیزهایی یاد میگیرید
با ابزارهای مختلف پروفایلینگ، مشکلات کارایی را در برنامههای Clojure پیدا کنید. تکنیکهای رسیدن به کارایی عددی در Clojure را یاد بگیرید. با کتابخانه Criterium تأخیر عبارتهای Clojure را اندازه بگیرید. از قابلیتهای Java در کد Clojure برای بالا بردن کارایی استفاده کنید. با type hint از reflection و boxing دوری کنید. primitives مربوط به همزمانی و مدیریت حالت در Clojure را عمیق بفهمید. کارایی را اندازه بگیرید و پایش کنید و تکنیکهای بهینهسازی را بشناسید.
با جزئیات بیشتر
Clojure کد را مثل داده میبیند و یک سیستم ماکرو دارد. تمرکزش روی برنامهنویسی با مقادیر تغییرناپذیر و سازههای صریح برای پیشرفت زمان است؛ سازههایی که قرار است ساخت برنامههای پایدارتر را آسانتر کنند، بهویژه برنامههای چندنخی. این زبان با نگاه به کارایی، عملگرایی و سادگی ساخته شده است. مثل بیشتر زبانهای همهمنظوره، قابلیتهای مختلف Clojure ویژگیهای کارایی متفاوتی دارند و برای نوشتن کد پربازده باید آنها را بشناسید. این کتاب نشان میدهد چطور پیامدهای کارایی انتزاعهای مختلف Clojure را ارزیابی کنید، زیربنایشان را بشناسید و برای رسیدن به بهترین کارایی در برنامههای واقعی، رویکرد درست را بهکار ببرید. ابتدا کمک میکند کاربردهای مختلف و نیاز به آنها را از نظر کارایی دستهبندی کنید و جنبههای گوناگون کارایی را تحلیل کنید. همچنین واژگان کارایی را که متخصصان در سراسر جهان بهکار میبرند یاد میگیرید و ساختارهای داده، انتزاعها و ویژگیهای کارایی آنها در Clojure را میشناسید. در ادامه، کتاب شما را در بالا بردن کارایی با استفاده از قابلیت همکاری با Java و ویژگیهای مخصوص JVM از داخل Clojure راهنمایی میکند. همچنین اهمیت بهکارگیری ساختار داده همزمان درست و انتزاعهای همزمانی Java را برجسته میکند. این کتاب به معیارهای کارایی برای اندازهگیری، نحوه اندازهگیری و نحوه نمایش و پایش دادههای جمعآوریشده هم میپردازد. در پایان کتاب یاد میگیرید یک پروفایلر کارایی را اجرا کنید، گلوگاهها را پیدا کنید، کارایی را تنظیم کنید و کد را بازآرایی کنید تا به کارایی بهتر برسید.
سبک و رویکرد
راهنمایی آسان و پر از مثالهای واقعی و قطعهکدهای کامل که کمک میکند دستبهکار شوید و برنامهنویسی با کارایی بالا با Clojure را تمرین کنید.
Become an expert at writing fast and high performant code in Clojure 1.7.0About 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 performanceWho 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 techniquesIn 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