Bitcoin Forum
April 25, 2024, 06:55:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Tumen miner - WebGL miner  (Read 6290 times)
HostFat (OP)
Staff
Legendary
*
Offline Offline

Activity: 4214
Merit: 1203


I support freedom of choice


View Profile WWW
December 30, 2011, 07:13:03 AM
 #1

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.

NON DO ASSISTENZA PRIVATA - http://hostfatmind.com
1714028126
Hero Member
*
Offline Offline

Posts: 1714028126

View Profile Personal Message (Offline)

Ignore
1714028126
Reply with quote  #2

1714028126
Report to moderator
1714028126
Hero Member
*
Offline Offline

Posts: 1714028126

View Profile Personal Message (Offline)

Ignore
1714028126
Reply with quote  #2

1714028126
Report to moderator
1714028126
Hero Member
*
Offline Offline

Posts: 1714028126

View Profile Personal Message (Offline)

Ignore
1714028126
Reply with quote  #2

1714028126
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714028126
Hero Member
*
Offline Offline

Posts: 1714028126

View Profile Personal Message (Offline)

Ignore
1714028126
Reply with quote  #2

1714028126
Report to moderator
1714028126
Hero Member
*
Offline Offline

Posts: 1714028126

View Profile Personal Message (Offline)

Ignore
1714028126
Reply with quote  #2

1714028126
Report to moderator
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
January 02, 2012, 09:58:18 PM
 #2

AWESOME! I'll give it a try!
BitcoinPorn
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500


Posts: 69


View Profile WWW
January 06, 2012, 07:52:07 PM
 #3

I like that this is happening, I wish I understood it all

ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
January 06, 2012, 08:33:51 PM
 #4

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!  ^_^
moocow1452
Sr. Member
****
Offline Offline

Activity: 240
Merit: 250

Don't mind me.


View Profile
January 26, 2012, 07:42:37 PM
Last edit: January 26, 2012, 08:09:55 PM by moocow1452
 #5

EDIT: http://c9.io/moocow1452/tumen_miner

Ready for action.
pandemic
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 08, 2013, 12:56:30 AM
Last edit: February 08, 2013, 02:55:21 AM by pandemic
 #6

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

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>
pandemic
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
February 10, 2013, 12:59:28 AM
 #7

no interest at all on this, eh?
Rawted
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile
February 10, 2013, 06:49:55 PM
 #8

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"
prophetx
Legendary
*
Offline Offline

Activity: 1666
Merit: 1010


he who has the gold makes the rules


View Profile WWW
May 08, 2013, 12:46:05 AM
 #9

is anyone running this?  i'd like to try it out
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!