Anthropic's Rust Rewrite: My Python to JavaScript Port Test (Ep. 33)
New long-form is up: Anthropic's Rust Rewrite: My Python to JavaScript Port Test
Anthropic's November 25, 2026 post describes its Messages API migration. Anthropic says that in April, Rust passed about 98% of its tests, but only about a quarter of inputs matched on production traffic. Public traffic moved to Rust in September 2026.
I tested my own caption core from Python to JavaScript: one function, one machine, one night, one model. The counts below describe my suite, my 357 timing files, and my 16 deliberately planted bugs. Matching those files establishes parity on those files only.
- Both Codex ports passed 24/24 ported tests and matched Python on 357/357 real timing files.
- Of 16 bugs I deliberately planted, tests caught 14 and real files caught 11. Both checks missed 2; real files caught zero unique planted bugs.
- A separate dotless-i probe exposed a difference in the plain port. My real files lacked that letter.
My advice: freeze tests, audit translated assertions, compare real inputs, write probes for missing cases, and keep human review before shipping.
What code would you let AI port, and which input would you insist on checking before shipping?
0
0 comments
Elon Zito
2
Anthropic's Rust Rewrite: My Python to JavaScript Port Test (Ep. 33)
500x Engineer: Automation Pros
skool.com/500xengineer
Learn the newest AI tools for building software, then turn them into income. Career tracks, 18 Claude skills and service playbooks.
Powered by