Guest
Stephen Toub
Distinguished Engineer, Microsoft
Follow Stephen Toub
We’ll email you each new moment, one email a day at most. Plus the best of every big interview, Wednesday and Saturday.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
It’s free.
Real Alpha has cut 8 moments of Stephen Toub (Distinguished Engineer, Microsoft) talking, from an interview on The Peterman Pod published Nov 2, 2026.
What Stephen Toub said
Microsoft Distinguished Eng: Why And How To Port Your Entire Codebase to Rust | Stephen Toub
8 moments · 38 min
- 11:27
Incremental ports keep fast-moving products shipping Pro pick
“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.”
at 16:12 - 22:11
End-to-end tests matter more than unit tests for a port
“the agents want to get to green like that's their goal and so if you let them they will change the oracle”
at 25:28 - 49:55
A Rust port cost $120,000 in model tokens Pro pick
“all told, it was about 136 billion tokens broken up in such a way”
at 53:41 - 5:36
Rust won after performance and embedding tests tied
“they were both very much on par with each other across pretty much all the metrics.”
at 8:46 - 32:02
Strict one-to-one ports limited agent scope
“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”
at 35:05 - 42:15
Most regressions were caught before pre-release
“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.”
at 42:43 - 1:00:01
The port grew to three times its estimated size
“I think I'd estimated about six to eight weeks to get it done.”
at 1:01:22 - 1:03:24
A rewrite needs a measurable business return
“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”
at 1:06:00
- 11:27