Behavioral interface description of an object-oriented language with futures and promises

被引:9
作者
Abraham, Erika [2 ]
Grabe, Immo [3 ,4 ]
Gruner, Andreas [5 ]
Steffen, Martin [1 ]
机构
[1] Univ Oslo, Oslo, Norway
[2] Rhein Westfal TH Aachen, Aachen, Germany
[3] Univ Kiel, Kiel, Germany
[4] CWI, NL-1009 AB Amsterdam, Netherlands
[5] LIACS, Leiden, Netherlands
来源
JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING | 2009年 / 78卷 / 07期
关键词
Concurrent object-oriented languages; Creol; Formal semantics; Concurrency; Futures and promises; Open systems; Observable behavior; SEMANTICS; CALCULUS; CONCURRENCY;
D O I
10.1016/j.jlap.2009.01.001
中图分类号
学科分类号
摘要
This paper formalizes the observable interface behavior of a concurrent, object-oriented language with futures and promises. The calculus captures the core of Creol, a language, featuring in particular asynchronous method calls and, since recently, first-class futures. The focus of the paper are open systems and we formally characterize their behavior in terms of interactions at the interface between the program and its environment. The behavior is given by transitions between typing judgments, where the absent environment is represented abstractly by an assumption context. A particular challenge is the safe treatment of promises: the erroneous situation that a promise is fulfilled twice, i.e., bound to code twice, is prevented by a resource aware type system, enforcing linear use of the write-permission to a promise. We show subject reduction and the soundness of the abstract interface description. (C) 2009 Elsevier Inc. All rights reserved.
引用
收藏
页码:491 / 518
页数:28
相关论文
共 89 条
  • [1] Abadi M., 1996, MONOGRAPHS COMPUTER
  • [2] ABRAHAM E, 2007, 364 U OSL DEP COMP S
  • [3] Heap-abstraction for an object-oriented calculus with thread classes
    Abraham, Erika
    Gruener, Andreas
    Steffen, Martin
    [J]. SOFTWARE AND SYSTEMS MODELING, 2008, 7 (02) : 177 - 208
  • [4] Abrahám E, 2006, LECT NOTES COMPUT SC, V4037, P218
  • [5] Abstract Interface Behavior of Object-Oriented Languages with Monitors
    Abraham, Erika
    Gruener, Andreas
    Steffen, Martin
    [J]. THEORY OF COMPUTING SYSTEMS, 2008, 43 (3-4) : 322 - 361
  • [6] *ACM, 1996, 23 ANN S PRINC PROGR
  • [7] *ACM, 2005, SIGPLAN NOT
  • [8] *ACM, 1986, SIGPLAN NOT, V21
  • [9] *ACM, 2003, SIGPLAN NOT
  • [10] *ACM, 1999, SIGPL NOT