Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Parallel.js: A javascript library for parallel computing | Better HN
Parallel.js: A javascript library for parallel computing
(adambom.github.com)
58 points · by
adambom
· 13y ago · 8 comments
Comments
[–]
niggler
13y ago
Should add a web worker polyfill like
http://code.google.com/p/fakeworker-js/source/browse/src/jav...
to the live demos ...
[–]
adambom
OP
13y ago
Check out the github repo. I wrote a worker.js "polyfill" that's meant to emulate web workers for node. I want to apply this to the browser at some point but for now there are hard dependencies on Worker and URL.
[–]
itsnotvalid
13y ago
Is this compatible with non-worker-ready browsers?
[–]
hughes
13y ago
Doesn't look like it. Clicking "Try It" does nothing, so I guess it has no single-threaded fallback.
[–]
adambom
OP
13y ago
You need a way to spawn threads. There may be a way to implement this in the main browser event loop but I have yet to think of a way.
[–]
coditor
13y ago
Is there anything you can't build with javascript?
[–]
Cieplak
13y ago
http://en.m.wikipedia.org/wiki/Turing_completeness
[–]
kevingadd
13y ago
Anything that needs weak references. They might land in ES7, though...