Rust Memory Model Explained: Stack vs Heap (with Animations)

Rust Memory Model Explained: Stack vs Heap (with Animations)

2.627 Lượt nghe
Rust Memory Model Explained: Stack vs Heap (with Animations)
In this video we will break down the Stack and Heap which is how many software programs manage memory, but we will put a bit of a focus on Rust. Understanding how this works allows you to write safer, faster and more efficient code, but it also provides context into how the Ownership model works. 💾 Custom allocators: bumpalo - https://github.com/fitzgen/bumpalo jemallocator - https://github.com/gnzlbg/jemallocator/tree/master rpmalloc - https://github.com/mjansson/rpmalloc 📚 Chapters: 00:00 Introduction 00:24 The Stack 01:38 The Heap 02:22 Pointers Tags: #rust #programming #low-level #memory