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 年前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 年前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 年前3Comprehensive Rust(English) 202412
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 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 | 10 月前3A tale of Rust, the ESP32 and IoT
A tale of Rust, the ESP32 and IoT It can‘t be that hard… Who am I? Jens Reimann • Principal Software Engineer • Red Hat • Middleware, Messaging, IoT • Programming languages • 90s: Basic, Pascal, Java, Go, Rust @ctron https://dentrassi.de Telemetry data for Eclipse Hono Goal of this talk? Get you excited about Rust! Why Rust? Do we really need another programming language? Rust "A language reliable and efficient software." https://www.rust-lang.org/ Rust “Rust is a language for systems programming.” Jim Blandy & Jason Orendorff, Programming Rust “Systems programming is for: … • Code that0 码力 | 37 页 | 3.51 MB | 1 年前3C++/Rust Interop: Using Bridges in Practice
1 - New Rust Extends a C++ Project 5Large existing C++ Library New Plugin Existing Plugins 6C++ Header Class with Methods C++ Source Uses extern “C” from Rust Unsafe Rust C ABI Safe Rust hpp cpp std::unique_ptr<rust::Joint, deleter_from_fn> robot_joint_; }; } // namespace robot_joint hpp 10namespace robot_joint::rust { struct Joint; } // namespace robot_joint::rust extern "C" "C" { extern void robot_joint_free(robot_joint::rust::Joint*); } template struct deleter_from_fn { template constexpr void operator()(T* arg) const { fn(arg); } }; hpp 0 码力 | 45 页 | 724.12 KB | 5 月前3The Rust Programming Language,2nd Edition
The Rust Programming Language The Rust Programming Language Steve Klabnik and Carol Nichols, with Contributions from the Rust Community The Rust Programming Language, © Steve Klabnik and Carol Nichols Nichols, with Contributions from the Rust Community. Contents I Getting started 7 1 Introduction 9 1.1 Contributing to the book . . . . . . . . . . . . . . . . . 10 1.2 . . . . . . . . . . . . . . . . . . . . 132 6.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 II Basic Rust Literacy 143 1 Using Modules to Reuse and Organize Code 145 1.1 . . . . . . . . . . . . . . . .0 码力 | 617 页 | 1.54 MB | 1 年前3Rustle: the first static analyzer for smart contracts in Rust
第三届中国Rust开发者大会 Rustle: the first static analyzer for smart contracts in Rust Matthew Jiang Director of Security Team @ BlockSec Motivation Background Design 1 2 3 Capability Usability Conclusion Conclusion 4 5 6 Outline Motivation Why do we develop Rustle? Emerging chains with Rust as smart contracts language Motivation Limitations of manual audit •Time-consuming •Expensive •Skilled auditors •Error-prone Motivation Motivation Current tools: Don’t support contracts in Rust Background LLVM IR Design C; C++ Rust Go Front-end Clang Rustc Gollvm LLVM IR Back-end x86 ARM BPF WASM0 码力 | 28 页 | 4.49 MB | 1 年前3Learning by Contributing to Rust Compiler - 陈于康
第三届中国 Rust 开发者大会 Learning by Contributing to Rust Compiler Yukang github.com/chenyukang Engineer @ Cryptape Leveling Up in Rust • 2011 ~ 2014 EDA startup C/C++ • 2014 ~ 2020 DJI • 2020 ~ 2023 Microsoft C#, PowerShell • 2023 ~ now Cryptape Rust My work experience • Strongly interested in programming languages implementation • youki, dapr-wasm • 2022 ~ Regular contributions to Rust My Rust experience • A real case Remove duplicated diagnostics • Issue #100000, Rust is beautiful How I started hacking Rustc [100+ Prs]0 码力 | 23 页 | 3.28 MB | 1 年前3
共 267 条
- 1
- 2
- 3
- 4
- 5
- 6
- 27