p-j-s 0.1.0 released

With my friend Matias Servetto we are currently working on our final college assignment, which is:

A JavaScript library that leverages Web Workers to provide parallelism when working with Typed Arrays.

We are developing the library in Github as an open source project and have recently released version 0.1.0 which provides support to perform the map operation in parallel.

One of the main goals of the library is to abstract parallelism as much as possible from a developer’s standpoint, as it can be seen from its API:

var pjs = require('p-j-s');

pjs.init(); // initialize the library

pjs(new Uint32Array([1,2,3,4])).map(function(e){
    return e * 2;
}, function(result){
    // use result...

    // if we are not using the library any more cleanup once we are done
    pjs.terminate();
});

You can find the current documentation in the project’s readme as well as some cool examples in the examples folder.

We have tested the library in Chrome, Firefox and IE. It works in all of them although it is MUCH slower in the latter. We know it does not work in Safari.

Also, if you are interested in TypedArrays, Web Workers and JS performance you will find lots of interesting content in the report *.tex files.

Feel free to open an issue if you have any feedback!