Acute: High-level programming language design for distributed computation

被引:7
作者
Sewell, P [1 ]
Leifer, JJ [1 ]
Wansbrough, K [1 ]
Nardelli, FZ [1 ]
Allen-Williams, M [1 ]
Habouzit, P [1 ]
Vafeiadis, V [1 ]
机构
[1] Univ Cambridge, Cambridge CB2 1TN, England
关键词
languages; design; programming languages; distributed programming; marshalling; serialisation; abstract types; modules; rebinding; version control; type theory; ML;
D O I
10.1145/1090189.1086370
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Existing languages provide good support for typeful programming of standalone programs. In a distributed system, however, there may be interaction between multiple instances of many distinct programs, sharing some (but not necessarily all) of their module structure, and with some instances rebuilt with new versions of certain modules as time goes on. In this paper we discuss programming language support for such systems, focussing on their typing and naming issues. We describe an experimental language, Acute, which extends an ML core to support distributed development, deployment, and execution, allowing type-safe interaction between separately-built programs. The main features are: (1) type-safe marshalling of arbitrary values; (2) type names that are generated (freshly and by hashing) to ensure that type equality tests suffice to protect the invariants of abstract types, across the entire distributed system; (3) expression-level names generated to ensure that name equality tests suffice for type-safety of associated values, e.g. values carried on named channels; (4) controlled dynamic rebinding of marshalled values to local resources; and (5) thunkification of threads and mutexes to support computation mobility. These features are a large part of what is needed for typeful distributed programming. They are a relatively lightweight extension of M L, should be efficiently implementable, and are expressive enough to enable a wide variety of distributed infrastructure layers to be written as simple library code above the byte-string network and persistent store APIs. This disentangles the language runtime from communication intricacies. This paper highlights the main design choices in Acute. It is supported by a full language definition (of typing, compilation, and operational semantics), by a prototype implementation, and by example distribution libraries.
引用
收藏
页码:15 / 26
页数:12
相关论文
共 26 条
  • [11] Syntactic type abstraction
    Grossman, D
    Morrisett, G
    Zdancewic, S
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2000, 22 (06): : 1037 - 1080
  • [12] Harper R, 2000, FOUNDAT COMPUT, P341
  • [13] HARPER R, 1994, P 21 POPL
  • [14] LEIFER JJ, 2003, P 8 ICFP
  • [15] LEROY X, 1994, P 21 POPL
  • [16] MURPHY T, 2004, P LICS
  • [17] Pierce BC, 2000, FOUNDAT COMPUT, P455
  • [18] Reppy John H., 1999, CONCURRENT PROGRAMMI
  • [19] ROSSBERG A, 2003, P 5 PPDP AUG
  • [20] Sewell P, 1999, LECT NOTES COMPUT SC, V1686, P1