Simpler Coordination of JavaScript Web Workers - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2017

Simpler Coordination of JavaScript Web Workers


JavaScript is a popular sequential language for implementing Web applications. To enable concurrent execution of JavaScript code, modern JavaScript engines support the Web Workers API. Using this API, developers can spawn concurrent background workers from a distinguished main worker. These workers, which run on the same machine (e.g., to exploit multicore), interact via message-passing.The Web Workers API is relatively low-level, which makes implementing coordination protocols among background workers laborious and error-prone. To simplify this, we propose to hide the Web Workers API behind a coordination language that provides higher-level constructs. Importantly, developers already use JavaScript together with domain-specific languages HTML (for markup/structure) and CSS (for style/design); another domain-specific language (for coordination) seamlessly fits this practice. Using the coordination language Reo, we demonstrate the advantages and feasibility of this approach by example. We also present the necessary tool support (compiler; runtime library and API; front-end).
Fichier principal
Vignette du fichier
450044_1_En_3_Chapter.pdf (558.32 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-01657346 , version 1 (06-12-2017)





Marco Krauweel, Sung-Shik Jongmans. Simpler Coordination of JavaScript Web Workers. 19th International Conference on Coordination Languages and Models (COORDINATION), Jun 2017, Neuchâtel, Switzerland. pp.40-58, ⟨10.1007/978-3-319-59746-1_3⟩. ⟨hal-01657346⟩
101 View
86 Download



Gmail Facebook Twitter LinkedIn More