Blog

AI-powered Python rewrite to Rust

May 12, 2026

Cheatsheet

Python is great, but at some point, its performance hits the wall. When this happens, we can rewrite the computationally intensive part of our code to Rust. This series shows how to confidently rewrite Python code to Rust with the power of AI.

AI-Powered Rewrite from Python to Rust - part 4

May 12, 2026

This article is part 4 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use property-based testing to find and fix a subtle bug that was introduced during the rewrite.

AI-Powered Rewrite from Python to Rust - part 3

May 5, 2026

This article is part 3 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use the tests provided in parts 1 and 2 and an AI agent to implement a Rust version of the Log parser.

AI-Powered Rewrite from Python to Rust - part 2

April 28, 2026

This article is part 2 in the series that shows how to confidently rewrite Python code to Rust with the power of AI. In this part, we use tests from part 1 and rewrite them to a contract test pattern to ensure we'll be able to test Python and Rust implementations with the same set of tests.

AI-Powered Rewrite from Python to Rust - part 1

April 21, 2026

Python is great, but at some point, its performance hits the wall. When this happens, we can rewrite the computationally intensive part of our code to Rust. This article is part 1 in the series that shows how to confidently rewrite Python code to Rust with the power of AI.