
Programming Throwdown · May 12, 2025 · 1 hr 46 min
181: Memory Management
0:00 · Video Game Prices-1:46:21
transcript
show notes
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
links9
- https://youtu.be/WdadpHLAfdA?si=oXYnhB0EdkR_RaPEyoutu.be
- https://www.tdmpc2.com/tdmpc2.com
- https://read.engineerscodex.com/p/clever-code-is-probably-the-worstread.engineerscodex.com
- https://venturebeat.com/ai/a-new-open-source-text-to-speech-model-called-dia-has-arrived-to-challenge-elevenlabs-openai-and-more/venturebeat.com





