Fine-grained interoperability through mirrors and contracts

被引:16
|
作者
Gray, KE [1 ]
Findler, RB
Flatt, M
机构
[1] Univ Utah, Salt Lake City, UT 84112 USA
[2] Univ Chicago, Chicago, IL 60637 USA
关键词
languages; design; interoperability; mirrors; contracts; !text type='Java']Java[!/text; Scheme;
D O I
10.1145/1103845.1094830
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
As a value flows across the boundary between interoperating languages, it must be checked and converted to fit the types and representations of the target language. For simple forms of data, the checks and coercions can be immediate, for higher order data, such as functions and objects. some must be delayed until the value is used in a particular way. Typically, these coercions and checks are implemented by an ad-hoc mixture of wrappers, reflection, and dynamic predicates. We observe that 1) the wrapper and reflection operations fit the profile of mirrors, 2) the checks correspond to contracts, and 3) the timing and shape of mirror operations coincide with the timing and shape of contract operations. Based on these insights, we present a new model of interoperability that builds on the ideas of mirrors and contracts, and we describe an interoperable implementation of Java and Scheme that is guided by the model.
引用
收藏
页码:231 / 245
页数:15
相关论文
共 50 条
  • [1] Fine-Grained Crowdsourcing for Fine-Grained Recognition
    Jia Deng
    Krause, Jonathan
    Li Fei-Fei
    [J]. 2013 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2013, : 580 - 587
  • [2] ContractCheck: Checking Ethereum Smart Contracts in Fine-Grained Level
    Wang, Xite
    Tian, Senping
    Cui, Wei
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (07) : 1789 - 1806
  • [3] Graph Analytics Through Fine-Grained Parallelism
    Shang, Zechao
    Li, Feifei
    Yu, Jeffrey Xu
    Zhang, Zhiwei
    Cheng, Hong
    [J]. SIGMOD'16: PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2016, : 463 - 478
  • [4] FINE-GRAINED COLOUR DISCRIMINATION WITHOUT FINE-GRAINED COLOUR
    Gert, Joshua
    [J]. AUSTRALASIAN JOURNAL OF PHILOSOPHY, 2015, 93 (03) : 602 - 605
  • [5] Leveraging Fine-Grained Labels to Regularize Fine-Grained Visual Classification
    Wu, Junfeng
    Yao, Li
    Liu, Bin
    Ding, Zheyuan
    [J]. PROCEEDINGS OF THE 11TH INTERNATIONAL CONFERENCE ON COMPUTER MODELING AND SIMULATION (ICCMS 2019) AND 8TH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING AND APPLICATIONS (ICICA 2019), 2019, : 133 - 136
  • [6] Achieving incremental compilation through fine-grained builds
    Univ of Sydney, Sydney
    [J]. Software Pract Exper, 5 (497-517):
  • [7] Achieving incremental compilation through fine-grained builds
    Cooper, T
    Wise, M
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 1997, 27 (05): : 497 - 517
  • [8] Authenticating Users Through Fine-Grained Channel Information
    Liu, Hongbo
    Wang, Yan
    Liu, Jian
    Yang, Jie
    Chen, Yingying
    Poor, H. Vincent
    [J]. IEEE TRANSACTIONS ON MOBILE COMPUTING, 2018, 17 (02) : 251 - 264
  • [9] Facilitating the Communication of Politeness through Fine-Grained Paraphrasing
    Fu, Liye
    Fussell, Susan R.
    Danescu-Niculescu-Mizil, Cristian
    [J]. PROCEEDINGS OF THE 2020 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP), 2020, : 5127 - 5140
  • [10] FINE-GRAINED MONOLITH
    Louw, Michael
    [J]. ARCHITECTURE SOUTH AFRICA, 2019, (96): : 48 - 49