Interlanguage working without tears: Blending SML with Java']Java

被引:2
作者
Benton, N [1 ]
Kennedy, A [1 ]
机构
[1] Microsoft Res Ltd, Cambridge, England
关键词
D O I
10.1145/317765.317791
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:126 / 137
页数:12
相关论文
共 17 条
[1]  
BENTON PN, 1998, 3 ACM SIGPLAN INT C
[2]  
BRACHA G, 1998, OOPSLA OCT
[3]  
CARDELLI L, 1989, 52 DEC SYST RES CTR
[4]  
DAVIS H, 1994, 1994 ACM C LISP FUNC, P121
[5]  
Drossopoulou S, 1999, THEOR PRACT OBJ SYST, V5, P3, DOI 10.1002/(SICI)1096-9942(199901/03)5:1<3::AID-TAPO2>3.0.CO
[6]  
2-T
[7]  
FINNE S, 1998, 3 ACM SIGPLAN INT C
[8]  
FISHER K, 1999, ACM SIGPLAN C PROGR
[9]  
GOSLING J, 1996, JAVA LANGUAGE SPECIF
[10]  
HUELSBERGEN L, 1996, PORTABLE C INTERFACE