A provenly correct translation of Fickle into Java
Authors:
Open Access
- 1 April 2007
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 29 (2) , 13
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 .Keywords
This publication has 12 references indexed in Scilit:
- MultiJavaACM Transactions on Programming Languages and Systems, 2006
- Re-classification and multi-threading2004
- Jam---designing a Java extension with mixinsACM Transactions on Programming Languages and Systems, 2003
- On Inner ClassesInformation and Computation, 2002
- A type preserving translation of ickle into JavaElectronic Notes in Theoretical Computer Science, 2002
- More dynamic object reclassificationACM Transactions on Programming Languages and Systems, 2002
- An Effective Translation of Fickle into Java2001
- Making the future safe for the past1998
- Predicate dispatching: A unified theory of dispatchLecture Notes in Computer Science, 1998
- Pizza into Java1997