Polymorphic type, region and effect inference
Jean-Pierre Talpin, Pierre Jouvelot · Journal of Functional Programming · 1992
Abstract We present a new static system which reconstructs the types, regions and effects of expressions in an implicitly typed functional language that supports imperative operations on reference values. Just as types structurally abstract collections of concrete values, regions represent sets of possibly aliased reference values and effects represent approximations of the imperative behaviour on regions. We introduce a static semantics for inferring types, regions and effects, and prove that it is consistent with respect to the dynamic semantics of the language. We present a reconstruction algorithm that computes the types and effects of expressions, and assigns regions to reference values. We prove the correctness of the reconstruction algorithm with respect to the static semantics. Finally, we discuss potential applications of our system to automatic stack allocation and parallel code generation.
Cited by 220 works. doi:10.1017/s0956796800000393 Open-access PDF
Authors
References
- A Machine-Oriented Logic Based on the Resolution Principle
- A theory of type polymorphism in programming
- Lambda-calculus models of programming languages.
- Data Flow Analysis for Procedural Languages
- Operational Semantics and Polymorphic Type Inference
- Types and Effects Towards the Integration of Functional and Imperative Programming.
- Effect analysis in higher-order languages
- FX-87 PERFORMANCE MEASUREMENTS: DATAFLOW IMPLEMENTATION