# Stephen Toub

Markdown copy of https://realalpha.app/people/stephen-toub/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

Real Alpha has cut 8 moments of Stephen Toub (Distinguished Engineer, Microsoft) talking, from an interview on The Peterman Pod published Nov 2, 2026.

- Role: Distinguished Engineer, Microsoft

## What Stephen Toub said

- [Incremental ports keep fast-moving products shipping](https://realalpha.app/s/incremental-ports-keep-fast-moving-products-shipping/)
  The Peterman Pod · Nov 2, 2026 · 7 min
  > “we just incrementally moved the code base more and more from TypeScript to Rust in pieces in main, in the shipping code base, shipping releases daily.” — Stephen Toub · [16:12](https://realalpha.app/v/PLMOVlZC4eU/?t=972)
- [End-to-end tests matter more than unit tests for a port](https://realalpha.app/s/end-to-end-tests-matter-more-than-unit-tests-for-a-port/)
  The Peterman Pod · Nov 2, 2026 · 6 min
  > “the agents want to get to green like that's their goal and so if you let them they will change the oracle” — Stephen Toub · [25:28](https://realalpha.app/v/PLMOVlZC4eU/?t=1528)
- [A Rust port cost $120,000 in model tokens](https://realalpha.app/s/a-rust-port-cost-120-000-in-model-tokens/)
  The Peterman Pod · Nov 2, 2026 · 6 min
  > “all told, it was about 136 billion tokens broken up in such a way” — Stephen Toub · [53:41](https://realalpha.app/v/PLMOVlZC4eU/?t=3221)
- [Rust won after performance and embedding tests tied](https://realalpha.app/s/rust-won-after-performance-and-embedding-tests-tied/)
  The Peterman Pod · Nov 2, 2026 · 4 min
  > “they were both very much on par with each other across pretty much all the metrics.” — Stephen Toub · [8:46](https://realalpha.app/v/PLMOVlZC4eU/?t=526)
- [Strict one-to-one ports limited agent scope](https://realalpha.app/s/strict-one-to-one-ports-limited-agent-scope/)
  The Peterman Pod · Nov 2, 2026 · 4 min
  > “One of the rules that I put in place with instructions that wasn't always abided by was I wanted these ports to be as strict ports as possible” — Stephen Toub · [35:05](https://realalpha.app/v/PLMOVlZC4eU/?t=2105)
- [Most regressions were caught before pre-release](https://realalpha.app/s/most-regressions-were-caught-before-pre-release/)
  The Peterman Pod · Nov 2, 2026 · 3 min
  > “I would say probably two-thirds of these things that I'm calling regressions were caught very soon after merging to main and before we shipped any pre-release.” — Stephen Toub · [42:43](https://realalpha.app/v/PLMOVlZC4eU/?t=2563)
- [The port grew to three times its estimated size](https://realalpha.app/s/the-port-grew-to-three-times-its-estimated-size/)
  The Peterman Pod · Nov 2, 2026 · 3 min
  > “I think I'd estimated about six to eight weeks to get it done.” — Stephen Toub · [1:01:22](https://realalpha.app/v/PLMOVlZC4eU/?t=3682)
- [A rewrite needs a measurable business return](https://realalpha.app/s/a-rewrite-needs-a-measurable-business-return/)
  The Peterman Pod · Nov 2, 2026 · 3 min
  > “if i invest two weeks in making these changes to the .NET Regex engine, and it makes the patterns that they're using four times faster” — Stephen Toub · [1:06:00](https://realalpha.app/v/PLMOVlZC4eU/?t=3960)

## The episode

- [Microsoft Distinguished Eng: Why And How To Port Your Entire Codebase to Rust | Stephen Toub](https://realalpha.app/v/PLMOVlZC4eU/) · The Peterman Pod · Nov 2, 2026
