Skip to content

Instantly share code, notes, and snippets.

@carols10cents
Created March 17, 2015 13:50
Show Gist options
  • Select an option

  • Save carols10cents/343a2d9c2975c2e89d73 to your computer and use it in GitHub Desktop.

Select an option

Save carols10cents/343a2d9c2975c2e89d73 to your computer and use it in GitHub Desktop.
Visual Explanation of Memory Management in Different Languages

If you've ever had a memory leak, or watched a garbage collector run affect your application, but not been able to visualize and really understand what is happening, then this talk is for you. See examples, using physical objects, of how languages like C, Ruby, Rust, and others manage the memory that your code is using. Make the virtual into concrete things that can help you remember why it might be a problem to instantiate a new object in an embedded C program but not during a Rails request. Experience IRL how Rust's lifetimes eliminate the need for garbage collection as well as eliminating memory access errors that can happen in C. Be the reference counter you want to see in the world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment