Programming Rust: Fast, Safe Systems Development (Paperback)

Jim Blandy, Jason Orendorff

買這商品的人也買了...

商品描述

This practical book introduces systems programmers to Rust, the new and cutting-edge language. You’ll learn how Rust offers the rare and valuable combination of statically verified memory safety and low-level control—imagine C++, but without dangling pointers, null pointer dereferences, leaks, or buffer overruns.

Author Jim Blandy—a former maintainer of GNU Emacs and GNU Guile—demonstrates how Rust has the potential to be the first usable programming language that brings the benefits of an expressive modern type system to systems programming. Rust’s rules for borrowing, mutability, ownership, and moves versus copies will be unfamiliar to most systems programmers, but they’re key to Rust’s unique advantages.

This book presents Rust’s rules clearly and economically; elaborates on their consequences; and shows you how to express the programs you want to write in terms that Rust can prove are free of broad classes of everyday errors.

商品描述(中文翻譯)

這本實用的書介紹了Rust這個新興且尖端的程式語言給系統程式設計師。你將學習到Rust提供了罕見且有價值的結合,即靜態驗證的記憶體安全性和低階控制。想像一下C++,但沒有懸空指標、空指標解引用、洩漏或緩衝區溢位。

作者Jim Blandy是GNU Emacs和GNU Guile的前維護者,他展示了Rust有潛力成為第一個將表達豐富的現代型別系統帶給系統程式設計的可用程式語言。Rust對於借用、可變性、所有權和移動與複製的規則對大多數系統程式設計師來說可能是陌生的,但它們是Rust獨特優勢的關鍵。

這本書清楚而簡潔地介紹了Rust的規則,詳細說明了它們的後果,並向你展示如何以Rust可以證明不會出現廣泛類型的日常錯誤的方式來表達你想要撰寫的程式。