Pause ’n’ Play: Formalizing Asynchronous C$^\sharp$

ECOOP 2012 – Object-Oriented ProgrammingLecture Notes in Computer Science(2012)

引用 0|浏览0
暂无评分
摘要
Writing applications that connect to external services and yet remain responsive and resource conscious is a difficult task. With the rise of web programming this has become a common problem. The solution lies in using asynchronous operations that separate issuing a request from waiting for its completion. However, doing so in common object-oriented languages is difficult and error prone. Asynchronous operations rely on callbacks, forcing the programmer to cede control. This inversion of control-flow impedes the use of structured control constructs, the staple of sequential code. In this paper, we describe the language support for asynchronous programming in the upcoming version of C\(^\sharp\). The feature enables asynchronous programming using structured control constructs. Our main contribution is a precise mathematical description that is abstract (avoiding descriptions of compiler-generated state machines) and yet sufficiently concrete to allow important implementation properties to be identified and proved correct.
更多
查看译文
关键词
Operational Semantic,Transition Rule,State Machine Translation,Method Body,Asynchronous Operation
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要