# 434: Agent Leadership (Matz) - Show: Rebuild - Published: 2026-10-19 - Canonical: https://podc.club/en/episode/603013428_65f58051b0d3.html - Audio: https://cache.rebuild.fm/podcast-ep434.mp3 - Source: Edited from a machine transcript of the first 30 minutes of the episode. Not an official summary. Matz (Yukihiro Matsumoto), creator of Ruby, returned to Rebuild for the first time in three years to discuss Spinnel, an AOT compiler for Ruby that he built in three weeks using Claude Code. The conversation also covered a 13-language benchmark experiment run by the Ruby community to measure AI coding efficiency, and the broader question of which programming languages stand to win or lose in the AI era. ## What this episode answers ### In the AI era, do statically typed languages have an advantage, or are dynamically typed languages better suited for AI-driven code generation? The Ruby community's March 2026 experiment found that Ruby, Python, and JavaScript were the most efficient languages for AI-driven tasks, while TypeScript and Rust required significantly more tokens and time — suggesting that static types offer no meaningful harness for AI and may in fact slow it down. ### How did Matz manage to complete the Ruby AOT compiler 'Spinnel' in just three weeks? Matz started from an empty Git repository and used Claude Code (roughly equivalent to Opus 4.5), pushing back three times when the AI initially refused on performance grounds; with Prism as the parser and TypeProf for whole-program type analysis as the foundation, he reached a presentable state in roughly three weeks. ### Why does AI tend to favor certain languages when writing code without explicit instruction? LLM training data skews heavily toward Python, and the SDKs for AI and APIs are predominantly Python-centric, so when developers only need to judge AI-generated code as good or bad rather than write it themselves, there is little friction pushing them away from Python. ### How did Anthropic's OSS developer support program affect the development of Spinnel? Matz applied early to Anthropic's OSS developer support program, launched in March 2026, which provided a free Max-tier subscription; without it he had been on the $100 plan, and after Spinnel development he was on pace to exhaust even the $200 plan — he implies the free access was critical to hitting the RubyKaigi deadline. ### Does the conventional wisdom of 'never rewrite working code' still hold in the AI era? The rule is breaking down: in Spinnel's development, AI rewrote the full compiler from C to Ruby in roughly two days, then rewrote it again from scratch to conform to the Spinnel subset in another two days, demonstrating that starting over from zero can be faster than preserving a sunk cost. ## Article ## A Three-Year-Old Prediction Comes True The last time Matz appeared on Rebuild, host Miyagawa recorded with him on a rooftop in Matsumoto City during RubyKaigi — roughly three years ago. Miyagawa opened this episode by emphasizing how completely the landscape has shifted since then. At that time, GPT-2 and GPT-3 had just arrived and smart tab-completion felt like a genuine luxury. Matz had predicted on that earlier appearance that LLMs would eventually eliminate the need for humans to write type annotations by hand. Looking back now, he says with some satisfaction that the prediction landed — though reality overshot it considerably. The world didn't just reach "AI infers types for you"; it leapt all the way to "humans don't need to write the code at all." ## Which Language Wins in the AI Era: The Ruby Community's Experiment In March 2026, Ruby committer Endo ran a benchmark that the community has been discussing ever since. He tasked AI systems across 13 languages and 15 configurations with implementing a mini-Git (a subset of Git's functionality), measuring both time-to-completion and token consumption. Ruby, Python, and JavaScript came out decisively ahead on both metrics. TypeScript and Rust sat at the other end of the spectrum — higher token counts, longer completion times. Matz reads the result as evidence that static types offer no harness for AI. Humans make mistakes and lean on the type system to catch them; AI has already moved past that stage, so type declarations risk becoming dead weight rather than guardrails. That said, the experiment carries acknowledged caveats: Endo is himself a Ruby committer, introducing potential bias; the models used were older than those available today; and Rust's unusual ownership model may have been underrepresented in the training data those models had seen. Endo has reportedly planned a re-run this autumn. Miyagawa also mentioned Simon Willison's long-running benchmark of asking each new model to generate an image of a pelican riding a bicycle — a test that has gradually stopped working as recent models produce increasingly realistic results, illustrating how quickly AI capability can outpace evaluation methods. ## 14 Years in the Making, 3 Weeks to Build: The Birth of Spinnel Spinnel is an AOT compiler that translates Ruby programs to C and compiles them to native binaries. The idea is roughly 14 years old: when MRuby began attracting users building for microcontrollers, Matz thought that native compilation could keep deployed binaries small. The straightforward approach — reimplementing the VM in C — had already been shown to be slow and bloated by a University of Tokyo student's experiments more than a decade ago. The real key, Matz concluded, was whole-program type analysis: determine variable types unambiguously across the entire program, then use those results to generate C. The concept sat dormant for 14 years because the implementation barrier was simply too high. The turning point came during preparations for the March 2026 RubyKaigi keynote. With a month to go, Matz decided to try it with AI. He opened an empty Git repository, described the goal to Claude Code (roughly Opus 4.5) — AOT compilation via Prism for parsing and whole-program type analysis for code generation — and started. The AI initially pushed back, saying it couldn't produce anything with good performance. Matz pushed back three times, arguing that whole-program analysis should resolve types unambiguously in most cases. The implementation began. The foundation was two tools Matz had spent years advocating for within the Ruby community: Prism, Ruby's high-performance parser library, and TypeProf, the whole-program type analysis tool. He laughed that he'd been nudging people toward those projects for years, and they turned out to be exactly the scaffolding Spinnel needed — "a bit like skimming other people's work and calling it my own." The compiler was initially written in C. Before the conference, Matz asked the AI to rewrite it in Ruby (self-hosting a compiler is a romantic milestone). That rewrite took about two days. Then, because Spinnel compiles a subset of Ruby that excludes `eval`, the compiler itself had to be written within that same subset — so the AI did a second full rewrite from scratch, again in roughly two days. The whole arc — from empty repository to something ready to present at RubyKaigi — took approximately three weeks. ## Anthropic's OSS Support and the Reality of Token Consumption Another factor behind Spinnel's completion was Anthropic's support program for open-source developers, which launched in March 2026 and provides a free Max-plan-equivalent subscription. Matz applied immediately. Before the program, the $20 base plan wasn't sufficient and he had moved to the $100 plan (roughly Max 5x). After Spinnel development, he was on pace to exhaust even the $200 plan (Max 20x). His observation: tokens are like network bandwidth or SSD capacity — the more you have, the more uses you find for them. Treat them as unlimited and you start exploring applications you wouldn't otherwise consider. ## Language Choice in the AI Era and Ruby's Future When AI is given no language preference, it gravitates toward Python or JavaScript. The reasons are structural: LLM training data skews toward Python, and the SDKs for AI services and APIs are predominantly Python-first. Miyagawa admitted honestly that if his job is simply to judge whether AI-generated code is good or bad, the language becomes irrelevant to him personally, and the path of least resistance leads to Python. Matz acknowledged the problem but pointed to the Ruby ecosystem — gems, web frameworks, accumulated security knowledge — as assets that AI cannot regenerate from zero. As long as that accumulated value exists, he believes the Ruby community remains viable for the next five to ten years. ## Takeaways - A March 2026 Ruby community experiment across 13 languages found Ruby, Python, and JavaScript most efficient for AI-driven development, with TypeScript and Rust lagging — suggesting static types hinder rather than help AI coding. - Matz built the long-imagined Ruby AOT compiler Spinnel in roughly three weeks using Claude Code, succeeding by pushing back on the AI's initial refusal three times and leveraging Prism and TypeProf as pre-built foundations. - The AI era is eroding the conventional rule against rewriting working code: Spinnel's compiler was fully rewritten twice by AI in about two days each time, making a fresh start sometimes faster than preserving existing work.