Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Distributed Computing [closed]

Tags:

Why aren't there any Javascript distributed computing frameworks / projects? The idea seems absolutely awesome to me because:

  • The Client is the Browser
  • Iteration can be done with AJAX
  • Webmasters could help projects by linking the respective Javascript
  • Millions or even billions of users would help DC projects without even noticing

Please share your views on this subject.

EDIT: Also, what kind of problems do you think would be suitable for JSDC?

GIMPS for instance would be impossible to implement.

like image 310
Alix Axel Avatar asked Aug 10 '09 23:08

Alix Axel


2 Answers

I think that Web Workers will soon be used to create distributed computing frameworks, there are some early attempts at this concept. Non-blocking code execution could have been done before using setTimeout, but it made a little sense as most browser vendors focused on optimizing their JS engines just recently. Now we have faster code execution and new features, so running some tasks unconsciously in background as we browse the web is probably just a matter of months ;)

like image 172
pawel Avatar answered Oct 20 '22 01:10

pawel


There is something to be said for 'user rights' here. It sounds like you're describing a situation where the webmaster for Foo.com includes the script for, say, Folding@Home on their site. As a result, all visitors to Foo.com have some fraction of their CPU "donated" to Folding@Home, until they navigate away from Foo.com. Without some sort of disclaimer or opt-in, I would consider that a form of malware and avoid vising any site that did that.

That's not to say you couldn't build a system that asked for confirmation or permission, but there is definite potential for abuse.

like image 22
Annabelle Avatar answered Oct 20 '22 00:10

Annabelle