计算机科学 > 程序设计语言
[提交于 2015年11月3日]
标题:A Formal Model for Direct-style Asynchronous Observables
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Languages like F#, C#, and recently also Scala, provide "Async" programming models which aim to make asynchronous programming easier by avoiding an inversion of control that is inherent in callback-based programming models. This paper presents a novel approach to integrate the Async model with observable streams of the Reactive Extensions model. Reactive Extensions are best-known from the .NET platform, and widely-used implementations of its programming model exist also for Java, Ruby, and other languages. This paper contributes a formalization of the unified "Reactive Async" model in the context of an object-based core calculus. Our formal model captures the essence of the protocol of asynchronous observables using a heap evolution property. We prove a subject reduction theorem; the theorem implies that reduction preserves the heap evolution property. Thus, for well-typed programs our calculus ensures the protocol of asynchronous observables.
提交历史
来自:Philipp Haller[v1] 2015年11月3日 星期二 00:00:00 UTC