抄録
In asynchronous programming of JavaScript, callbacks are widely used to develop rich interactiveWeb applications. However, the dependency among callbacks can make it difficult to understand and maintain pieces of code, which will mix concerns eventually. Unfortunately, current solutions for JavaScript do not fully address the aforementioned issue. This paper presents Sync/cc, a JavaScript library that uses continuations and aspects to allow developers to write asynchronous pieces of code in a synchronous style, preventing callback dependencies. Unlike current solutions, Sync/cc is modular, customizable, and succinct because it does not require special and scattered keywords, code refactoring, or adding ad-hoc implementations like state machines. In practice, Sync/cc uses a) continuations to only suspend the current handler execution until the asynchronous operation is resolved, and b) aspects to apply continuations in a non-intrusive way.
本文言語 | English |
---|---|
ホスト出版物のタイトル | MODULARITY Companion 2016 - Companion Proceedings of the 15th International Conference on Modularity |
出版社 | Association for Computing Machinery, Inc |
ページ | 79-82 |
ページ数 | 4 |
ISBN(印刷版) | 9781450340335 |
DOI | |
出版ステータス | Published - 2016 3月 14 |
イベント | 15th International Conference on Modularity, MODULARITY 2016 - Malaga, Spain 継続期間: 2016 3月 14 → 2016 3月 17 |
Other
Other | 15th International Conference on Modularity, MODULARITY 2016 |
---|---|
国/地域 | Spain |
City | Malaga |
Period | 16/3/14 → 16/3/17 |
ASJC Scopus subject areas
- ソフトウェア