Alice还是Bob?编排中的进程多态性
Alice or Bob?: Process Polymorphism in Choreographies
摘要:
我们提出的PolyChor $λ$,高阶功能\emph{choreographic programming} -一个新兴的范例,程序员编写所需的合作行为的通信过程的系统,然后将其编译成分布式实现的每个过程,翻译称为\emph{endpoint projection}的语言。与其前身Chor $λ$不同,PolyChor $λ$具有受System F $_ω$启发的类型和\emph{process}多态性。也就是说,PolyChor $λ$是第一个(高阶)函数编排语言,它使程序员能够编写通用编排并在运行时确定参与者。这种新颖的功能组合还允许PolyChor $λ$流程与\emph{distributed values}进行通信,从而产生一种新的直观的委托编写方式。虽然PolyChor $λ$的一些功能特性使其在编排的语义与其端点投影并发系统之间的对应性比其他一些编排语言弱,但我们仍然得到了编排编程的标志性最终结果:投影程序在设计上是无死锁的。
英文摘要:
We present PolyChor$λ$, a language for higher-order functional \emph{choreographic programming} -- an emerging paradigm by which programmers write the desired cooperative behaviour of a system of communicating processes and then compile it into distributed implementations for each process, a translation called \emph{endpoint projection}. Unlike its predecessor, Chor$λ$, PolyChor$λ$ has both type and \emph{process} polymorphism inspired by System F$_ω$. That is, PolyChor$λ$ is the first (higher-order) functional choreographic language which gives programmers the ability to write generic choreographies and determine the participants at runtime. This novel combination of features also allows PolyChor$λ$ processes to communicate \emph{distributed values}, leading to a new and intuitive way to write delegation. While some of the functional features of PolyChor$λ$ give it a weaker correspondence between the semantics of choreographies and their endpoint-projected concurrent systems than some other choreographic languages, we still get the hallmark end result of choreographic programming: projected programs are deadlock-free by design.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。