Union and intersection types to support both dynamic and static typing

  • Authors:
  • Francisco Ortin;Miguel García

  • Affiliations:
  • Computer Science Department, C/Calvo Sotelo s/n, 33007, Oviedo, Spain;Computer Science Department, C/Calvo Sotelo s/n, 33007, Oviedo, Spain

  • Venue:
  • Information Processing Letters
  • Year:
  • 2011

Quantified Score

Hi-index 0.89

Visualization

Abstract

Although static typing provides undeniable benefits for the development of applications, dynamically typed languages have become increasingly popular for specific scenarios. Since each approach offers different benefits, the StaDyn programming language has been designed to support both dynamic and static typing. This paper describes the minimal core of the StaDyn programming language. Its type system performs type reconstruction over both dynamic and static implicitly typed references. A new interpretation of union and intersection types allows statically gathering the type information of dynamic references, which improves runtime performance and robustness. The evaluation of the generated code has shown how our approach offers an important runtime performance benefit.