Sign in

Peter Zhu

@peterzhu.ca
464 followers 33 following 50 posts

Staff Developer at Shopify. Ruby core committer. Photography geek. Mastodon: @peterzhu2118@ruby.social Instagram: @peterzhu.photos

PostsRepliesMedia
Peter Zhu @peterzhu.ca · 18/09/2026
I will be speaking at the next TokyoDev meetup. Would love to see other Tokyo devs there! tokyodev.doorkeeper.jp/events/199447
tokyodev.doorkeeper.jp
TokyoDev Talks Vol. 14: Open Source Resilience / Zero Trust Network Access
Wed, 07 Oct 2026 18:30 - 20:50 Note that attendance for this event is limited to software developers, those aspiring to become one, or working in an adjacent position (e.g. Product Managers, UI/UX Des...
072
Peter Zhu @peterzhu.ca · 02/09/2026
Ruby's GC and ZJIT got a new collab! We recently introduced inlining of the garbage collector's fastpath into ZJIT. Read more about it here: railsatscale.com/2026-09-01-z...
railsatscale.com
ZJIT 🤝 GC: Inlining GC Fastpath in ZJIT
Object allocations from the garbage collector are now inlined in ZJIT.
1145
Peter Zhu @peterzhu.ca · 13/08/2026
Excited to be speaking at @sfruby.com this year!
132
Peter Zhu @peterzhu.ca · 11/07/2026
Excited to be speaking at RubyConf in Vegas next week!
My talk titled "Building the Next-Generation Garbage Collector in Ruby" at RubyConf Las Vegas on Thursday, July 16 at 11:15AM.
060
Peter Zhu @peterzhu.ca · 30/04/2026
Excited to be speaking at RubyConf. See you in Vegas!
Banner of my RubyConf talk titled "Building the Next-Generation Garbage Collector in Ruby" on Thursday, July 16, 2026 at 11:15AM.
0101
Peter Zhu @peterzhu.ca · 24/04/2026
Honored to give my talk at #RubyKaigi this year! Slides are available here: blog.peterzhu.ca/assets/rubyk...
Me on stage at RubyKaigi giving talk titled “Building the Next-Generation Garbage Collector in Ruby”
1172
Peter Zhu @peterzhu.ca · 20/04/2026
Arrived in Hakodate for #RubyKaigi
0120
Peter Zhu @peterzhu.ca · 16/02/2026
“Your proposal for RubyKaigi 2026 has been accepted” See you in Hakodate!
2150
Peter Zhu @peterzhu.ca · 29/12/2025
Ruby has a new moving GC. I just merged moving Immix in the MMTk Ruby binding. This is exciting as its the first GC that dynamically detects fragmentation in the heap and performs defragmentation. Performance isn't too great yet but I'm working on it! github.com/ruby/ruby/pu...
github.com
Implement moving Immix in MMTk by peterzhu2118 · Pull Request #15744 · ruby/ruby
This commit implements moving Immix in MMTk, which allows objects to move in the GC. The performance of this implementation is not yet amazing. It is very similar to non-moving Immix in many of the...
0266
Peter Zhu @peterzhu.ca · 22/12/2025
I implemented Ruby's heap algorithm in MMTk in a day and 100 lines. Ruby's default GC is 10k+ lines. This doubles MMTk's performance from over 2x slower to almost on par. And I still haven't unlocked MMTk's true powers like generational GC or moving GC. github.com/ruby/mmtk/pu...
github.com
Implement Ruby heap by peterzhu2118 · Pull Request #54 · ruby/mmtk
This heap emulates the growth characteristics of the Ruby default GC's heap. By default, the heap grows by 40%, requires at least 20% empty after a GC, and allows at most 65% empty before it sh...
060
Reposted by Peter Zhu
hsbt @hsbt.org · 20/12/2025
Finally, www.ruby-lang.org/en/ has a new design.
49828
Peter Zhu @peterzhu.ca · 18/10/2025
I wrote about some of my thoughts on the lessons we can learn from the RubyGems situation and how we can move forward. blog.peterzhu.ca/open-source-...
blog.peterzhu.ca
Open Source is the Most Fragile and Most Resilient Ecosystem - Peter Zhu
Some of my thoughts on the lessons we can learn from the RubyGems situation and how we can move forward.
43811
Reposted by Peter Zhu
Jean Boussier @byroot.bsky.social · 09/10/2025
I tried to explain why I don't believe the recent accusations toward my former teammates, as well as how the Ruby and Rails Infra team at Shopify operates and why it can be trusted. byroot.github.io/opensource/r...
byroot.github.io
Dear Rubyists: Shopify Isn’t Your Enemy
I’ve been meaning to write a post about my perspective on Open Source and corporate entities. I already got the rough outline of it; however, I’m suffering from writer’s block, but more importantly, t...
119335
Peter Zhu @peterzhu.ca · 22/09/2025
I’m excited to share that I’m starting as a Staff Developer at Figma!
3463
Peter Zhu @peterzhu.ca · 20/09/2025
Friday was my last day of an incredible journey at Shopify. In the past 5 years, I had the privilege of working on some cutting edge projects to advance Ruby with some of the most talented and well-known developers. Shopify will always have a very special place in my heart.
9422
Peter Zhu @peterzhu.ca · 16/09/2025
Shopify sponsors and collaborates with academia to take Ruby to new heights. We're working with Australian National University to integrate Memory Management Toolkit into Ruby. Earlier this year, we published a paper about it. Today, we wrote a blog post: railsatscale.com/2025-09-16-r...
railsatscale.com
Reworking Memory Management in CRuby
Shopify sponsors and collaborates with academia to take Ruby to new heights. In this post, we give an overview of what we’ve built in collaboration with the Australian National University.
1216
Peter Zhu @peterzhu.ca · 15/09/2025
My #RailsWorld talk recording is up! youtu.be/9r0xmX0oK5Y?...
youtu.be
Peter Zhu - Ruby Stability at Scale
YouTube video by Ruby on Rails
050
Peter Zhu @peterzhu.ca · 06/09/2025
Honored to give a talk at #RailsWorld again, on the same stage 2 years later. The recording should be up in a few weeks but you can find the slides here in the meantime: blog.peterzhu.ca/assets/rails...
0131
Peter Zhu @peterzhu.ca · 02/09/2025
Excited for my Rails World talk on Friday! #railsworld
080
Peter Zhu @peterzhu.ca · 17/06/2025
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: blog.peterzhu.ca/assets/ismm_...
blog.peterzhu.ca
050
Peter Zhu @peterzhu.ca · 03/06/2025
I just published "Implementing Embedded TypedData Objects" about a feature @byroot.bsky.social and I worked on for Ruby 3.3. A bit late, but better than never. railsatscale.com/2025-06-03-i...
railsatscale.com
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...
0153
Peter Zhu @peterzhu.ca · 27/05/2025
My RubyKaigi talk recording is up on YouTube! youtube.com/watch?v=04ax...
youtube.com
[EN] Modular Garbage Collectors in Ruby / Peter Zhu @peterzhu2118
YouTube video by RubyKaigi
071
Peter Zhu @peterzhu.ca · 20/05/2025
Excited to be giving a talk at Rails World this year! rubyonrails.org/world/2025/d...
rubyonrails.org
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.
050
Peter Zhu @peterzhu.ca · 19/04/2025
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!
Peter on stage at RubyKaigi
010
Peter Zhu @peterzhu.ca · 18/04/2025
Thanks for coming to my talk at @rubykaigi today. My slides are available at blog.peterzhu.ca/assets/rubyk... We’re also hiring Ruby and Rails developers at Shopify! www.shopify.com/careers
blog.peterzhu.ca
020
Peter Zhu @peterzhu.ca · 17/04/2025
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! rubykaigi.org/2025/present...
rubykaigi.org
Modular Garbage Collectors in Ruby
RubyKaigi 2025, #rubykaigi
0174
Peter Zhu @peterzhu.ca · 19/03/2025
New PC day!
050
Peter Zhu @peterzhu.ca · 06/02/2025
Your proposal for RubyKaigi 2025 has been accepted See you on Matsuyama!
030
Peter Zhu @peterzhu.ca · 25/12/2024
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 github.com/ruby/ruby/bl...
github.com
052