Lifetime Safety in C++: Past, Present and Future## 20 23 October 01 - 06 ## +23 ## Lifetime Safety in C++: Past, Present and Future #### GABOR HORVATH Gabor.Horvath@microsoft.com ## Welcome to CppCon 2023! Come by our booth and join #visual_studio https://aka.ms/cppcon/lifetime 0  Approaches to safety ## ↑ C++ is getting safer The lifetime safety toolbox What comes comes next? 2023 ## Safety & Security: The Future of C++ JF Bastien  ## All the Safeties 2023 Safety & Security: The0 码力 | 124 页 | 2.03 MB | 1 年前3
Back To Basics Lifetime Management## +24 ## Back To Basics Lifetime Management ## PHIL NASH ## 20 24 September 15 - 20 ## C++ is complex  mostly for historical https://www.sonarsource.com/blog/beyond-the-rules-of-three-five-and-zero/ ## +24 ## Back To Basics Lifetime Management ## PHIL NASH ## 20 24 September 15 - 200 码力 | 66 页 | 8.43 MB | 1 年前3
Object Lifetime: From Start to Finish## +23 ## Object Lifetime: From Start to Finish ## THAMARA ANDRADE ## 20 23 October 01 - 06 ## Object Lifetime ## From Start to Finish int main() { if (doSomething(Foo().getBar())) { // realizing I didn’t really understand the rules for object lifetime. ## What is object lifetime anyway? ### 6.8 Object lifetime [basic.life] The lifetime of an object or reference is a runtime property of the Initialization by a trivial copy/move constructor is non-vacuous initialization. — end note] The lifetime of an object of type T begins when: (1.1) — storage with the proper alignment and size for type0 码力 | 214 页 | 9.34 MB | 1 年前3
Security Beyond Memory Safety## +24 ## Security Beyond Memory Safety Using Modern C++ to Avoid Vulnerabilities by Design ## MAX HOFFMANN ## Security Beyond Memory Safety Using Modern C++ to Avoid Vulnerabilities by Design FIFTY Stroustrup • Herb Sutter ## Smart pointers Smart pointers enable automatic, exception-safe, object lifetime management. Defined in header## Pointer categories unique_ptr(C++11) shared_ptr(C++11) today's C++. ## Carbon Language: An experimental successor to C++ ## Memory safety Safety, and especially memory safety, remains a key challenge for C++ and something a successor language needs to address 0 码力 | 79 页 | 4.15 MB | 1 年前3
Improving Our Safety With a Quantities and Units Library## +24 ## Improving Our Safety With a Quantities and Units Library ## MATEUSZ PUSZ ## The future is here  ## The future Computer  ## C++ safety • A major concern in the C++ Community in the recent years • Potential improvements are being discussed library ## • Compile-time safety – correct handling of physical quantities, units, and numerical values ## mp-units: C++20/23 quantities and units library ## • Compile-time safety – correct handling of0 码力 | 207 页 | 6.93 MB | 1 年前3
cppcon 2021 safety guidelines for C parallel and concurrency## +21 ## Misra Parallelism Safety-critical Guidelines for C++11, 17, Then C++20, 23 ANDREAS WEIS, MICHAEL WONG & ILYA BURYLOV 20 21 October 24-29 ## Staff Engineer at Woven Planet 📸 / 🎧 ComicSansMS architect of C++ software solutions for autonomous driving market in Intel Contribution into functional safety MISRA standard Contribution into WG21 in threading, vectorization and numerics. Contribution into can't have them. ## Agenda 1. Current status of C++ safety: MISRA and C++ CG 2. Parallel Safety rules 3. Automotive Safety case ## Safety Critical API Evolution  ## 3 Pre-exasacale ## KHRONOS SAFETY CRITICAL STANDARDS EVOLUTION  OpenGL SC 1.0 - 2005 Fixed function graphics safety-critical subset 0 码力 | 82 页 | 3.35 MB | 1 年前3
LLVM's Realtime Safety Revolution: Tools for Modern Mission Critical Systems## +24 ## LLVM's Realtime Safety Revolution: Tools for Modern Mission Critical Systems DAVID TREVELYAN & CHRISTOPHER APPLE ## Chris Apple ## David Trevelyan • 10-year veteran of the audio industry dependencies? ## What if we had a tool that could simply tell us? ## A nice tool would - Assess real-time safety - Detect a wide range of violations - ...even from third-party and pre-compiled dependencies - - Point to any problematic code - Be able to fail a Cl pipeline build unit tests real-time safety build:mac unit:mac rtsan build:win unit:mac:arm build:linux unit:win unit:linux ## LLVM 200 码力 | 153 页 | 1.38 MB | 1 年前3
Comprehensive Rust(Persian ) 202412☐☐☐☐ FFI - . . . . .LSP ☐☐☐☐☐☐☐☐☐☐☐☐☐☐☐☐☐ - . ☐☐ C ☐☐ ++C (borrow □□ ++C ☐☐ ( memory safety) ☐ ++C ( ### Playground 4.3 ☐ ☐ ☐ ☐ □ playground ☐☐☐☐ ## 5 ☐☐☐ ## ☐☐☐☐☐☐ ☐ ☐☐☐☐☐☐ :□□□□□□ Point(10, 10) ; (let p2: Point = Point(20, 20) ?let p3 = left_most(&p1, &p2); // What is the lifetime of p3 ; ("{?:println!("p3: {p3 { p2 ☐ p1 ☐ p3 : } fn left_most<'a>(p1: &'a ☐☐☐☐ ☐☐☐☐ ☐☐☐☐☐☐☐ 30.3 :□□□ □ ;static mut COUNTER: u32 = 0 } (fn add_to_counter(inc: u32 . 'SAFETY: There are no other threads which could be accessing 'COUNTER // } unsafe ;COUNTER += inc0 码力 | 393 页 | 987.97 KB | 1 年前3
Coroutine Patterns and How to Use Them: Problems and Solutions Using Coroutines in a Modern Codebaseand talking about C++ makers.f.dev@gmail.com ## Outline • Motivation • Overview • Patterns • Lifetime • Exceptions • RAII • Synchronization ## • Conclusions ## Motivation • 40 years of • Experience /8/e20839ae14710dcbb38ddda7e6a7f799/p14_1.jpg) ## Patterns • Lifetime • Exceptions • RAII • Synchronization ## Lifetime ## Lifetime • Lots of worries • Use Structured Concurrency $ ^{[1]} $ • https://ericniebler.com/2020/11/08/structured-concurrence/ ## Lifetime Member coroutines implicitly capture this ## Lifetime Let's play a game ## Lifetime struct Bar { int data = 0; Taskmul_2(Task 0 码力 | 70 页 | 1.45 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Lifetime SafetyC++CrubitCore GuidelinesP2771复杂性历史原因Lifetime Management三五零规则对象生命周期初始化存储分配析构函数非空泛初始化Memory SafetyModern C++VulnerabilitiesRecallCybersecuritymp-units库编译时安全物理量单位系统类型安全MISRAparallelismsafety-critical systemsconcurrencySYCLSYCL SC异构计算功能安全标准RealtimeSanitizerLLVMPerformance constraintsMission critical systemsDavid Trevelyan & Christopher AppleRustthreaderror handlingsafetycoroutine patternssynchronizationRAIIexception handlinglifetime management













