一种卓越的Actor系统(函数式珍珠)
An Exceptional Actor System (Functional Pearl)
AI总结:
本研究挖掘出Glasgow Haskell编译器运行时系统中隐含的可用actor框架,在经典分布式示例上演示并扩展至动态类型场景,同时探讨RTS特性的重叠问题,提出通过约束特性使用引导良好实践的建议。
摘要:
Glasgow Haskell编译器以其功能丰富的运行时系统(RTS)著称,该系统包含轻量级线程、异步异常以及大量其他特性。这些特性的组合功能十分强大,以至于程序员可以用多种不同方式完成同一任务——其中一些方法比另一些更值得推荐。我们提出了一个隐藏在RTS中、易于用户使用的actor框架,并以分布式系统文献中的一个经典示例对其进行演示。随后我们将该框架和示例扩展到动态类型领域。最后,我们就RTS特性如何相互交叉、甚至可能相互替代提出了疑问,并建议GHC可以通过限制部分特性的使用来引导良好实践。
英文摘要:
The Glasgow Haskell Compiler is known for its feature-laden runtime system (RTS), which includes lightweight threads, asynchronous exceptions, and a slew of other features. Their combination is powerful enough that a programmer may complete the same task in many different ways -- some more advisable than others. We present a user-accessible actor framework hidden in plain sight within the RTS and demonstrate it on a classic example from the distributed systems literature. We then extend both the framework and example to the realm of dynamic types. Finally, we raise questions about how RTS features intersect and possibly subsume one another, and suggest that GHC can guide good practice by constraining the use of some features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。