
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
درباره این کتاب
با مزیتهای ارزیابی تنبل، امکانات کامپایلر، و ابزارها و کتابخانههایی که برای کارایی بالا طراحی شدهاند آشنا شوید.
برنامههایی سریع در سطوح بسیار بالای انتزاع بنویسید.
با مثالهای عملی پیش بروید که کمک میکنند چالشهای نوشتن کد کارآمد را حل کنید.
این کتاب برای چه کسانی است
برای بیشترین بهره از این کتاب، باید با خواندن و نوشتن Haskell پایه آشنا باشید. نیازی به دانستن عملکرد، بهینهسازی یا همزمانی نیست.
آنچه خواهید آموخت
Haskell را به سبک اصطلاحی بنویسید؛ سبکی که در عین حال بهطرز شگفتآوری کارآمد است.
کارایی کدتان را با موازیسازی داده، اینلاین کردن و نشانهگذاریهای سختگیری بهتر کنید.
برنامههایتان را پروفایل کنید تا نشت حافظه و فرصتهای ازدسترفته برای بهینهسازی را پیدا کنید.
بیاموزید چطور کارآمدترین ساختارهای داده و کنترل را انتخاب کنید.
کامپایلر و سامانه زماناجرای Glasgow Haskell را برای برنامههای خاص بهینه کنید.
ببینید چطور هرجا لازم باشد، بهآرامی به انتزاعهای پایینتر بروید.
با Accelerate برای GPU برنامهنویسی کنید.
با Cloud Haskell برنامههایی بنویسید که بهراحتی در ابر مقیاس بگیرند.
با جزئیات بیشتر
Haskell با قدرت بهینهسازی کد و کارایی بالایش، گزینه طبیعی برای برنامهنویسی با کارایی بالاست. این کتاب به چالشهای نوشتن کد کارآمد با ارزیابی تنبل میپردازد و تکنیکهایی را بررسی میکند که معمولاً برای بهتر کردن عملکرد برنامههای Haskell به کار میروند.
با نگاهی دقیق به ارزیابی عبارتهای Haskell شروع میکنیم و درباره بهینهسازی و بنچمارک حرف میزنیم. یاد میگیرید چطور از موازیسازی استفاده کنید و مفهوم استریمینگ را بررسی میکنیم. مزایای اجرای برنامههای چندنخی و همزمان را نشان میدهیم. بعد شما را با ابزارهای گوناگون پروفایلینگ آشنا میکنیم که کمک میکنند مشکلات عملکردی برنامهتان را پیدا کنید. در پایان مسیر، به GPGPU، ابر و برنامهنویسی واکنشی تابعی در Haskell میرسیم. در انتهای کتاب، فهرستی از پیشنهادهای کتابخانههای قوی همراه با نمونهکد آمده است.
تا پایان کتاب میتوانید کارایی هر برنامهای را بالا ببرید و آن را برای فشار دنیای واقعی آماده کنید.
About This BookExplore the benefits of lazy evaluation, compiler features, and tools and libraries designed for high performanceWrite fast programs at extremely high levels of abstractionWork through practical examples that will help you address the challenges of writing efficient codeWho This Book Is ForTo get the most out of this book, you need to have working knowledge of reading and writing basic Haskell. No knowledge of performance, optimization, or concurrency is required.What You Will LearnProgram idiomatic Haskell, which is also surprisingly efficientImprove performance of your code with data parallelism, inlining, and strictness annotationsProfile your programs to identify space leaks and missed opportunities for optimizationFind out how to choose the most efficient data and control structuresOptimize the Glasgow Haskell Compiler and Runtime System for specific programsSee how to smoothly drop to lower abstractions wherever necessaryExecute programming for the GPU with AccelerateImplement programming to easily scale to the cloud with Cloud HaskellIn DetailHaskell, with its power to optimize code and its high performance, is a natural candidate for high performance programming. This book addresses the challenges of writing efficient code with lazy evaluation and techniques often used to optimize the performance of Haskell programs.We open with a detailed look at the evaluation of Haskell expressions and discuss optimization and benchmarking. You will learn how to use parallelism, and we'll explore the concept of streaming. We'll demonstrate the benefits of running multi-threaded and concurrent applications. Next, we'll guide you through various profiling tools that will help you identify performance issues in your program. We'll end our journey by looking at GPGPU, cloud, and Functional Reactive Programming in Haskell. At the very end, there is a catalogue of robust library recommendations with code samples.By the end of the book, you will be able to boost the performance of any app and prepare it to stand up to real-world punishment.