A provenly correct translation of Fickle into Java

Author:

Ancona D.1,Anderson C.2,Damiani F.3,Drossopoulou S.2,Giannini P.4,Zucca E.1

Affiliation:

1. Università di Genova, Genoa, Italy

2. Imperial College---London, London, UK

3. Università di Torino, Torino, Italy

4. Università del Piemonte Orientale, Alessandria, Italy

Abstract

We present a translation from Fickle , a small object-oriented language allowing objects to change their class at runtime, into Java. The translation is provenly correct in the sense that it preserves the static and dynamic semantics. Moreover, it is compatible with separate compilation, since the translation of a Fickle class does not depend on the implementation of used classes. Based on the formal system, we have developed an implementation. The translation turned out to be a more subtle problem than we expected. In this article, we discuss four possible approaches we considered for the design of the translation and to justify our choice, we present formally the translation and proof of preservation of the static and dynamic semantics, and discuss the prototype implementation. Moreover, we outline an alternative translation based on generics that avoids most of the casts (but not all) needed in the previous translation. The language Fickle has undergone and is still undergoing several phases of development. In this article we are discussing the translation of Fickle II .

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference23 articles.

1. Jam---designing a Java extension with mixins

2. Anderson C. 2001. Implementing Fickle. Thesis Imperial College. Anderson C. 2001. Implementing Fickle. Thesis Imperial College.

3. Anderson C. 2003. Isabella-Fickle translator. http://www.macs.hw.ac.uk/DART/software/isabella/index.html. Anderson C. 2003. Isabella-Fickle translator. http://www.macs.hw.ac.uk/DART/software/isabella/index.html.

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Efficient runtime metaprogramming services for Java;Journal of Systems and Software;2019-07

2. Towards a Java Library to Support Runtime Metaprogramming;Communications in Computer and Information Science;2018

3. A core calculus for dynamic delta-oriented programming;Acta Informatica;2017-01-31

4. Efficient support of dynamic inheritance for class- and prototype-based languages;Journal of Systems and Software;2013-02

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3