首页> 外文会议>Conference on object-oriented programming, systems, languages, and applications >Featherweight Java: a minimal core calculus for Java and GJ
【24h】

Featherweight Java: a minimal core calculus for Java and GJ

机译:Featherweight Java:Java和GJ的最小核心微积分

获取原文

摘要

Several recent studies have introduced lightweight versions of Java: reduced languages in which complex features like threads and reflection are dropped to enable rigorous arguments about key properties such as type safety. We carry this process a step further, omitting almost all features of the full language (including interfaces and even assignment) to obtain a small calculus, Featherweight Java, for which rigorous proofs are not only possible but easy. Featherweight Java bears a similar relation to full Java as the lambda-calculus does to languages such as ML and Haskell. It offers a similar computational "feel," providing classes, methods, fields, inheritance, and dynamic typecasts, with a semantics closely following Java's. A proof of type safety for Featherweight Java thus illustrates many of the interesting features of a safety proof for the full language, while remaining pleasingly compact. The syntax, type rules, and operational semantics of Featherweight Java fit on one page, making it easier to understand the consequences of extensions and variations. As an illustration of its utility in this regard, we extend Featherweight Java with generic classes in the style of GJ (Bracha, Odersky, Stoutamire, and Wadler) and sketch a proof of type safety. The extended system formalizes for the first time some of the key features of GJ.
机译:最近的几项研究引入了java的轻量级版本:减少语言,其中删除了线程和反射等复杂功能以启用关于键入类型的关键属性的严格参数,如类型安全性。我们进一步携带这一过程,省略了几乎所有语言(包括接口甚至分配)的所有功能,以获得小型微积分,羽量级java,严格的证据不仅可能而且容易。羽量级Java与全Java相似,因为Lambda-Calculus对ML和Haskell等语言进行了影响。它提供了类似的计算“手感”,提供类,方法,字段,继承和动态类型,其中Java遵循Java的语义。因此,Featherweight Java的类型安全证明说明了全文安全证明的许多有趣功能,同时保持令人愉快的紧凑型。 Featherweight Java的语法,类型规则和运行语义在一个页面上适合,更容易理解扩展和变体的后果。作为其实用程序的图示,我们将羽绒服Java与GJ(Bracha,Odersky,Stoutamire和Wadler)的风格扩展到通用课程,以及绘制类型安全的证明。扩展系统首次正式化GJ的一些关键特征。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号