https://twitter.com/peterzhu2118 | |
GitHub | https://github.com/peterzhu2118 |
Blog | https://blog.peterzhu.ca/ |
https://www.instagram.com/peterzhu.photos |
https://twitter.com/peterzhu2118 | |
GitHub | https://github.com/peterzhu2118 |
Blog | https://blog.peterzhu.ca/ |
https://www.instagram.com/peterzhu.photos |
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/
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.
My @rubykaigi talk recording is up on YouTube!
Excited to be giving a talk at Rails World this year!
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
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