Code Formatting Solved in the 80s? The Case of DIANA and the Rational R1000
2025-09-08
In the 1980s, developers working on the Ada compiler used a Descriptive Intermediate Attributed Notation for Ada (DIANA) intermediate representation (IR) instead of plain text source code, effectively solving the code formatting problem. The compiler and IDE directly manipulated the DIANA tree, allowing users to customize the code display format without worrying about spaces or tabs. This enabled incremental compilation, refactoring, and fast integration. The author uses this example to reflect on how code formatting remains a problem for programmers today, encouraging exploration of more advanced solutions.
Read more
Development