Paint.NET’s Triumph with AI Assistance
In an unprecedented feat of software engineering, Paint.NET has achieved functional compatibility with Wine (allowing it to run on Linux) thanks to the assistance of generative AI.
The project focused on Direct2D, a graphics rendering API that posed a major hurdle for Paint.NET’s WINE implementation. Rather than attempting incremental fixes or workarounds, developers opted for a bold solution: create an entirely new, clean-room rewrite of Direct2D specifically for WINE environments.
This ambitious effort was spearheaded by Claude, a generative AI model that produced 180,000 lines of code—a significant undertaking even for seasoned development teams. The result lives in the PaintDotNet.Windows.Direct2D1.Managed.dll file and is activated when running with /wine.
Rick Brewster, Paint.NET’s author, acknowledged Claude’s indispensable role: “Without [Claude], this would not have been possible.” While noting that much of the code operates on a ‘trust me bro’ basis due to the sheer volume, he expressed both surprise and admiration for the AI’s capabilities.
Brewster described moments where Claude worked with “the fury of 10 freshly unshackled Einstein genius-level 10x coders,” while other times requiring more guidance. He highlighted the model’s impressive reverse engineering work in deciphering Direct2D’s complex rendering formulas.
This achievement demonstrates a new paradigm for software development—where generative AI isn’t just automating tasks but tackling fundamental architectural challenges under human oversight.