A design proposal for splitting the ParallelJS (PJs) API into two layers: adding 'unordered' parallel variants of standard array methods (like unorderedMap, unorderedReduce) directly to JavaScript arrays for simple parallel operations, while refocusing ParallelArray on advanced multi-dimensional, type-annotated use cases. The unordered naming convention signals to the engine that parallel execution is likely beneficial, and the approach allows easy polyfilling on older browsers.

4m read timeFrom smallcultfollowing.com
Post cover image
Table of contents
The basic ideaWhy call the methods “unordered”?What about immutability?What are the benefits of this API?What does this mean for ParallelArray?