Using continuations and aspects to tame asynchronous programming on the web

Paul Leger, Hiroaki Fukuda

研究成果: Conference contribution

3 被引用数 (Scopus)

抄録

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月 142016 3月 17

Other

Other15th International Conference on Modularity, MODULARITY 2016
国/地域Spain
CityMalaga
Period16/3/1416/3/17

ASJC Scopus subject areas

  • ソフトウェア

引用スタイル