Peter Zhu's Avatar

Peter Zhu

@peterzhu.ca

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

428
Followers
32
Following
42
Posts
25.11.2024
Joined
Posts Following

Latest posts by Peter Zhu @peterzhu.ca

“Your proposal for RubyKaigi 2026 has been accepted”

See you in Hakodate!

16.02.2026 17:19 👍 17 🔁 0 💬 2 📌 0
Preview
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...

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...

29.12.2025 14:18 👍 27 🔁 6 💬 0 📌 0
Preview
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...

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...

22.12.2025 17:02 👍 7 🔁 0 💬 0 📌 0
Post image

Finally, www.ruby-lang.org/en/ has a new design.

20.12.2025 08:07 👍 100 🔁 29 💬 4 📌 7

Congrats!

11.11.2025 20:42 👍 2 🔁 0 💬 0 📌 0

I think one of the weaknesses of Ruby is the documentation. Just like how the Rails Foundation's job is to improve documentation and promote Rails, we need an organization to improve the documentation and guides in Ruby, and improve SEO and usability of docs.ruby-lang.org.

25.10.2025 15:02 👍 11 🔁 0 💬 2 📌 0

Yes, Shopify is definitely donating much more than $2,500/year. However, $2,500 is the minimum to be listed on the website, so it suggests that there are only two organizations providing above that amount.

22.10.2025 20:56 👍 0 🔁 0 💬 1 📌 0

As I've stated in my blog post, governance isn't the issue here. It's the lack of companies that are willing to put engineers in OSS. When we know which companies these are, then maybe we can start discussing governance.

20.10.2025 14:55 👍 1 🔁 0 💬 1 📌 0

This is what my blog post is about. It's so heavily Shopify employees because no companies (with the exception of a few Japanese ones) will invest engineers in Ruby. If it's not Shopify, then who?

20.10.2025 14:54 👍 1 🔁 0 💬 0 📌 0

The development is about as in the open as it can be, but that doesn't mean the tickets tell you exactly what to do. If you knew how ZJIT works, the tickets contain all the information needed. The source code is there and there are blog posts and design docs, just read it.

20.10.2025 14:51 👍 2 🔁 0 💬 1 📌 0

I'm not sure I agree that BDFL is always bad. Imagine if we abolished BDFL and instead used a committee of Ruby core, then Shopify will have >50% of the votes. They can unilaterally accept or reject anything. Is that the optimal outcome?

20.10.2025 13:51 👍 0 🔁 0 💬 1 📌 0
DevMeeting - Ruby - Ruby Issue Tracking System Redmine

Dev meeting agenda requires public proposal at least a few days in advance with a ticket for each item. This is public and open for feedback from anyone. bugs.ruby-lang.org/projects/rub...

We make sure the whole process is as transparent as possible with discussions and decisions in the open.

20.10.2025 13:44 👍 1 🔁 0 💬 0 📌 0
GitHub - ruby/dev-meeting-log: Log archive for monthly Developers Meeting Log archive for monthly Developers Meeting. Contribute to ruby/dev-meeting-log development by creating an account on GitHub.

The major decisions for the language are made in the monthly developer meetings within the Ruby core team. While the meetings are not public, the meeting notes are: github.com/ruby/dev-mee....

20.10.2025 13:44 👍 1 🔁 0 💬 1 📌 0

Your disagreement seems to be with one specific organization. The community is large so let's not generalize it like that. There are so many things to be optimistic about in the Ruby ecosystem, from many YC startups using RoR, to new features in Ruby & Rails, to a vibrant community.

20.10.2025 02:16 👍 2 🔁 0 💬 1 📌 0

I'm not asking for smaller shops to contribute, but the big players should do much more. I contribute 10-20 hours/week to Ruby in my own time and I do it because I love this language, I love this community, and I love solving real problems.

20.10.2025 02:08 👍 6 🔁 0 💬 1 📌 0

