ComputingComputer ScienceForeign LanguagesCompilersProgramming LanguagesSoftware EngineeringAbstract Syntax TreesCompiler ConstructionProgramming Language DesignProgramming Language ImplementationType CheckingType SystemsLanguage ImplementationLanguage IntegrationLanguage Interoperability
A good foreign-language interface is crucial for the success of any modern programming language implementation. Although all serious compilers for functional languages have some facility for interlanguage working, these are often limited and awkward to use.This article describes the features for bidirectional interlanguage working with Java that are built into the latest version of the MLj compiler. Because the MLj foreign interface is to another high-level typed language which shares a garbage collector with compiled ML code, and because we are willing to extend the ML language, we are able to provide unusually powerful, safe and easy to use interlanguage working features. Indeed, rather then being a traditional foreign interface, our language extensions are more a partial integration of Java features into SML.We describe this integration of Standard ML and Java, first informally with example program fragments, and then formally in the notation used by The Definition of Standard ML.
7
Making the future safe for the past
Gilad Bracha, Martin Odersky, David Stoutamire et al. · 1998 · 503 citations · Full text
Compiling standard ML to Java bytecodes
Nick Benton, Andrew Kennedy, George Russell · 1998 · 140 citations
The design of a class mechanism for Moby
Kathleen Fisher, John Reppy · 1999 · 88 citations
Luca Cardelli, James Donahue, Lucille Glassman et al. · ACM SIGPLAN Notices · 1992 · 83 citations