Programming Throwdown

181: Memory Management


Listen Later

Intro topic: Video Game Prices

News/Links:

  • Step one: Jump in the Lava - Abyssoft
    • https://youtu.be/WdadpHLAfdA?si=oXYnhB0EdkR_RaPE
  • Scalable world models for continuous control
    • https://www.tdmpc2.com/
  • Clever code is probably the worst code you could write - Engineer’s Codex
    • https://read.engineerscodex.com/p/clever-code-is-probably-the-worst
  • A new, open source text-to-speech model called Dia has arrived to challenge ElevenLabs, OpenAI and more
    • https://venturebeat.com/ai/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
      • https://amzn.to/44Dznsz
  • Jason
    • Metaphysics of War
      • https://amzn.to/4jMjvZ5


Patreon Plug https://www.patreon.com/programmingthrowdown?ty=h


Tool of the Show

  • Patrick
    • Pokemon Trading Card Game Pocket
  • Jason
    • Phi-4
      • https://huggingface.co/spaces/microsoft/phi-4-multimodal


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
  • Tools
    • Instrumentation
      • Export to Datadog / Grafana
    • Python: psutil & tracemalloc
    • Valgrind
  • 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


★ Support this podcast on Patreon ★
...more
View all episodesView all episodes
Download on the App Store

Programming ThrowdownBy Patrick Wheeler and Jason Gauci

  • 4.6
  • 4.6
  • 4.6
  • 4.6
  • 4.6

4.6

552 ratings


More shows like Programming Throwdown

View all
Software Engineering Radio by se-radio@computer.org

Software Engineering Radio

273 Listeners

Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

379 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

625 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

265 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

588 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

283 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

985 Listeners

The freeCodeCamp Podcast by freeCodeCamp.org

The freeCodeCamp Podcast

485 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

188 Listeners

.NET Rocks! by Carl Franklin and Richard Campbell

.NET Rocks!

245 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

62 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

Oxide and Friends by Oxide Computer Company

Oxide and Friends

59 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

64 Listeners