It actually starts up a web worker with the exact same file and communicates with itself back and forth, the browser version to the worker version. Not the first time this technique has been used but it's still pretty new.
Javascript Bitcoin Miner
31–40 of 152 posts
Re: Javascript Bitcoin Miner
#32Earlier quoted context omitted.
I don't think the fundamentals are sound here. Advertising spurs commerce, which creates value. This wastes electricity, slows down users' computers, and does no valuable computation. It seems closer to stealing from your users (with enormous inefficiency) than something that creates any real value.
By your logic gold mining is overrated, too.
- Since you're going out, anyway...
Re: Javascript Bitcoin Miner
#33In terms of ramping this up to actually be a viable revenue source... I guess you'd need a browser plugin which was hard-core about making sure you agreed to usage, and verified to the server that you were actually doing the mining you'd agreed to - and that could tap in to the GPU.
But then, if Bitcoins become worth something meaningful, wouldn't we all be using our GPU most of the time to be generating them anyway? In which case, the website starts asking you for the opportunity cost of using your GPU instead, and you know how much that's worth, and boom, micropayments.
Re: Javascript Bitcoin Miner
#34Re: Javascript Bitcoin Miner
#35It is bad to use a bunch of the user's CPU without any notice. They will probably notice that your site makes their computer slow and never come back again. Also, once they find out you've been using their CPU power/electricity/battery life surreptitiously for private, unshared gain, you will probably have some angry customers. Additionally, does this automatically hook in to slush's pool or something? Bitcoin mining…
way, way less than 10mhash s/mhash/Mhash/
It's like ranting that people talk about "10mb" files. Or "100gb" or "100GB" drives. When they're technically "93.1GiB" drives ("gibibyte" [1],[2], or [3]).
[1]: http://en.wikipedia.org/wiki/Hard_disk_drive#Capacity_measur... [2]: http://en.wikipedia.org/wiki/Mebibyte [3]: http://en.wikipedia.org/wiki/Binary_prefix
Re: Javascript Bitcoin Miner
#36Neat! Distributed computing with JS is an awesome tech trick, some friends and I did something similar back during Node Knockout (MapRejuice: https://github.com/ryanmcgrath/maprejuice ). Curious to see what you guys think of the ethical side of it though - do you let this run on mobile, etc? This will almost definitely cause extra battery drain on mobile devices, you think it's fine to have this happen without user c…
Re: Javascript Bitcoin Miner
#37It is bad to use a bunch of the user's CPU without any notice. They will probably notice that your site makes their computer slow and never come back again. Also, once they find out you've been using their CPU power/electricity/battery life surreptitiously for private, unshared gain, you will probably have some angry customers. Additionally, does this automatically hook in to slush's pool or something? Bitcoin mining…
Chrome13-canary: ~15.2k/s
FF4: ~6.4k/s
Safari5: ~6.2k/s
IE9: ~1.6k/s
So yeah, massively massively slower than regular GPU mining. Anyone know of a way to push WebGL into doing hashing functions, and reading the results out?Re: Javascript Bitcoin Miner
#38Earlier quoted context omitted.
Actually, regular CPU miners are nearly 1,000 times slower than GPU miners. I wouldn't be surprised if a JavaScript miner was several orders of magnitude slower than that (ie. a million times slower than GPU miners). What about using gamers' excess GPU to mine Bitcoins in an installable massively-multiplayer game? Is anyone trying this?
I wonder when will the bitcoin mining viruses appear. If done stealthily they could use spare resources and fall back when other GPU/CPU intensive task is launched. Such virus could be quite profitable if it spread widely enough.
Re: Javascript Bitcoin Miner
#39That said, it's a nice proof-of-concept. Is there anyway to block this type of use of CPU without blocking JS?