181: Memory Management
                        
                        May 12, 2025, 3 p.m. (5 months, 3 weeks ago)
                    
                    
                        
                        0  Comments
                    
                Intro topic: Video Game Prices
News/Links:
- Step one: Jump in the Lava - Abyssoft
 - Scalable world models for continuous control
 - Clever code is probably the worst code you could write - Engineer’s Codex
 - A new, open source text-to-speech model called Dia has arrived to challenge ElevenLabs, OpenAI and more
 
Book of the Show
- Patrick
- The Muscle Ladder - Jeff Nippard
 
 - Jason
- Metaphysics of War
 
 
Patreon Plug https://www.patreon.com/programmingthrowdown?ty=h
Tool of the Show
- Patrick
- Pokemon Trading Card Game Pocket
 
 - Jason
 
Topic: Memory Management
- Motivation
- Avoid thrashing / crashes
 - Allocate resources efficiently
 - Keep high uptime
 
 - Where
- OS Level
- Heap management
 - Virtual Memory
 
 - Language/Compiler Level
- Cpp
 - Garbage collection
 - Ownership
 
 
 - OS Level
 - Tools
- Instrumentation
- Export to Datadog / Grafana
 
 - Python: psutil & tracemalloc
 - Valgrind
 
 - Instrumentation
 - What to do when your program uses too much memory?
- Reduce data sizes
- Compression
 - References
 - Lazy initializer
 - Generators & Back Pressure
 
 - Ring buffers
 - Arena allocators
 - Disk based caching
 
 - Reduce data sizes
 
                    No comments have been posted yet, be the first one to comment.