News for hackers. Stuff that matters.
Re:Abstract Syntax Tree for Patching Code and Assessing Code... by maxdw101 on Sunday June 06, 2021 @10:53AM (#27413598)
This is fascinating. Does this actually scale to large codebases?
Re:Abstract Syntax Tree for Patching Code and Assessing Code... by mcint on Monday June 07, 2021 @02:25AM (#27419623)
The authors mentions completed transformation on a 150,000 line codebase. When you ask about scale, what concerns do you have in mind?

The author mentions that transformation back to source from ast, of course, doesn't include format information. However, python's ast include source line numbers, which they use to only rewrite the portions of the file affected by their rewrite.