Option Contracts

被引:2
|
作者
Dimoulas, Christos [1 ]
Findler, Robert Bruce [2 ]
Felleisen, Matthias [3 ]
机构
[1] Harvard Univ, Cambridge, MA 02138 USA
[2] Northwestern Univ, Evanston, IL 60208 USA
[3] Northeastern Univ, Boston, MA USA
关键词
programming language design; behavioral software contracts; random testing; probabilistic spot checking; CHECKING;
D O I
10.1145/2544173.2509548
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many languages support behavioral software contracts so that programmers can describe a component's obligations and promises via logical assertions in its interface. The contract system monitors program execution, checks whether the assertions hold, and, if not, blames the guilty component. Pinning down the violator gets the debugging process started in the right direction. Quality contracts impose a serious runtime cost, however, and programmers therefore compromise in many ways. Some turn off contracts for deployment, but then contracts and code quickly get out of sync during maintenance. Others test contracts randomly or probabilistically. In all cases, programmers have to cope with lack of blame information when the program eventually fails. In response, we propose option contracts as an addition to the contract tool box. Our key insight is that in ordinary contract systems, server components impose their contract on client components, giving them no choice whether to trust the server's promises or check them. With option contracts, server components may choose to tag a contract as an option and clients may choose to exercise the option or accept it, in which case they also shoulder some responsibility. We show that option contracts permit programmers to specify flexible checking policies, that their cost is reasonable, and that they satisfy a complete monitoring theorem.
引用
收藏
页码:475 / 494
页数:20
相关论文
共 50 条
  • [1] OPTION CONTRACTS
    Corbin, Arthur L.
    YALE LAW JOURNAL, 1914, 23 (08): : 641 - 663
  • [2] CONVERSION IN OPTION CONTRACTS
    不详
    IOWA LAW BULLETIN, 1917, 3 (03): : 168 - 170
  • [3] MUTUALITY IN OPTION CONTRACTS
    不详
    IOWA LAW BULLETIN, 1917, 3 (03): : 173 - 175
  • [4] THE QUALITY OPTION AND TIMING OPTION IN FUTURES CONTRACTS
    BOYLE, PP
    JOURNAL OF FINANCE, 1989, 44 (01): : 101 - 113
  • [5] Option contracts in supply chains
    Boeckem, Sabine
    Schiller, Ulf
    JOURNAL OF ECONOMICS & MANAGEMENT STRATEGY, 2008, 17 (01) : 219 - 245
  • [6] Option contracts and vertical foreclosure
    Ma, CA
    JOURNAL OF ECONOMICS & MANAGEMENT STRATEGY, 1997, 6 (04) : 725 - 753
  • [7] VALUATION OF STOCK OPTION CONTRACTS
    WEYGANDT, JJ
    ACCOUNTING REVIEW, 1977, 52 (01): : 40 - 51
  • [8] Wholesale contracts: A resource option
    Miller, EG
    Tatham, E
    Hall, S
    JOURNAL AMERICAN WATER WORKS ASSOCIATION, 1996, 88 (11): : 46 - 56
  • [9] EMPLOYMENT CONTRACTS - AN OPTION TO CONSIDER
    GUMBEL, JM
    HOOVER, J
    LABOR LAW JOURNAL, 1990, 41 (03) : 175 - 177
  • [10] Wholesale contracts: A resource option
    Miller, Ellen G.
    Tatham, Elaine
    Hall, Susan
    Journal / American Water Works Association, 1996, 88 (11): : 46 - 56