首页> 外文学位 >Designing type inference for typed object-oriented languages.
【24h】

Designing type inference for typed object-oriented languages.

机译:为类型化的面向对象语言设计类型推断。

获取原文
获取原文并翻译 | 示例

摘要

Type-checked object-oriented languages have typically been designed with extremely simple type systems. However, there has recently been intense interest in extending such languages with more sophisticated types and subtyping relationships. JAVA and C;Presently, the type inference performed by these languages is unstable and evolving. This thesis explores problems arising in the design of a type inference specification for such languages.;We first present a formal description of subtyping in the context of a variety of advanced typing features. We then demonstrate how our formal subtyping algorithm can be easily re-expressed to produce a type inference algorithm, and observe that this algorithm is general enough to address a variety of important type-checking problems.;Finally, we apply this theory to a case study of the JAVA language's type system. We express JAVA'S types and inference algorithm in terms of our formal theory and note a variety of opportunities for improvement. We then describe the results of applying an improved type inference implementation to a selection of existing JAVA code, noting that, without introducing significant backwards-incompatibility problems for these programs, we've managed to significantly reduce the need for annotated method invocations.
机译:类型检查的面向对象语言通常是使用极其简单的类型系统设计的。但是,近来,人们对用更复杂的类型和子类型关系扩展此类语言非常感兴趣。 JAVA和C;目前,这些语言执行的类型推断是不稳定和不断发展的。本文探讨了此类语言的类型推断规范的设计中出现的问题。我们首先在各种高级键入功能的上下文中对子类型进行形式化描述。然后,我们演示了如何轻松地将我们的形式化子类型化算法重新表达为类型推导算法,并观察到该算法具有足够的通用性,可以解决各种重要的类型检查问题。最后,我们将此理论应用于一个案例研究Java语言的类型系统。我们根据形式理论来表达JAVA的类型和推理算法,并注意到各种改进的机会。然后,我们描述了将改进的类型推断实现应用于现有的JAVA代码的选择的结果,并指出,在不引入这些程序显着的向后不兼容问题的前提下,我们设法大大减少了对带注释的方法调用的需求。

著录项

  • 作者

    Smith, Daniel.;

  • 作者单位

    Rice University.;

  • 授予单位 Rice University.;
  • 学科 Computer Science.
  • 学位 Ph.D.
  • 年度 2010
  • 页码 94 p.
  • 总页数 94
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号