计算机科学 > 程序设计语言
[提交于 2020年8月28日]
标题:Smoothly Navigating between Functional Reactive Programming and Actors
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We formally define an elegant multi-paradigm unification of Functional Reactive Programming, Actor Systems, and Object-Oriented Programming. This enables an intuitive form of declarative programming, harvesting the power of concurrency while maintaining safety. We use object and reference capabilities to highlight and tame imperative features: reference capabilities track aliasing and mutability, and object capabilities track I/O. Formally, our type system limits the scope, impact and interactions of impure code. - Scope: Expressions whose input is pure will behave deterministically. - Impact: Data-races and synchronisation issues are avoided. The only way for an actor to behave nondeterministically, is by mutating its state based on message delivery order. - Interactions: Signals provide a functional boundary between imperative and functional code, preventing impure code from invalidating functional assumptions.
提交历史
来自:Nick Webster[v1] 2020年8月28日 星期五 11:40:21 UTC