Union and intersection types to support both dynamic and static typing

被引:15
|
作者
Ortin, Francisco [1 ]
Garcia, Miguel [1 ]
机构
[1] Dept Comp Sci, Oviedo 33007, Spain
关键词
Programming languages; Program specification; Compilers; Formal languages; Type systems;
D O I
10.1016/j.ipl.2010.12.006
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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. (C) 2010 Elsevier B.V. All rights reserved.
引用
收藏
页码:278 / 286
页数:9
相关论文
empty
未找到相关数据