ParaWeb: Parallel Programming Patterns for Web Development
Suejb Memeti
Key points
From the paper's conclusion- Node.js Worker Threads and browser Web Workers provide low-level mechanisms for parallel execution, but developers lack high-level abstractions that capture recurring parallel structures as reusable patterns.
Abstract
Modern web applications increasingly require computationally intensive processing, yet JavaScript, the dominant language of the web, has traditionally been limited to a single-threaded execution model. Node.js Worker Threads and browser Web Workers provide low-level mechanisms for parallel execution, but developers lack high-level abstractions that capture recurring parallel structures as reusable patterns. In this paper, we present ParaWeb, a TypeScript library that implements ten parallel programming patterns for server-side Node.js, client-side browser environments, and WebGPU compute shaders. ParaWeb provides three implementation variants for each pattern: a message-passing (MP) variant based on structured cloning via postMessage, a shared-buffer (Shared) variant that uses SharedArrayBuffer with typed array views, and a GPU variant that uses WebGPU compute shaders for hardware-accelerated execution. We describe the architecture, design decisions, and pattern-specific implementation strategies, and we evaluate the performance of all thirty implementations across three data sizes. Experimental evaluation results show that the CPU-based variants achieve speedups of up to 11.6x with 16 threads for compute-bound patterns, while the GPU variants reach speedups of up to 260x for compute-bound patterns with high arithmetic intensity such as Farm, Scatter, Reduce, and Map. A case study on five image-convolution filters further shows that GPU acceleration reaches up to 414x speedup over single-threaded CPU on non-separable kernels, with consistent scaling across 1024x1024$, 2048x2048$, and 4K images.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Desktop to Web: WASM-Enabled Ubiquitous Visualization.IEEE computer graphics and applications · 2026
- A Fast, Programmable GPU-to-CPU Invocation Layer for GPU-Initiated CommunicationarXiv · 2026
- Kuiper: Correct and Efficient GPU Programming with Dependent Types and Separation LogicProceedings of the ACM on Programming Languages · 2026
- Multi-GPU acceleration of PALABOS fluid solver using C++ standard parallelismComputer Physics Communications · 2026
- Snoopie: A Multi-GPU Communication Profiler and VisualizerarXiv · 2026
- GPU Acceleration of Awkward Arrays: Using Python cuda.computearXiv · 2026