Rust 语言学习笔记## Rust 语言学习笔记 感谢 RustPrimer 和 Rust 程序设计语言简体中文版 bradyjoestar@gmail.com ## 目录 序.....7 第一章 包管理系统与版本管理工具.....9 1.1 Crate.....9 1.2 module.....11 1.2.1 module 的可见性.....11 1.2.2 restricted.....15 1.3 版本管理工具.....15 1.4 rust 编译运行.....16 第二章 Rust 基本语法.....17 2.1 前置知识.....17 2.1.1 表达式和语句.....17 2.1.2 rust doc.....17 2.2 条件表达式.....18 2.2.1 if 表达式 while 循环.....19 2.3.3 loop.....20 2.3.4 break 和 continue.....20 2.3.5 label.....20 2.4 Rust 类型系统.....21 2.4.1 可变性.....21 2.4.2 原生类型.....21 第三章 所有权 引用借用 生命周期.....31 3.1 所有权0 码力 | 117 页 | 2.24 MB | 2 年前3
Rust语言核心竞争力-庄晓立# Rust编程语言 # 核心优势和核心竞争力  庄晓立,北京,QCon2016 liigo@qq.com QCon 全球软件开发大会【北京站】2016 #### QCon | 2016.10.20~22 上海·宝华万豪酒店 全球软件开发大会 优惠(截至06月21日) 现在报名,立省2040元/张 ## 新人分享新语言 2015年5月Rust语言刚刚发布1.0版本 2013年末我开始关注Rust,但尚未深入实践 在重大场合正式演讲这是人生第一次 2016年春节至今认真准备讲稿近三个月 如有错误或纰漏,敬请谅解! 感谢臧秀涛主编盛情邀请! ## Rust 安全、高效、并发的系统编程语言  $$ Rust\quad=\quad\begin{aligned}& 传统 C/C++ 语言 \\ &+\\ & 内存安全 (0 码力 | 51 页 | 1.09 MB | 2 年前3
Rust 程序设计语言简体中文版## Rust 程序设计语言 简体中文版 ## 目录 Rust 程序设计语言 ..... 5 前言 ..... 6 简介 ..... 7 1. 入门指南 ..... 11 1.1. 安装 ..... 12 1.2. Hello, World! ..... 15 1.3. Hello, Cargo! ..... 19 2. 写个猜数字游戏 ..... 23 3. 常见编程概念 采用测试驱动开发完善库的功能 ..... 293 12.5. 处理环境变量 ..... 304 12.6. 将错误信息输出到标准错误而不是标准输出 ..... 316 13. Rust 中的函数式语言功能:迭代器与闭包 ..... 318 13.1. 闭包:可以捕获其环境的匿名函数 ..... 319 13.2. 使用迭代器处理元素序列 ..... 329 13.3. 改进之前的 421 16.3. 共享状态并发 ..... 427 16.4. 使用 Sync 与 Send Traits 的可扩展并发 ..... 433 17. Rust 的面向对象编程特性 ..... 435 17.1. 面向对象语言的特点 ..... 436 17.2. 顾及不同类型值的 trait 对象 ..... 440 17.3. 面向对象设计模式的实现 ..... 4460 码力 | 600 页 | 12.99 MB | 2 年前3
Rust 程序设计语言 简体中文版 1.85.0Rust 程序设计语言 简体中文版 Rust 程序设计语言 简体中文版 目录 Rust 程序设计语言 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 2/562 Rust 程序设计语言 简体中文版 11. 编写自动化测试 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 将错误信息输出到标准错误而不是标准输出 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 13. 函数式语言特性:迭代器与闭包 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 562 页 | 3.23 MB | 8 月前3
Concurrency in RustConcurrency in Rust Alex Crichton ## What's Rust? Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. ## Concurrency? Rust? Libraries • Deadlocks • Use after free Exploitable! • Double free Concurrency? Rust? Libraries Futures ## What's Rust? Rust is a systems programming language that runs blazingly fast, prevents segfaults auto& elem = vector[0]; vector.push_back(some_string); cout << elem; } ## Rust's Solution Ownership/Borrowing  Martin Geisler ## Contents Welcome to Comprehensive Rust 👑👑 1 Running the Course 13 1.1 Course 2.1 The Rust Ecosystem 18 2.2 Code Samples in This Training 19 2.3 Running Code Locally with Cargo 20 I Day 1: Morning 22 3 Welcome to Day 1 23 4 Hello, World 25 4.1 What is Rust? 25 4.2 2 Benefits of Rust 26 4.3 Playground 26 5 Types and Values 28 5.1 Hello, World 28 5.2 Variables 29 5.3 Values 29 5.4 Arithmetic 30 5.5 Type Inference 30 5.6 Exercise: Fibonacci 31 5.60 码力 | 378 页 | 1009.46 KB | 2 年前3
Comprehensive RustComprehensive Rust  Martin Geisler ## 차례 Comprehensive Rust 에 오신 것을 환영합니다 👑 1 강의전행 12 1.1 강의구성 13 1.2 단축키 15 1 강의에서의 코드샘플 18 2.3 로컬 환경의카고 19 I 1 일차 오전 20 3 1 일차개요 21 4 Hello World! 23 4.1 러스트란? 23 4.2 Rust 의이점 23 4.3 플레이그라운드 24 5 타입 및값 26 5.1 Hello World! 26 5.2 변수 27 5.3 값 27 5.4 연산 28 5 30.6 안전하지 않은 트레잇구현하기 182 30.7 FFI 래퍼 183 30.7.1 해답 185 IX 안드로이드 189 31 Welcome to Rust in Android 190 32 설치 191 33 빌드규칙 192 33.1 러스트라이너리 193 33.2 러스트라이브러리 193 34 AIDL0 码力 | 368 页 | 1.29 MB | 1 年前3
2021-11-22 - Rust CTCFT - Rust for Linux## Rust for Linux Miguel Ojeda Wedson Almeida Filho Alex Gaynor ## I ntroduction Rust for Linux aims to add Rust support to the Linux kernel. We believe Rust offers key improvements over C in this domain in the improvement of Rust for everyone! 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 } } ## 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 | 1 年前3
RUST 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 # Memory safety vulnerabilities remain 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 What language? ## Case Study: Rust ■ Semi-structured interview with senior developers (I = 16) ☑ Survey with Rust community (S = 178) ## Learning Rust ☑ Rust is hard to learn. ### Rust has “a near-vertical learning0 码力 | 19 页 | 3.37 MB | 2 年前3
Real world Rust
- Why and how we use Rust in TiKVReal world Rust Why and how we use Rust in TiKV 黄东旭 PingCAP 技术架构未来 thegiac.com ## 关于我 ● 黄东旭 Dongxu_Huang • Open source hacker / Infrastructure Engineer • MSRA / Netease / Wandoujia / PingCAP CTO PingCAP • Codis / TiDB / TiKV • Go / Python / Rust ...  ## What's Rust • Yet another system programming language o Alternative to C/C++  ## Why Rust? ## • Safe ○ Thread safety guarantee ☐ Segfaults free ## • Blazingly fast ☐ Ilvm backend ☐ No0 码力 | 29 页 | 506.53 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













