u/falconerdin r/C_Programming • Recommends
Why learning malloc/free isn't enough - a simple custom allocator example in C
#arena-allocator#memory-management#cs50
11K subscribers • 2 videos on Hallway
Intermediate. Assumes working knowledge.
11K views8 months ago1 recommendation
Systems programmingTools and practiceMemory managementCData-oriented design
Dylan Falconer explains why relying solely on individual malloc and free calls is error-prone and introduces grouped lifetimes and arena allocators.
🎮 Build Pong in 2 hours - free PDF mini-course Get hands-on with Odin + raylib. Build a complete game from scratch. → programvideogames.com/free?utm_source=youtube&utm_medium=des… ——— In this video: I discuss the implication that cs50 leaves students with - that malloc/free on individual objects is the way to program, and show why thinking in grouped lifetimes is less error prone and easier to reason about. ——— More from me: ➤ Full course: programvideogames.com?utm_source=youtube&utm_medium=descript… ➤ Newsletter: bytesbeneath.com?utm_source=youtube&utm_medium=description&u… ➤ GitHub: github.com/Falconerd ➤ Discord: discord.gg/jDm8uCPYwD #odin #raylib #gamedevWhat people say. Recommended as a clear explanation of why arena allocation is often superior to individual malloc and free calls.
u/falconerdin r/C_Programming • Recommends