Compiling Java to PLT Scheme

Kathryn E. Gray, Matthew Flatt · 2004

Our experimental compiler translates Java to PLT Scheme; it enables the use of Java libraries within Scheme programs, and it makes our Scheme programming tools available when programming with Java. With our system, a programmer can extend and use classes from either language, and Java programmers can employ other Scheme data by placing it in a class using the Java native interface. PLT Scheme’s class-system, implemented with macros, provides a natural target for Java classes, which facilitates interoperability between the two languages, and PLT Scheme’s module maintains Java security restrictions in Scheme programs. Additionally, module’s restrictions provide a deeper understanding of a Java compilation unit and make Java’s implicit compilation units explicit.

Read the paper · More papers on PaperTik