Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: HostFat on December 30, 2011, 07:13:03 AM



Title: Tumen miner - WebGL miner
Post by: HostFat on December 30, 2011, 07:13:03 AM
https://github.com/temujin9/tumen_miner

Quote
Here is the dump, I may have other versions, but this was the first thing I found, it maybe the best I have. I think the important javascript parts were miner_original.js and worker_original.js (which is missing) but you maybe able to de-minfy the worker.js file.

The whole client side of the system was just the index.html page, and those two javascript files. IIRC the 'web-worker' can't create an opencl context so all the work is done in the main javascript thread. The backend is just a proxy to a bitcoin miner, the reason it exists is just because of javascript security you have to connect to the same url/port, so that can be replaced by a modern mining proxy of some kind.

My advice would be to study how webcl works, and get a demo of that going in your own code, then learn how the mining process works, and try to load the opencl kernel using your own webcl javascript code. then look over the worker.js and miner.js files and pick out the pieces that actually do the work of converting the bytes around to the right formats and talking to the webcl kernel. Looking at the source of poclbm and diablominer should give you an idea of the various byte conversion functions needed, krad miner works in the same ways as these miners do, only the code is in javascript and you have to deal with the strange different world of javascript.


Title: Re: Tumen miner - WebGL miner
Post by: ThiagoCMC on January 02, 2012, 09:58:18 PM
AWESOME! I'll give it a try!


Title: Re: Tumen miner - WebGL miner
Post by: BitcoinPorn on January 06, 2012, 07:52:07 PM
I like that this is happening, I wish I understood it all


Title: Re: Tumen miner - WebGL miner
Post by: ThiagoCMC on January 06, 2012, 08:33:51 PM
I like that this is happening, I wish I understood it all

This is the old kradminer, a miner that works in your browser.

Now it is open sourced by a good Samaritan!  ^_^


Title: Re: Tumen miner - WebGL miner
Post by: moocow1452 on January 26, 2012, 07:42:37 PM
EDIT: http://c9.io/moocow1452/tumen_miner

Ready for action.


Title: Re: Tumen miner - WebGL miner
Post by: pandemic on February 08, 2013, 12:56:30 AM
OK, I could use a hand getting this working. Right now my firefox is way too new for krad miner. Any suggestions?

bitcoin.pandemichosting.com (http://bitcoin.pandemichosting.com)

A buddy of mine came up with a fix for the version issue.

<script>
var lowestSupportedVersion = 4.0;
var getBrowserVersion = navigator.userAgent.match(/Firefox\/(.*)$/), ffVersion;
if (getBrowserVersion && getBrowserVersion.length > 1) {
browserVersion = getBrowserVersion[1];
}
if(browserVersion>lowestSupportedVersion){
alert("do it");
}else{
alert("oh well");
}
</script>


Title: Re: Tumen miner - WebGL miner
Post by: pandemic on February 10, 2013, 12:59:28 AM
no interest at all on this, eh?


Title: Re: Tumen miner - WebGL miner
Post by: Rawted on February 10, 2013, 06:49:55 PM
no interest at all on this, eh?
I checked it out, updated firefox, installed webcl then got this notice when activating webcl that ended the curiosity for me.

"WARNING! This WebCL implementation is experimental and is likely to introduce severe security vulnerabilities in your system. Use it cautiously and at your own risk. This setting is also available in Advanced Settings (about:config) as extensions.webcl.allowed"


Title: Re: Tumen miner - WebGL miner
Post by: prophetx on May 08, 2013, 12:46:05 AM
is anyone running this?  i'd like to try it out