2021-11-22 - Rust CTCFT - Rust for LinuxRust 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 0b090148 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-supported0 码力 | 53 页 | 332.50 KB | 9 月前3
Comprehensive 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 年前3
Concurrency in Rustin 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 年前3
Comprehensive RustComprehensive 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 年前3
Linux Docker MessLinux wangxiaodong@ouc.edu.cn http://www.tldp.org/LDP/intro-linux/html/sect_01_01.html Linux History n 1991年4月,芬兰赫尔辛基大学计算机系研究生Linus Torvalds开始为一个以后被称为 “Linux”的内核而工作。(后附Linus的邮件) n 1991年8月25日,Lin os.minix发表了Linux V0.01,约有 一万行代码。 n 1992年,全世界大约有1000个左右的人使用Linux,并有不少人提供初期的代码上载 和评论。 n 1993年,大约由100多个程序员参与内核代码修改,内核核心由5人组成,V0.99 约有 十万行代码。 n 1993年12月,Linux全球用户数约在10万左右。 n 1994年3月,Linux1.0问世,约有17万 0问世,约有17万行代码。它完全按自由免费的协议发布,源码 必须完全公开,之后很快Linux正式采用GPL协议。 n 1995年,Linux全球用户数大大超过50万, Linux已可在Intel、Digital和Sun SPARC 处理器上运行,Linux Journal杂志已发行了10万册。内核发展到1.2,约有25万行代 码。 Linux History n 第一篇Linux帖子 From: torvalds@klaava0 码力 | 77 页 | 7.40 MB | 1 年前3
Building Linux Distribution(Linux 分布式)- 贾晓宇第三届中国Rust开发者大会 Building Linux Distribution from Scratch with Rust Speaker: Jia Xiaoyu CONTENTS Why choose rust? Using Rust and LFS build linux distro O2 What rkos brings us? Why do we choose choose Rust? Why do we choose Rust? PhoTto / image / chart Why do we want to use Rust to build most of the things in the Operating system? 1. If you have a very large (millions of lines of code) codebase choose rust? The number of vulnerabilities by type in the GNU since 1999 (data from: CVE Details) What rust-related things have happened in the kernel since the release of kernel 6.1? •Linux 6.1:0 码力 | 19 页 | 723.62 KB | 1 年前3
RUST AS A CASE STUDYBENEFITS 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 年前3
Real world Rust
- Why and how we use Rust in TiKVReal 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
Comprehensive Rust(日语) 202412Comprehensive Rust Martin Geisler 目次 Comprehensive Rust へようこそ 11 1 講座の運営について 13 1.1 講座の構成 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.2 キーボードショートカット . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 Cargo の使用 18 2.1 Rust エコシステム . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.2 講座のサンプルコード . . . Day 1:AM 22 3 Day 1 へようこそ 23 4 Hello, World 25 4.1 Rust とは? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 4.2 Rust のメリット . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 381 页 | 1.36 MB | 11 月前3
Comprehensive Rust(English) 202412Comprehensive 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 19 2.1 The Rust Ecosystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.2 Code Samples in This Welcome to Day 1 24 4 Hello, World 26 4.1 What is Rust? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.2 Benefits of Rust . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 382 页 | 1.00 MB | 11 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













