Featherweight Java']Java - A minimal core calculus for Java']Java and GJ

被引:91
|
作者
Igarashi, A [1 ]
Pierce, B
Wadler, P
机构
[1] Univ Penn, Dept Comp & Informat Sci, Philadelphia, PA 19104 USA
[2] Lucent Technol, Bell Labs, Murray Hill, NJ 07974 USA
关键词
theoretical foundations; language design and implementation;
D O I
10.1145/320385.320395
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:132 / 146
页数:15
相关论文
共 50 条
  • [21] Java']Java, Java']Java, Java']Java and more
    Makulowich, JS
    [J]. DATABASE, 1997, 20 (01): : 74 - 75
  • [22] Implementing the pi-Calculus in Java']Java
    Li, Liwu
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2005, 4 (02): : 157 - 177
  • [23] A calculus for Java']Java's Reference objects
    Gabay, Yarom
    Kfoury, Assaf J.
    [J]. ACM SIGPLAN NOTICES, 2007, 42 (08) : 9 - 17
  • [24] Implementing Lyee-Calculus in Java']Java
    Fujita, H.
    Ktari, B.
    Mejri, M.
    [J]. KNOWLEDGE-BASED SYSTEMS, 2006, 19 (02) : 116 - 129
  • [25] Java']Java core permits direct Java']Java byte-code execution
    Vollmer, A
    [J]. ELECTRONIC DESIGN, 2000, 48 (22) : 30 - +
  • [26] Java']Java, Java']Java everywhere
    不详
    [J]. DATAMATION, 1996, 42 (11): : 11 - 11
  • [27] Featherweight Jigsaw - Replacing inheritance by composition in Java']Java-like languages
    Lagorio, Giovanni
    Servetto, Marco
    Zucca, Elena
    [J]. INFORMATION AND COMPUTATION, 2012, 214 : 86 - 111
  • [28] Java, Java, Java
    Sabharwal, Chaman L.
    [J]. IEEE Potentials, 1998, 17 (03): : 33 - 37
  • [29] Java']Java Jr.: Fully abstract trace semantics for a core Java']Java language
    Jeffrey, A
    Rathke, J
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2005, 3444 : 423 - 438
  • [30] Graph-Based Specification and Simulation of Featherweight Java']Java with Around Advice
    Staijen, Tom
    Rensink, Arend
    [J]. FOAL09: FOUNDATIONS OF ASPECT-ORIENTED LANGUAGES, 2009, : 25 - 29