Publication

Back to overview

GEMs: shared-memory parallel programming for Node.js

Type of publication Peer-reviewed
Publikationsform Original article (peer-reviewed)
Author Bonetta Daniele, Salucci Luca, Marr Stefan, Binder Walter,
Project Fundamentals of Parallel Programming for Platform-as-a-Service Clouds
Show all

Original article (peer-reviewed)

Journal ACM SIGPLAN Notices
Volume (Issue) 51(10)
Page(s) 531 - 547
Title of proceedings ACM SIGPLAN Notices
DOI 10.1145/3022671.2984039

Abstract

JavaScript is the most popular programming language for client-side Web applications, and Node.js has popularized the language for server-side computing, too. In this domain, the minimal support for parallel programming remains however a major limitation. In this paper we introduce a novel parallel programming abstraction called Generic Messages (GEMs). GEMs allow one to combine message passing and shared-memory parallelism, extending the classes of parallel applications that can be built with Node.js. GEMs have customizable semantics and enable several forms of thread safety, isolation, and concurrency control. GEMs are designed as convenient JavaScript abstractions that expose high-level and safe parallelism models to the developer. Experiments show that GEMs outperform equivalent Node.js applications thanks to their usage of shared memory.
-