icodeforlove/task.js
View on GitHub ↗ ★ 415 JavaScript
:zap: Simplified interface for getting CPU intensive code to run on all cores (node.js, and web)
9 mentions on Hacker News by 4 people: 3 stories, 6 comments · first 2016-07-24 · latest 2019-09-01
20082026
-
This is how Task.js functions https://github.com/icodeforlove/task.js Which works on Node.js, and the browser. (Supports fork, worker_threads, and WebWorkers) The advantage of this is that the workers become generic enough to run anything.…
comment by ic4l · 2019-09-01 · in Making Web-Workers Async Iterables -
…provided args and resolves when its done (also supports multiple workers and automatic queuing). https://github.com/icodeforlove/task.js
comment by ic4l · 2017-03-04 · in JavaScript in Parallel: Web Workers and SharedArrayBuffer -
I kept finding myself needing to toss stuff in a background thread, and ended up making this: https://github.com/icodeforlove/task.js It makes wrangling multiple workers much easier, and doesn't require you to have external JS files. (also…
comment by ic4l · 2017-03-04 · in JavaScript in Parallel: Web Workers and SharedArrayBuffer -
In response to your last comment, you should check out https://github.com/icodeforlove/task.js . It will do that and much more.
comment by chadscira · 2016-10-28 · in Show HN: Sorting 50K Array, HTML5 Web Worker Demo -
…that is interested in easily using WebWorkers for this sort of work please check out task.js ( https://github.com/icodeforlove/task.js ). It allows you to send a pure function with provided arguments to a autoscaling WebWorker pool. Heres…
comment by chadscira · 2016-10-28 · in Show HN: Sorting 50K Array, HTML5 Web Worker Demo -
…to do this in javascript (universal) could check out Task.js [0] for a simple interface. - [0] https://github.com/icodeforlove/task.js
comment by chadscira · 2016-09-02 · in Think Before You Parallelize: A tour of parallel abstractions