Schedule

Peter Zhu
Peter Zhu
  • @peterzhu2118

Peter is a Ruby core committer and Senior Developer at Shopify. He works on improving the performance of Ruby and is currently working on Modular GC and the MMTk integration. He is the co-author of the Variable Width Allocation feature in Ruby, which improves Ruby's performance by optimizing the memory layout. He is also the author of ruby_memcheck, a gem used to find memory leaks in native gems and it has found memory leaks in popular gems such as Nokogiri, protobuf, gRPC, and liquid-c.

Modular Garbage Collectors in Ruby

Introduced in Feature #20470, Ruby 3.4 ships with an experimental API for implementing garbage collectors.

In addition to the built-in garbage collector, Ruby 3.4 also ships with an experimental garbage collector implemented using the Memory Management Toolkit (MMTk) framework. MMTk provides a wide variety of advanced garbage collector implementations such as Immix and LXR.

In this talk, we will introduce the Modular GC API, look at how MMTk is implemented using this API, discuss our current progress and future roadmap, and how you can implement your own garbage collector using this API.