Peter Zhu

@peterzhu2118@ruby.social
305 Followers
39 Following
57 Posts
Staff Developer at Shopify.
Ruby core committer.
Photography geek.
Twitterhttps://twitter.com/peterzhu2118
GitHubhttps://github.com/peterzhu2118
Bloghttps://blog.peterzhu.ca/
Instagramhttps://www.instagram.com/peterzhu.photos
At the ISMM conference today we presented our paper about our contributions to Ruby’s garbage collector. This was the result of a multi-year collaboration between researchers at the Australian National University and Shopify. Read it here: https://blog.peterzhu.ca/assets/ismm_2025.pdf

I just published "Implementing Embedded TypedData Objects" about a feature @byroot and I worked on for Ruby 3.3. A bit late, but better than never.

https://railsatscale.com/2025-06-03-implementing-embedded-typeddata-objects/

Implementing Embedded TypedData Objects

We implemented a new feature to TypedData objects in Ruby, called embedded TypedData objects. TypedData objects are used across a wide variety of Ruby types, such as Time, Enumerator, and Method. This feature improves allocation speed and runtime performance, while decreasing memory usage. In this blog post, we’ll look at what TypedData objects are under the hood, how embedded TypedData objects work, and the performance impacts of embedded TypedData objects.

Rails at Scale

My @rubykaigi talk recording is up on YouTube!

https://youtube.com/watch?v=04axm4JcaT4

[EN] Modular Garbage Collectors in Ruby / Peter Zhu @peterzhu2118

YouTube

Excited to be giving a talk at Rails World this year!

https://rubyonrails.org/world/2025/day-1/peter-zhu

Rails World 2025 - Amsterdam, NL — Ruby Stability at Scale

A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

Rails World 2025 - Amsterdam, NL

If you missed it, my recent #rubykaigi talk “Modular Garbage Collectors in Ruby” covered:
⚙️ Features the current Ruby GC lacks
🔄 Implementation of the Modular GC feature in Ruby 3.4
🔨 What MMTk is and the integration with Modular GC

The recording will be up in a few months!

Thanks for coming to my talk at @rubykaigi today. My slides are available at https://blog.peterzhu.ca/assets/rubykaigi_2025_slides.pdf

We’re also hiring Ruby and Rails developers at Shopify! https://www.shopify.com/careers

Come to my @rubykaigi talk today at 3:40 to look at the modular garbage collectors feature in Ruby 3.4. We’ll discuss what it is, how it’s implemented, and how we’re implementing MMTk using modular GC. Hope to see you there! https://rubykaigi.org/2025/presentations/peterzhu2118.html#day3

#rubykaigi #rubykaigi2025

Modular Garbage Collectors in Ruby

RubyKaigi 2025, #rubykaigi

RubyKaigi
New PC day!

Your proposal for RubyKaigi 2025 has been accepted

See you in Matsuyama!

Merry Christmas everyone!

Ruby 3.4 ships with Modular GC, an experimental feature we're actively working on. Modular GC provides an API for GC implementations and allows you to switch garbage collectors at boot time. For more details, see https://github.com/ruby/ruby/blob/master/gc/README.md

ruby/gc/README.md at master · ruby/ruby

The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.

GitHub