A Lightweight Polyglot Code Transformation Language
summary
A declarative DSL and tool called PolyglotPiranha implements composed, ordered match-replace rules that propagate context across files and languages; it runs as a job producing thousands of PRs (≈4,700 over months) and is deployed at Uber. The open-source engine deletes and migrates code at scale — 210K lines removed and 20K migrated across 1,611 PRs in the paper — with about 60% CI pass rate and most edits automated.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:02Why Uber needed automation
- 3:10Limitations of tools
- 4:16Introducing PIR
- 7:23Context propagation rules
- 10:34Case study: feature flag cleanup
- 13:22Results at Uber
- 14:47Open source and closing
- 15:14Q&A
related talks
12mHow we automated code maintenance
34mPiranha: Building a Multilingual Deadcode Deletion Bot
25mHow we automated code maintenance
50mSoftware Automation in a Polyglot Stack
48mSay goodbye to bugs and anti-patterns with Error Prone
49mStreamlining large-scale Java development using Error Prone
38mSay goodbye to bugs and anti-patterns with Error Prone
01h 29mScalafix Workshop
