Chorex:可重启的、集成语言的编舞编程
Chorex: Restartable, Language-Integrated Choreographies
AI总结:
Chorex是一种通过元编程实现编舞编程的语言,支持可重启的演员,并通过检查点实现与宿主语言的紧密集成。
摘要:
我们构建了Chorex,一种将编舞编程引入Elixir的语言,以实现稳健的分布式应用。Chorex是唯一一种能够容忍演员故障的编舞语言:当一个演员崩溃时,Chorex会生成新的进程,使用检查点恢复状态,并更新所有演员的网络配置。Chorex还证明了通过元编程可以实现完整的编舞功能,并且这样做可以实现与宿主语言的紧密集成。例如,编舞要求与演员实现之间的不匹配会在源代码中静态报告,而不是在宏扩展代码中。本文通过几个例子展示了Chorex,从高阶图书商到安全的远程密码协议,详细说明了其实现,并测量了检查点的开销。我们推测,Chorex的投影策略,即输出一组无状态函数,是其他语言支持可重启演员的一种可行方法。
英文摘要:
We built Chorex, a language that brings choreographic programming to Elixir as a path toward robust distributed applications. Chorex is unique among choreographic languages because it tolerates failure among actors: when an actor crashes, Chorex spawns a new process, restores state using a checkpoint, and updates the network configuration for all actors. Chorex also proves that full-featured choreographies can be implemented via metaprogramming, and that doing so achieves tight integration with the host language. For example, mismatches between choreography requirements and an actor implementation are reported statically and in terms of source code rather than macro-expanded code. This paper illustrates Chorex on several examples, ranging from a higher-order bookseller to a secure remote password protocol, details its implementation, and measures the overhead of checkpointing. We conjecture that Chorex's projection strategy, which outputs sets of stateless functions, is a viable approach for other languages to support restartable actors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。