计算机科学 > 程序设计语言
[提交于 2023年7月20日]
标题:An Exceptional Actor System (Functional Pearl)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Lindsey Kuper[v1] 2023年7月20日 星期四 19:11:54 UTC