Why do we need a Ruby foundation? As a member of the Ruby core team, we don't need red tape. Our decisions are made democratically in the core team. However, a BDFL with vision for the language is important coherency. Individual changes to the language could make sense, but not make sense in total.

20.10.2025 02:08 👍 3 🔁 0 💬 1 📌 0
Preview
Ruby on Rails Community Rails improves every year thanks to hundreds of contributors. Meet the Core, Committers, and Issues team and learn how you can also make Rails better.

While DHH is the most vocal, I want to emphasize that Rails is so much more than DHH. The core team is driven by 12 amazing people, most of which I know personally and can vouch for. We should be optimistic that the future of Rails in the hands of these people. rubyonrails.org/community

20.10.2025 01:58 👍 4 🔁 0 💬 0 📌 0

People come and go. It's always sad to see people go but also exciting to see new Rubyists. But for many that have left the community, it's because of new opportunities rather than a governance issue. After all, open source is about less governance, less red tape, and more freedoms.

20.10.2025 01:55 👍 4 🔁 0 💬 0 📌 0

Sure, maybe you don't use all of these things, and that's fine. But the performance and stability improvements in Ruby come for free for everyone that upgrades. These improvements help your Rails app run faster, save money, and deliver better UX for users of your app.

20.10.2025 01:55 👍 2 🔁 0 💬 2 📌 0

This isn't true generally. It might be semi-true for things actively being worked on (e.g. ZJIT, Modular GC) but that's because it's moving at a high velocity that's hard to coordinate with non-employees. However, projects that are more stable (e.g. VWA, Prism, YJIT) are very open to contributors.

19.10.2025 14:17 👍 3 🔁 0 💬 1 📌 0
Preview
About Us Our Vision We are a non-profit organization dedicated to supporting and advancing the Ruby programming language and a welcoming and diverse worldwide Ruby community. We create spaces and events, onli...

I would like to see evidence of "sucking up money"? Sure, there could be more transparency. However, the management chain is fairly lean. You can see they hire 7 staff members (paid by RC) and 6 directors (not paid by RC). rubycentral.org/about/

19.10.2025 14:10 👍 1 🔁 0 💬 0 📌 0
Preview
Sponsors RailsConf 2025 is the world’s largest gathering of Rails developers, brought together to further discussion and learning about building, managing, and testing Rails applications. With a specific focus...

That's not true. In fact, RailsConf this year got far more sponsors than RC. There were 3 x $50k, 1 x $35k, 2 x $25k sponsors. railsconf.org/sponsors/

19.10.2025 14:01 👍 2 🔁 0 💬 1 📌 0

Also, should we think of confs as money makers or as an investment for the community? I think of them as the latter. Of course, it's important to be responsible with the money. Confs should be a place of discourse, learn new things, build connections, and get hyped. (2/2)

19.10.2025 00:37 👍 3 🔁 0 💬 1 📌 0

From what I know, RC's confs have been roughly breaking even in the last year or two, so far from "spending money without any accountability." I would argue that the confs are essential to the Ruby ecosystem, as it (was) the only Rails conf in US and is still the only major Ruby conf in US. (1/2)

19.10.2025 00:37 👍 1 🔁 0 💬 1 📌 0
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.

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-...

18.10.2025 15:58 👍 40 🔁 11 💬 4 📌 2
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...

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...

09.10.2025 14:15 👍 93 🔁 35 💬 11 📌 6

I’m excited to share that I’m starting as a Staff Developer at Figma!

22.09.2025 10:35 👍 47 🔁 3 💬 3 📌 0

Still in the Ruby community! Will be upgraded to a user of Ruby at my job but I’ll still be working on Ruby in my spare time.

21.09.2025 11:28 👍 6 🔁 0 💬 0 📌 0

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.

20.09.2025 13:04 👍 44 🔁 2 💬 9 📌 0
Preview
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.

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...

16.09.2025 21:48 👍 23 🔁 6 💬 1 📌 0