Why Rust? Trustworthy, Concurrent Systems Programming

Why Rust? Trustworthy, Concurrent Systems Programming

简介:

虽然自40多年前C语言问世以来,系统编程语言已经有了很大的发展,但我们处理愚蠢错误的能力仍然没有改变,新闻中经常出现生动的例子。O'Reilly的这份报告研究了Rust,这是一种新的系统编程语言,它将安全性和性能与C和C相结合。本书解释了Rust如何通过复杂而灵活的类型系统与新颖的 “借用检查器” 一起工作来实现这种组合。Rust承诺:

没有空指针取消引用。程序不会崩溃,因为你忘了检查指针是否为空。没有悬挂指针,没有泄漏。每个值将活得尽可能长,不再。无缓冲区溢出。您的程序将永远不会访问超出结束或数组开始之前的元素。

通过本书,您将学习如何使用Rust的安全性,性能和值得信赖的并发性,并且您将了解类型系统和借用检查器如何影响您编写代码的方式。

英文简介:

While systems programming languages have greatly evolved since the introduction of C more than 40 years ago, our capacity for dumb mistakes with enormous consequences has remained unchanged, with vivid examples regularly in the news. This O'Reilly report examines Rust, a new systems programming language that combines safety and security with performance on a par with C and C++.

This book explains how Rust achieves this combination via a sophisticated and flexible type system, working together with a novel "borrow checker." Rust promises:

No null pointer dereferences. Programs won’t crash because you forgot to check whether a pointer was null.No dangling pointers, no leaks. Every value will live as long as it must, and no longer.No buffer overruns. Your program will never access elements beyond the end or before the start of an array.

With this book, you'll learn how to put Rust's safety, performance, and trustworthy concurrency to use, and you'll understand how the type system and borrow checker affect the way you write your code.

书名
Why Rust? Trustworthy, Concurrent Systems Programming
译名
为什么选择 Rust?值得信赖的并发系统编程
语言
英语
年份
2015
页数
60页
大小
1.34 MB
标签
  • 并发编程
  • Rust
  • 下载
    pdf iconWhy Rust? Trustworthy, Concurrent Systems Programming.pdf
    密码
    65536

    最后更新:2025-04-12 23:54:37

    ←Parallel Spectral Numerical Methods

    →Rust Atomics and Locks: Low-Level Concurrency in Practice