All 4,799 reports

MixedClaude Code · 31 Aug 2025

Code generators are incredible refactoring machines

bonzini on Hacker News

added mypy annotations to 2000 lines of Python code (with 90% accuracy) in half an hour

In the thread “Are people's bosses making them use AI tools?”, replying to this comment

Helped: Refactoring, adding type annotations, and natural language translation.

Got in the way: Writing and debugging core logic where the logic matters.

… processor manuals in my case). Code generators are incredible refactoring machines. In one case (not so easy to reproduce in general, but it did work) Claude Code did a Python to decently idiomatic Rust conversion in a matter of minutes; it added mypy annotations to 2000 lines of Python code (with 90% accuracy) in half an hour and got the entire job done with my assistance in about an hour. …