Java interoperability in managed X10

X10 '13 Pub Date : 2013-06-20 DOI:10.1145/2481268.2481278
Mikio Takeuchi, D. Cunningham, D. Grove, V. Saraswat
{"title":"Java interoperability in managed X10","authors":"Mikio Takeuchi, D. Cunningham, D. Grove, V. Saraswat","doi":"10.1145/2481268.2481278","DOIUrl":null,"url":null,"abstract":"The ability to smoothly interoperate with other programming languages is an essential feature to reduce the barriers to adoption for new languages such as X10. Compiler-supported interoperability between Managed X10 and Java was initially previewed in X10 version 2.2.2 and is now fully supported in X10 version 2.3. In this paper we describe and motivate the Java interoperability features of Managed X10. For calling Java from X10, external linkage for Java code is explained. For calling X10 from Java, the current implementation of Java code generation is explained.\n An unusual aspect of X10 is that, unlike most other JVM-hosted languages, X10 is also implemented via compilation to C++ (Native X10). The requirement to support multiple execution platforms results in unique challenges to the design of cross-language interoperability. In particular, we discovered that a single top exception type that covers all exception types from source and all target languages is needed as a native type of the source language for portable exception handling. This realization motivated both minor changes in the X10 language specification and an extensive redesign of the X10 core class library for X10 2.3.","PeriodicalId":406965,"journal":{"name":"X10 '13","volume":"38 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-06-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"X10 '13","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2481268.2481278","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

The ability to smoothly interoperate with other programming languages is an essential feature to reduce the barriers to adoption for new languages such as X10. Compiler-supported interoperability between Managed X10 and Java was initially previewed in X10 version 2.2.2 and is now fully supported in X10 version 2.3. In this paper we describe and motivate the Java interoperability features of Managed X10. For calling Java from X10, external linkage for Java code is explained. For calling X10 from Java, the current implementation of Java code generation is explained. An unusual aspect of X10 is that, unlike most other JVM-hosted languages, X10 is also implemented via compilation to C++ (Native X10). The requirement to support multiple execution platforms results in unique challenges to the design of cross-language interoperability. In particular, we discovered that a single top exception type that covers all exception types from source and all target languages is needed as a native type of the source language for portable exception handling. This realization motivated both minor changes in the X10 language specification and an extensive redesign of the X10 core class library for X10 2.3.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
托管X10中的Java互操作性
能够顺利地与其他编程语言进行互操作是减少采用X10等新语言的障碍的基本特性。Managed X10和Java之间编译器支持的互操作性最初在X10 2.2.2版本中进行了预览,现在在X10 2.3版本中得到了完全支持。在本文中,我们描述并激发了Managed X10的Java互操作性特性。对于从X10调用Java,解释了Java代码的外部链接。对于从Java调用X10,本文解释了Java代码生成的当前实现。X10的一个不同寻常的方面是,与大多数其他jvm托管语言不同,X10也是通过编译到c++(原生X10)来实现的。支持多个执行平台的需求给跨语言互操作性的设计带来了独特的挑战。特别是,我们发现需要一个覆盖源语言和所有目标语言的所有异常类型的顶级异常类型作为可移植异常处理的源语言的本机类型。这一实现促使X10语言规范发生了微小的变化,并为X10 2.3对X10核心类库进行了广泛的重新设计。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Java interoperability in managed X10 A tutorial on X10 and its implementation X10 at scale Hybrid parallel task placement in X10 Achieving load-balancing in power system parallel contingency analysis using X10 programming language
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1