Flexible type analysis
Karl Crary, Stephanie Weirich · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 1999
Run-time type dispatch enables a variety of advanced optimization techniques for polymorphic languages, including tag-free garbage collection, unboxed function arguments, and flattened data structures. However, modern type-preserving compilers transform types between stages of compilation, making type dispatch prohibitively complex at low levels of typed compilation. It is crucial therefore for type analysis at these low levels to refer to the types of previous stages. Unfortunately, no current intermediate language supports this facility.To fill this gap, we present the language LX, which provides a rich language of type constructors supporting type analysis (possibly of previous-stage types) as a programming idiom. This language is quite flexible, supporting a variety of other applications such as analysis of quantified types, analysis with incomplete type information, and type classes. We also show that LX is compatible with a type-erasure semantics.
Cited by 101 works. doi:10.1145/317636.317906
Authors
References
- Report on the programming language Haskell
- Une Extension De ĽInterpretation De Gödel a ĽAnalyse, Et Son Application a ĽElimination Des Coupures Dans ĽAnalyse Et La Theorie Des Types
- TIL
- From system F to typed assembly language
- From system F to typed assembly language
- Unboxed objects and polymorphic typing
- Compiling polymorphism using intensional type analysis
- TALx86: A Realistic Typed Assembly Language∗
- Typed closure conversion
- From region inference to von Neumann machines via region representation inference