From 02d60e8eca197f555050f126207a1f34139989f3 Mon Sep 17 00:00:00 2001 From: Sivarajakani <64630211+sivarajakani@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:43:24 +0530 Subject: [PATCH] feat: add a YouTube video link to Rust memory management (#7438) * Added a YouTube video link to Rust memory management In this video, he provides a clear explanation of Rust's ownership system, including example code. It could be helpful for understanding ownership concepts. * Update src/data/roadmaps/rust/content/100-introduction/102-memory-safety.md --------- Co-authored-by: dsh --- .../rust/content/100-introduction/102-memory-safety.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/roadmaps/rust/content/100-introduction/102-memory-safety.md b/src/data/roadmaps/rust/content/100-introduction/102-memory-safety.md index e9cb9a6c1..93e6586fd 100644 --- a/src/data/roadmaps/rust/content/100-introduction/102-memory-safety.md +++ b/src/data/roadmaps/rust/content/100-introduction/102-memory-safety.md @@ -5,3 +5,7 @@ Rust is a system programming language that runs blazingly fast, prevents segfaul Zero-cost abstraction is another key concept Rust implements. In general, abstractions in programming languages allow code to be written at a high level (like in Python), while being able to run at a low level (like in C). However, these abstractions often come with a runtime cost. In contrast, Rust aims to provide many useful abstractions, such as iterators and closures, that don't sacrifice runtime performance. This means you can write high-level code in Rust, and the Rust compiler will optimize it to run as fast as manually written low-level code. + +Learn more from the following resources: + +- [@video@This Is How Rust Stops Memory Leaks](https://www.youtube.com/watch?v=DJdUjjOmyx8)