
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
دنیای برنامهنویسی Rust را با مثالهای واقعی کشف کنید
ویژگیهای کلیدی
از قابلیتهای گوناگون Rust برای ساخت برنامههایی بسیار سریع استفاده کنید
یاد بگیرید با Gtk-rs برنامههای رابط گرافیکی بسازید
جنبه چندنخی Rust را بررسی کنید تا با مسائل همزمانی و محیطهای توزیعشده روبهرو شوید
درباره کتاب
Rust یک زبان متنباز، امن، همزمان و کاربردی است که موزیلا آن را ساخته است. خیلی سریع اجرا میشود، از segfault جلوگیری میکند و ایمنی را تضمین میکند. این کتاب شما را با جنبههای مختلف برنامهنویسی Rust آشنا میکند و شروع توسعه نرمافزار را برایتان هموار میسازد. با این روش، فاصله بین یادگیری و پیادهسازی فوری از بین میرود.
با معرفی Rust شروع میکنید و مباحث پایهای مثل نحو، انواع داده، توابع، جنریکها، جریان کنترل و موارد دیگر را یاد میگیرید. بعد مستقیم سراغ اولین پروژه میروید: بازی تتریس. سپس یک پخشکننده موسیقی گرافیکی میسازید و با کمک Tokio — کتابخانه IO ناهمگام، مقیاسپذیر و پربازده Rust — روی نرمافزارهای شبکه سریع و قابلاعتماد کار میکنید.
در طول کتاب، قابلیتهای گوناگون برنامهنویسی Rust را میبینید؛ از جمله ویژگیهای SDL، حلقه رویداد، ورودی/خروجی فایل و جعبهابزار معروف ویجت GTK+. با این پروژهها میبینید Rust در همزمانی چقدر خوب عمل میکند؛ از جمله موازیسازی، قابلیت اطمینان، عملکرد بهتر، جنریکها، ماکروها و ایمنی نخ. همچنین بخشی از برنامهنویسی ناهمگام و واکنشی در Rust را پوشش میدهیم. در پایان کتاب، ساخت انواع برنامههای واقعی با Rust برایتان آشنا و راحت خواهد بود.
آنچه یاد میگیرید
پروژههای Rust را با مدیر بسته Cargo کامپایل و اجرا کنید
از قابلیتهای Rust-SDL مثل حلقه رویداد، پنجرهها، حلقههای بینهایت، تطبیق الگو و موارد دیگر استفاده کنید
با Gtk-rs و Rust-SDL رابط گرافیکی بسازید
مکانیسم همزمانی و چندنخی را همراه با ایمنی نخ و قفلها بهکار بگیرید
پروتکل FTP را با پشته ورودی/خروجی ناهمگام و کتابخانه Tokio پیادهسازی کنید
این کتاب برای چه کسانی است
این کتاب برای توسعهدهندگان نرمافزاری است که به برنامهنویسی سطح سیستم و کاربردی علاقه دارند و میخواهند سریع وارد Rust شوند و ویژگیهای اصلی آن را بفهمند. فرض بر این است که آشنایی پایهای با Java، C#، Ruby، Python یا JavaScript دارید.
Discover the world of Rust programming through real-world examplesKey FeaturesImplement various features of Rust to build blazingly fast applicationsLearn to build GUI applications using Gtk-rsExplore the multi-threading aspect of Rust to tackle problems in concurrency and in distributed environmentsBook DescriptionRust is an open source, safe, concurrent, practical language created by Mozilla. It runs blazingly fast, prevents segfaults, and guarantees safety. This book gets you started with essential software development by guiding you through the different aspects of Rust programming. With this approach, you can bridge the gap between learning and implementing immediately. Beginning with an introduction to Rust, you'll learn the basic aspects such as its syntax, data types, functions, generics, control flows, and more. After this, you'll jump straight into building your first project, a Tetris game. Next you'll build a graphical music player and work with fast, reliable networking software using Tokio, the scalable and productive asynchronous IO Rust library. Over the course of this book, you'll explore various features of Rust Programming including its SDL features, event loop, File I/O, and the famous GTK+ widget toolkit. Through these projects, you'll see how well Rust performs in terms of concurrency—including parallelism, reliability, improved performance, generics, macros, and thread safety. We'll also cover some asynchronous and reactive programming aspects of Rust. By the end of the book, you'll be comfortable building various real-world applications in Rust. What you will learnCompile and run the Rust projects using the Cargo-Rust Package managerUse Rust-SDL features such as the event loop, windows, infinite loops, pattern matching, and moreCreate a graphical interface using Gtk-rs and Rust-SDLIncorporate concurrency mechanism and multi-threading along with thread safety and locksImplement the FTP protocol using an Asynchronous I/O stack with the Tokio libraryWho this book is forThis book is for software developers interested in system level and application programming who are looking for a quick entry into using Rust and understanding the core features of the Rust Programming. It's assumed that you have a basic understanding of Java, C#, Ruby, Python, or JavaScript.