#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Lightbulb Can Javascript + Web Workers turn a website into a supercomputer?


    We've been working on this question for quite a while, can the small amounts of processing power from the WebWorkers API turn a website into a distributed supercomputer?

    So far we've tried a number of experiments with relatively small websites, by including an html line that causes the visitor to request MapReduce problems and solve them, but are still pretty early stage (details on crowdprocess.com). With web workers it can be limited to a small percentage of the processor and not affect performance.

    If it works it can be a way to get rid of adds telling me i won an iphone on every website, but we are not yet sure how this will react to latency and Amdahl's Law if it gets scaled up. Has anyone worked with this kind of thing before?

    PS: If you want to play around with the Node.JS API for this you can simply contact me (beta, beta, beta...)
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,699
    Rep Power
    6351
    Theoretically, yes it could. I worked at a social network with hundreds of thousands of simultaneous visitors throughout the day and we experimented a bit with pushing high-complexity tasks like image resizing out to the client.

    The problem you may run into is sucking up your clients' battery life. If I'm on my laptop at a cafe and I figure out that the reason my battery only lasts an hour is because your website is forcing me to crack crypto or something else, I'm never coming back. That goes double for my cell phone (which registers as chrome and has web workers enabled).
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0
    Originally Posted by ManiacDan
    Theoretically, yes it could. I worked at a social network with hundreds of thousands of simultaneous visitors throughout the day and we experimented a bit with pushing high-complexity tasks like image resizing out to the client.

    The problem you may run into is sucking up your clients' battery life. If I'm on my laptop at a cafe and I figure out that the reason my battery only lasts an hour is because your website is forcing me to crack crypto or something else, I'm never coming back. That goes double for my cell phone (which registers as chrome and has web workers enabled).
    True, we've limited use to about 0.5 GFLOPS (considerably less than any flash add), and are blocking all recognizable 3G or 4G connections, but still want to make sure that battery use is never a problem.

    Ideally a button which can turn off processing on the website itself, shouldn't be too hard to do. However we want to use this in the long term for pretty specific applications which people would be happy to do (no crypto or other creepy stuff), we've been talking to researchers who are working on Microbiome Sequencing who seem pretty interested in using this (if it works)
  6. #4
  7. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,301
    Rep Power
    7170
    If it works it can be a way to get rid of adds telling me i won an iphone on every website
    If this works, it would be added in addition to ads telling you that you won on iPhone.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo