Rust 语言学习笔记
Rust 语言学习笔记 感谢 RustPrimer 和 Rust 程序设计语言简体中文版 bradyjoestar@gmail.com 目录 序............................................................................... ....................................... 15 1.4 rust 编译运行 .............................................................................. 16 第二章 Rust 基本语法 ........................................... 17 2.1.1 表达式和语句...................................................................... 17 2.1.2 rust doc ............................................................................. 17 2.2 条件表达式0 码力 | 117 页 | 2.24 MB | 1 年前3Rust语言核心竞争力-庄晓立
Rust编程语言 核心优势和核心竞争力 庄晓立,北京,QCon2016 liigo@qq.com 2016-4-23 新人分享新语言 2015年5月Rust语言刚刚发布1.0版本 2013年末我开始关注Rust,但尚未深入实践 在重大场合正式演讲这是人生第一次 2016年春节至今认真准备讲稿近三个月 如有错误或纰漏,敬请谅解! 感谢臧秀涛主编盛情邀请! Rust 安全、高效、并发的系统编程语言 安全、高效、并发的系统编程语言 2006年 2009年 2012年 2015年 2016年 Rust v0.0 by Graydon Hoare by Mozilla bootstrap in Rust v0.1 ... v0.12 v1.0 ... v1.8 by by Mozilla Servo (web engine) v0.0 ................................... alpha in Rust Cargo ... Rustpkg ... Cargo v0.0 ... v0.2 ... v0.10 系统编程+零运行时+内存安全 系统编程+零运行时+内存安全 (应用领域)0 码力 | 51 页 | 1.09 MB | 1 年前3Rust 程序设计语言简体中文版
Rust 程序设计语言 简体中文版 Rust 程序设计语言 简体中文版 目录 Rust 程序设计语言 ...................................................................................................................... 5 前言 ....................... ................................................................................. 240 2/600 Rust 程序设计语言 简体中文版 11.1. 如何编写测试 .......................................................................... 6. 将错误信息输出到标准错误而不是标准输出 ............................................................. 316 13. Rust 中的函数式语言功能:迭代器与闭包 ...................................................................... 318 13.1. 闭包:可以捕获其环境的匿名函数0 码力 | 600 页 | 12.99 MB | 1 年前3Rust 程序设计语言 简体中文版 1.85.0
Rust 程序设计语言 简体中文版Rust 程序设计语言 简体中文版 目录 Rust 程序设计语言 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 2/562Rust 程序设计语言 简体中文版 11. 编写自动化测试 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 将错误信息输出到标准错误而不是标准输出 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 13. 函数式语言特性:迭代器与闭包 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 562 页 | 3.23 MB | 9 天前3Comprehensive Rust ?
Comprehensive Rust Martin Geisler Contents Welcome to Comprehensive Rust 11 1 Running the Course 13 1.1 Course Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.2 Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 Using Cargo 18 2.1 The Rust Ecosystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.2 Code Samples in This Welcome to Day 1 23 4 Hello, World 25 4.1 What is Rust? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 4.2 Benefits of Rust . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 378 页 | 1009.46 KB | 1 年前3Concurrency in Rust
in Rust Alex Crichton What’s Rust? Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. Concurrency? Libraries Futures Rust? What’s Deadlocks • Use after free • Double free Exploitable! Concurrency? Libraries Futures Rust? What’s Rust? Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees cout << elem; } elem vector ... [0] [0] [1] Dangling pointer! Aliased pointers Mutation Rust’s Solution Ownership/Borrowing No runtime Memory Safety No data races C++ GC Ownership fn0 码力 | 43 页 | 648.31 KB | 1 年前3Comprehensive Rust
Comprehensive Rust Martin Geisler 차 례 Comprehensive Rust 에 오신 것을 환영합니다 10 1 강의진행 12 1.1 강의구성 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.2 단축키 . . . . . . . . World! 23 4.1 러스트란? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.2 Rust 의이점 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.3 플레이그라운드 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 IX 안드로이드 189 31 Welcome to Rust in Android 190 32 설치 191 33 빌드규칙 192 33.1 러스트바이너리 . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 368 页 | 1.29 MB | 1 年前32021-11-22 - Rust CTCFT - Rust for Linux
Rust for Linux Miguel Ojeda Wedson Almeida Filho Alex Gaynor Rust for Linux aims to add Rust support to the Linux kernel. We believe Rust offers key improvements over C in this domain. We hope improvement of Rust for everyone! Introduction Language Library Tooling Nightly features A general priority is to stabilize them (or to find alternatives): https://github.com/Rust-for-Linux/linux/issues/2 add w8, w10, w9 Language Memory model: future potential Unified/Compatible Linux kernel and Rust memory models: No need to use inline assembly to define a new memory model. Language-supported address0 码力 | 53 页 | 332.50 KB | 9 月前3RUST AS A CASE STUDY
BENEFITS AND DRAWBACKS OF ADOPTING A SECURE PROGRAMMING LANGUAGE: RUST AS A CASE STUDY Kelsey Fulton, Anna Chan, Daniel Votipka, Michelle Mazurek, Michael Hicks 1 Memory safety vulnerabilities https://www.zdnet.com/article/chrome-70- of-all-security-bugs-are-memory-safety-issues/ Case Study: Rust ■ Attempt safety and performance (e.g., no GC) ■ Useful where C/C++ are hardest to replace ■ language? 3 Case Study: Rust ■ Semi-structured interview with senior developers (I = 16) ■ Survey with Rust community (S = 178) 4 Learning Rust ■ Rust is hard to learn. 5 Rust has “a near-vertical0 码力 | 19 页 | 3.37 MB | 1 年前3Real world Rust - Why and how we use Rust in TiKV
Real world Rust Why and how we use Rust in TiKV 黄东旭 PingCAP 关于我 ● 黄东旭 Dongxu_Huang ● Open source hacker / Infrastructure Engineer ● MSRA / Netease / Wandoujia / PingCAP ● CTO of PingCAP ● Codis Go / Python / Rust ... What’s Rust ● Yet another system programming language ○ Maintain by Mozilla ● Stable: 1.13 ○ Stable enough for production use ● Alternative to C/C++ Why Rust? ● Safe ○ Thread ● Modern tool chain ○ Modern package management tools ○ Embedded unit test framework ● Stdlibs Rust 哲学 ● Zero-cost abstraction ● 内存安全 ○ Build-in RAII / Ownership ○ No NULL ptr ● 万物皆有所有权 ○ Ownership0 码力 | 29 页 | 506.53 KB | 1 年前3
共 78 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8