Scala中孤立Actor仿射类型的实证研究
Towards an Empirical Study of Affine Types for Isolated Actors in Scala
摘要:
LaCasa是一个类型系统和编程模型,用于在Scala中执行对象能力规则,并提供仿射类型。LaCasa类型系统的一个重要应用是并发进程的软件隔离。隔离之所以重要,有几个原因,包括安全性和数据竞争自由。此外,LaCasa的仿射引用支持高效的引用式消息传递,同时保证“深度复制”语义。这种深度复制语义使程序员能够无缝地将在单个机器上运行的并发程序移植到在大规模机器集群上运行的分布式程序。本文介绍了LaCasa与Scala中的Actor的集成,特别是Akka基于Actor的中间件,这是业界最广泛使用的Actor系统之一。这种集成的目标是静态地确保Akka参与者的隔离。重要的是,我们提出了一个实证研究的结果,调查所需的努力,使用LaCasa的类型系统在现有的开源Akka的系统和应用程序。
英文摘要:
LaCasa is a type system and programming model to enforce the object capability discipline in Scala, and to provide affine types. One important application of LaCasa's type system is software isolation of concurrent processes. Isolation is important for several reasons including security and data-race freedom. Moreover, LaCasa's affine references enable efficient, by-reference message passing while guaranteeing a "deep-copy" semantics. This deep-copy semantics enables programmers to seamlessly port concurrent programs running on a single machine to distributed programs running on large-scale clusters of machines. This paper presents an integration of LaCasa with actors in Scala, specifically, the Akka actor-based middleware, one of the most widely-used actor systems in industry. The goal of this integration is to statically ensure the isolation of Akka actors. Importantly, we present the results of an empirical study investigating the effort required to use LaCasa's type system in existing open-source Akka-based systems and applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。