
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
**یاد میگیرید چگونه کدتان را با قابلیتهای قدرتمندِ رست تزریق کنید تا اپلیکیشنهایی سریع و امن از نظر حافظه بسازید**## ویژگیهای کلیدی* یاد بگیرید چطور در یک سیستم پایتونی، رست را پیاده کنید بدون اینکه مجبور باشید کل سیستم را تغییر دهید* بهعنوان یک توسعهدهنده پایتون، با درک قابلیتهای ضروری زبان رست، کد رستِ امن و کارآمد بنویسید* با استفاده از ماژولهای Python NumPy در کد رست، پسوندهای پایتونی را در رست بسازید## شرح کتابپایتون توسعه نرمافزار را راحتتر کرده، اما در چند زمینه ضعف دارد؛ از جمله مدیریت حافظه که به افت عملکرد و کاهش امنیت منجر میشود. رست در مقابل، بدون نیاز به جمعکننده زباله (garbage collector) ایمنی حافظه را فراهم میکند. همین موضوع باعث میشود با مصرف حافظه پایین، بتوانید نسبتاً آسان اپلیکیشنهای پُربازده و امن بسازید. با این حال، بازنویسی همه چیز با رست میتواند پرهزینه و پرریسک باشد؛ چون ممکن است برای مسئلهای که حل میکنید، پشتیبانی بستهها در رست وجود نداشته باشد.اینجاست که Python bindings و pip وارد ماجرا میشوند.این کتاب به شما کمک میکند، بهعنوان یک توسعهدهنده پایتون، بدون اینکه لازم باشد یک سرور یا اپلیکیشن جداگانه رستی مدیریت کنید، شروع کنید از رست در پروژههای پایتونیتان استفاده کنید. چون از قبل با مفاهیمی مثل توابع و حلقهها آشنا هستید، این کتاب سراغ نکتههای ریز رست هم میرود؛ مثل مدیریت حافظه، تا بتوانید رست را به شکلی پُرثمر و ساختارمند کدنویسی کنید. شما کرِیت (crate) PyO3 را بررسی میکنید تا کد رست را با پایتون ترکیب کنید، یاد میگیرید کد رستیِ ترکیبشده را داخل یک بسته pip آماده کنید و سپس یک اپلیکیشن Flask پایتونی را در Docker مستقر میکنید که از یک ماژول خصوصی رستِ pip استفاده میکند. در نهایت، با موضوعات پیشرفته اتصال رست به پایتون آشنا میشوید؛ مثل بررسی آبجکتها و ماژولهای پایتون در رست.در پایان این کتاب رستی، میتوانید اپلیکیشنهای امن و پُربازده بسازید و از پشتیبانی بهتر برای همزمانی (concurrency) بهره ببرید.## چیزهایی که در این کتاب یاد میگیرید* نکتههای ریز زبان برنامهنویسی رست را که یک توسعهدهنده پایتون برای کدنویسی در رست باید بداند بررسی کنید* برای نوشتن کدهای همزمان، مبادلهها (trade-offs) میان multiprocessing و ایمنیِ ترد (thread safety) را درک کنید* با cargo و crates یک پروژه نرمافزاری را بسازید و مدیریت کنید* کد رست را با پایتون ترکیب کنید تا پایتون بتواند کد رستی را import و اجرا کند* یک اپلیکیشن Flask پایتونی را در Docker مستقر کنید که از یک ماژول خصوصی رستِ pip استفاده میکند* آبجکتهای پایتونی را در رست بررسی و بسازید## این کتاب مناسب چه کسانی استاین کتاب برای توسعهدهندگان پایتون است که میخواهند کد پایتونشان را با رست سریعتر کنند و بتوانند رست را داخل یک سیستم پایتونی پیاده کنند، بدون اینکه مجبور باشند کل سیستم را تغییر دهند. شما با همه موضوعات مرتبط با برنامهنویسی رست آشنا خواهید شد. برای بهرهبردن کامل از این کتاب، داشتن دانش پایه از پایتون لازم است.## فهرست مطالب1. آشنایی با رست2. ساختارسازی کد در رست3. همزمانی در رست4. ساخت ماژولهای خصوصی pip در پایتون5. ساخت یک رابط (اینترفیس) رستی برای ماژول pip شما6. کار با آبجکتهای پایتون در رست7. استفاده از ماژولهای پایتون در رست8. ساختاردهی یک ماژول انتهابهانتها در رست9. ساختارسازی یک اپ Flask برای رست10. تزریق رست داخل یک اپلیکیشن Flask در پایتون11. بهترین روشها
**Discover how to inject your code with highly performant Rust features to develop fast and memory-safe applications**## Key Features* Learn to implement Rust in a Python system without altering the entire system* Write safe and efficient Rust code as a Python developer by understanding the essential features of Rust* Build Python extensions in Rust by using Python NumPy modules in your Rust code## Book DescriptionPython has made software development easier, but it falls short in several areas including memory management that lead to poor performance and security. Rust, on the other hand, provides memory safety without using a garbage collector, which means that with its low memory footprint, you can build high-performant and secure apps relatively easily. However, rewriting everything in Rust can be expensive and risky as there might not be package support in Rust for the problem being solved. This is where Python bindings and pip come in.This book will help you, as a Python developer, to start using Rust in your Python projects without having to manage a separate Rust server or application. Seeing as you'll already understand concepts like functions and loops, this book covers the quirks of Rust such as memory management to code Rust in a productive and structured manner. You'll explore the PyO3 crate to fuse Rust code with Python, learn how to package your fused Rust code in a pip package, and then deploy a Python Flask application in Docker that uses a private Rust pip module. Finally, you'll get to grips with advanced Rust binding topics such as inspecting Python objects and modules in Rust.By the end of this Rust book, you'll be able to develop safe and high-performant applications with better concurrency support.## What you will learn* Explore the quirks of the Rust programming language that a Python developer needs to understand to code in Rust* Understand the trade-offs for multiprocessing and thread safety to write concurrent code* Build and manage a software project with cargo and crates* Fuse Rust code with Python so that Python can import and run Rust code* Deploy a Python Flask application in Docker that utilizes a private Rust pip module* Inspect and create your own Python objects in Rust## Who this book is forThis book is for Python developers who want to speed up their Python code with Rust and implement Rust in a Python system without altering the entire system. You'll be able to learn about all topics relating to Rust programming. Basic knowledge of Python is required to get the most out of this book.## Table of Contents1. An Introduction to Rust2. Structuring Code in Rust3. Concurrency in Rust4. Building Private pip Modules in Python5. Creating a Rust Interface for Your pip Module6. Working with Python Objects in Rust7. Using Python Modules in Rust8. Structuring an End-to-End Python Module in Rust9. Structuring a Python Flask App for Rust10. Injecting Rust into a Python Flask App11. Best Practices