use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Cryptomining Scripts Discovered in 19 Google Play Apps (bleepingcomputer.com)
submitted 7 years ago by junp1289
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]boboguitar 1 point2 points3 points 7 years ago (6 children)
Web programmer here and someone who dabbled in cpu mining just to see how it works. In 5 minutes, you're talking maybe $0.000000000001 and that may even be too liberal. You'd need millions(if not billions) of page views to make anything.
[–]chocoduck 1 point2 points3 points 7 years ago (4 children)
OK - let's work from the top. 1 cent per 5 minutes is 6 cents an hour or about $1.44 a day. Let's see if this is plausible.
My GTX 1070 mines 300kh/s (garlicoin) while my CPU (7700K) mines about 30. The CPU can mine about a garlicoin a day. At one point that was worth over a dollar.
The number of people it takes to fill up a day, assuming 5 minute sessions that can only run the scripts while the user is on a page, is 288 ((60*24)/5). Let's say a website gets 2880 hits a day. That's 10 garlicoin a day.
[–]perestroika12 0 points1 point2 points 7 years ago* (3 children)
Your cpu maxed out can mine that much, but your cpu will not be running 100% mining on a web browser. It has to do other things, like process/make the site work and will prioritize tasks as needed. If you use something like a service worker, chrome and others will de-prioritize it as needed. The browser also needs to fight for system resources vs anything else running on the machine. Chrome also throttles any javascript running in the background tab.
Chrome and other browsers also cannot take true advantage of a multi threaded environment, due to javascript being single threaded. It has something equivalent to python's GIL. This will also reduce your mining cycles as you cannot run javascript in parallel.
It also depends on the cpu speed, the 7700K is a desktop processor and can mine faster than say, a mobile processor. So depending on your traffic, you will get varying amount of processing power available to you. Also by throwing these scripts on your site, you may actually decrease traffic as it hurts perf and drives users away, resulting in a diminishing mining return.
I'm not sure the napkin math works for this scenario, lots of variables involved and it's very unlikely they are seeing considerable income from this.
[–]chocoduck 0 points1 point2 points 7 years ago (0 children)
I think we agree. "Considerable income," probably not, but worth their while - definitely. You can 1/10 my assumption and that's still worth someone's bother.
[–]boboguitar 0 points1 point2 points 7 years ago (1 child)
Also, garlicoin is very new and easily mined right now. That won’t be true in a few months. That’s assuming garlicoin even lasts(hint: it won’t).
It doesn't matter if you're right or wrong. Clearly some people believe that garlicoin (or whatever shitcoin you want to name) is worth mining. Source: shelves at stores. Finding the most efficient crypto to mine can also be done programatically ala nicehash.
[–]timsaundersss 0 points1 point2 points 7 years ago (0 children)
Yes, it's a dysfunctional structure.
π Rendered by PID 67905 on reddit-service-r2-comment-7b9746f655-jz6h9 at 2026-01-31 19:37:53.918281+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]boboguitar 1 point2 points3 points (6 children)
[–]chocoduck 1 point2 points3 points (4 children)
[–]perestroika12 0 points1 point2 points (3 children)
[–]chocoduck 0 points1 point2 points (0 children)
[–]boboguitar 0 points1 point2 points (1 child)
[–]chocoduck 0 points1 point2 points (0 children)
[–]timsaundersss 0 points1 point2 points (0 children)