3 ms·
> Among other things, JavaScript is necessarily single threaded... That isn't quite true anymore either, because of Web Workers and ParallelArray. https://bug
by espadrine 14y ago
> Among other things, JavaScript is necessarily single threaded...
That isn't quite true anymore either, because of Web Workers and ParallelArray.
https://bugzilla.mozilla.org/showdependencytree.cgi?id=801869&hide_resolved=1 https://bugzilla.mozilla.org/showdependencytree.cgi?id=80186...
https://github.com/RiverTrail/RiverTrail/wiki/ParallelArray https://github.com/RiverTrail/RiverTrail/wiki/ParallelArray
- niggler 14y ago"That isn't quite true anymore either, because of Web Workers and ParallelArray." Quote from yesterday's discussion: https://news.ycombinator.com/item?id=5451658 https://news.ycombinator.com/item?id=5451658 "WebWorkers are not really a multithread model. Game engines could be written to leverage message passing based isolates, but in some cases, but doing it in an optimal form isn't exactly developer friendly, it's one of pains of developing the PS3 SPEs is that they didn't share system memory and you had to DMA stuff around."
- pcwalton 14y agoParallelArray allows data to be shared without copies.
- duaneb 14y agoIsn't that browsers only? And not really suited (or horribly suited) for realtime work like video games.
- audreyt 14y agoWebWorker with native threads is available on Node.js: https://github.com/audreyt/node-webworker-threads https://github.com/audreyt/node-webworker-threads For an alternate model of parallel computing, WebCL (OpenCL) has been ported to Node.js as well: https://github.com/fifield/node-webcl https://github.com/fifield/node-webcl