Paint.NET 作者用 Claude 逆向重写 Direct2D 以支持 WINE
原标题:Quoting Rick Brewster
AI 摘要
Paint.NET 作者 Rick Brewster 表示,由于 Direct2D 在 WINE 上无法完整实现,他利用 AI 助手 Claude 从零开始逆向重写了 Direct2D,代码约 18 万行,存放在 PaintDotNet.Windows.Direct2D1.Managed.dll 中,通过 /wine 参数触发。Brewster 称大部分代码为“vibe coding”风格,未经全面审查,他无法审查如此庞大的代码量。Claude 在资源管理和架构设计上需要大量监督,但在逆向工程 Direct2D 内置效果公式方面表现出色。
正文节选
2nd September 2026 Direct2D has always been the biggest hurdle for Paint.NET on WINE, and it's clear that it will never be completed enough for Paint.NET's use. And I can't just "disable" the use of Direct2D. So, instead, Paint.NET now has an internal, from-scratch, clean-room reverse-engineered rewrite of Direct2D that it uses on WINE (triggered by using /wine). It lives in PaintDotNet.Windows.Direct2D1.Managed.dll. This was written by our good friend Claude, without whom this would NOT have be