Hi, I did some research, looking for an inline Worker+Blob API library. Basically, the three clear options on npmjs are operative, threadless, and paralleljs.
paralleljs seems like something that would be built on top of threadless or operative, so I dropped that out of the picture, looking just for the basic inline worker implementation.
So between operative and threadless, operative has the cleanest API. threadless is more like a C/Java programmer approach, and the required err argument for the callbacks can get annoying.
That being said, threadless shines because it works in both server-side nodejs and client-side browser.
Ultimately I'd like a single API across both environments. threadless does it, but operative's API is so nice.
Would you be willing to adopt the workerjs library that threadless is depending on to make operative work everywhere?
I feel that multi-threading will be necessary in the upcoming years as the web evolves into more of a 3D world, not just simple documents. Libraries like http://famo.us, for example, aren't using workers yet but I think it will become necessity for them do start using them in the new age of 3D web. Three.js is of course using workers already. It makes sense for highly performant applications.
Hi, I did some research, looking for an inline Worker+Blob API library. Basically, the three clear options on npmjs are
operative,threadless, andparalleljs.paralleljsseems like something that would be built on top ofthreadlessoroperative, so I dropped that out of the picture, looking just for the basic inline worker implementation.So between
operativeandthreadless,operativehas the cleanest API.threadlessis more like a C/Java programmer approach, and the requirederrargument for the callbacks can get annoying.That being said,
threadlessshines because it works in both server-side nodejs and client-side browser.Ultimately I'd like a single API across both environments.
threadlessdoes it, butoperative's API is so nice.Would you be willing to adopt the
workerjslibrary thatthreadlessis depending on to makeoperativework everywhere?I feel that multi-threading will be necessary in the upcoming years as the web evolves into more of a 3D world, not just simple documents. Libraries like http://famo.us, for example, aren't using workers yet but I think it will become necessity for them do start using them in the new age of 3D web. Three.js is of course using workers already. It makes sense for highly performant applications.