254 points · by keraf · 9y ago · 261 comments
And what do I see here? That before it even started people are fighting it.
Found this solution better than ads and infinetely loading ad-tech JS files.
And like a sibling comment says, if this catches on, most web sites will do both, i.e. ads + client-side mining.
One nice day publishing industry will no longer be an industry but a group of non-profits, which won't have to sell stuff, and publish way more objective and high-quality stuff.
edit: grammar
I'm going to throw my solution in the ring for HN's consideration - https://Datajoy.us/fupm.html: lets make paying for content so simple that both you and the domain owner can happily set it up and let it do its thing behind the scenes as you surf the web.
Right now, it is being trialed for blogs and other top level domain content providers. First payments will be made Oct 1st.
There's no such thing as Adblock for video streams on Twitch anymore; the ads are burned into the stream, so you can't block them. (Hopefully YouTube won't switch to the same tech.)
Is that picking your pocket just for watching a video steam? If not, why is a video steam materially different from consuming a website?
Source? Adblock seems to work fine.
There are other types of consensus mechanisms, like proof-of-stake, that are much more energy efficient, with their own set of pros and cons. They should, and will, exist; but there will still always be at least one proof-of-waste blockchain. Waste is the gold-standard of expense.
The environment issue is a societal one. We need to move to clean energy, and we are.
1. PoW based on waste which has massive negative externalities is abusive. Power generation generally has large negative externalities. Bitcoin kills.
2. PoS is just another type of PoW - people will compete to earn the PoS rewards up until they are "burning" 0.99 worth of potential ETH they could have earned (with stocks or bonds for example) for every 1 ETH they earn through PoW. The difference is, PoS has nearly 0 negative externalities and is funded entirely through capital which was created out of thin air, namely, ETH. The capital required to fund BTC's PoW comes externally. So switching to PoW is a capital-creating act and naturally increases the value of the currency & network.
Any idiot can come up with the idea of competitively burning electricity to secure a source of truth. But it ignores what happens in x years time.
There is no efficiency that can ever be gained. It's a chart of value and lost energy forever extending up and to the right.
If you want to put restrictions on how your site is meant to be used, use appropriate protocol means. Like, respond with 402, or simply don't serve content until I pay you / agree to display ads / agree to run your cryptocoin miners / whatever.
Ads, and sneaky cryptocoin mining scripts, are underhand attempts at having a cake and eating it too. Because they know people don't like to pay, they choose to pretend they're free, while at the same time bleeding the visitors for small amounts of indirect money (in attention => time, or computing resources => electricity).
The onus is on the site to not serve up content if they don't trust that I'm running their code as-is at full speed. Nothing about the design of the Web says that servers should trust unauthenticated clients or that clients should prioritize the server's wishes over those of the user. Server operators have no standing to complain when a user agent ignores the server's request for the user agent to do something that is against the user's interests.
As long as someone is upfront about the whole thing, I would honestly not mind. It feels like an improvement over the current status quo.
In fact, since CPU cycles are so easy to give away, I'd probably end up doing so more readily than having to pull out my wallet and run through the hassle of registration and payment.
Every business model has trade-offs, and no model guarantees income.
Seems to me, before it even started, people started abusing it. (e.g. by just keeping it running through the whole session)
If you want to invent some acceptable method of compensation for the web, you should make sure that both sides have power to negotiate a fair price.
With ads and tracking, it seems to be all or nothing: Either unreasonably high prices (perpetual tracking and potential malware for a 5 minute article) or unreasonably low (use an adblocker and get it free)
The "proof of work" payment method seems to have the same problem.
"Figure out" how? If mining didn't eat lots of power and CPU cycles, it would be useless as proof-of-work and BitCoin couldn't exist. It is literally impossible to do useful amounts of mining in a way that doesn't slow down the mining device and drain its battery.
One use case that they have in their demo is micro payments to access web sites: https://demo.taler.net/en/
Solution is the last word to use, there is no problem first off and malware is not how you would solve this fantasy of a "problem".
They make the choice whether to serve it or not.
Or, use their site, but the end user always dictate the code that runs on their own machine. If the server don't wish for a user to skimp the mining, make them submit the proof of work result first, then serve the content.
I am, to the extent their server responds to open protocols on the public Internet. It's up to them, not me, to configure what their server sends when. This is literally how the Internet works.
If you think consuming content online without paying anything for it isn't a problem, you're wrong and it's not even debatable [1]. I'm not saying this is a good solution. I'm just pointing out it's not a "fantasy" of a problem.
Ha, I really dig the implication that people are impetuous brats for not wanting this to run on their computers. The audacity..!
https://coin-hive.com/lib/coinhive.min.js
...to their custom block-list instead, no need for an extension.Regarding the custom list for an adblocker, as said in other comments, the idea was to keep it separate from adblocking. Coin mining in the browser is a different issue. Where ads are tracking you and visually interfering with your browsing experience, coin mining, if abused, is eating your computer ressources resulting in slow downs (from high CPU usage) and excessive power consumption. You might be OK with that and not with ads, or vice versa. Or you might just want to keep ads blocked entirely and just enable the coin mining script for a minute to pass a Captcha. That's why I believe having a separate extension is useful.
Can you please share your email to make you the owner of it?
I don't think we've reached that point yet. An iPhone doesn't last a single day if you use it the whole time, it would barely last for hours mining constantly.
Though I agree this monetization tactic doesn't work on mobile
That's a huge "if"; it's my understanding that most cryptocurrencies are currently only efficient with ASICs.
How would you negotiate prices if your customers are not even aware how much they are paying?
I assumed this whole notion of browser mining as a replacement for ads was just a laugh, but maybe not. Are there coins where it can actually make a noticeable amount of money?
I wonder why CoinHive isn't using WebGL for this.
> [...] There are solutions to run the Cryptonight algorithm on a GPU instead, but the benefit is about 2x, not 10000x like for other algorithms used by Bitcoin or Ethereum. This makes Cryptonight a nice target for JavaScript and the Browser. [...] Our miner uses WebAssembly and runs with about 65% of the performance of a native Miner. [...]
On the other hand, WebGPU looks exactly like the kind of technology that would make web-based GPU-enabled bitcoin mining realistic.
If you have cheap (or free) power, it's absolutely profitable.
EDIT: I see you meant CPU mining, not mining in general. My mistake!
https://github.com/gorhill/uBlock/wiki/How-to-whitelist-a-we...
People seems allergic to browser extensions this days. I also get the "why is this an extension and not a filter?" on a non ad-related extension.
I want to know more about this. Are they seeking any kind of consent from the users, or even disclosing it to the users? If not, I have serious doubts about the legality of this behavior.
It's worth noting that this isn't exactly a new idea - some MIT students had a project a couple of years ago that was basically that, except they tried to turn it into a startup. The viability of it was questionable back then as well.
https://en.wikipedia.org/wiki/Parasitic_computing
But it's a bit strange that the same broad concept can include subtle things where the indirect result of an activity is a computation that someone else wanted you to make, along with explicit cases where someone asks your device to run a full-fledged applet and it does so (to someone else's benefit).
I'd love to explore this idea in a more reasonable, less-sketchy, opt-in way, but I'm only just getting started with crypto and I'm not sure what factors go into estimating potential costs/returns yet.
(In the thread for the original Show HN for the code behind this: https://news.ycombinator.com/item?id=15246145 )
the only thing new is known organizations trying to do it for revenues.
In terms of specifics, maybe not anything criminal (though a prosecutor could try the CFAA), but on the civil side tort law trespass theories, maybe also unjust enrichment theories, would be well worth a try for a plaintiff's lawyer.
But really, I'm thinking in terms of more abstract legal ideas that could use some caselaw development to flesh out---the notion that there's an implied license to use resources on a user's computer to an ordinary extent and for an ordinary purpose---and grabbing onto those resources for this kind of extraordinary purposes without prior notice violates that license in just the same kind of way that (eg) triggering a more conventional malware download would. If you buy that theory (and I tentatively do), then there are lots of concrete legal doctrines to hook it to.
World of Warcraft and other games (apparently Windows 10 too) have used P2P (torrent-like) patch systems in the past, where after you downloaded a content update, you also distribute it to other users. AFAIK this was opt-out rather than opt-in. I think that falls under the same category of using the users' computer for an extraordinary purpose.
chrome.webRequest.onBeforeRequest.addListener(details => {
// ...
// Is domain white listed
if (isDomainWhitelisted(domains[details.tabId])) {
return { cancel: false };
}
return { cancel: true };
}, { urls: blacklistedUrls }, ['blocking']);
It's kind of sad how much boilerplate is required to write a simple extension. I wonder if there's a framework for saving labor while building cross-compatible browser extensions. Then again, maybe the world doesn't need yet another JavaScript framework.Also when taking the problem with battery life into consideration, if the website notifies you that it does this you're free to find another website.
Some way to detect that a non-visible page or service worker is using excessive CPU time or GPU assets would be useful.
How long until porn sites start doing mining in the background?
How long have porn sites being doing mining in the background ?
Remember that porn sites are always the front line of innovation on the web, some are probably already doing it
Often stated, rarely with any actual support.
This is why we can't have nice things.
The point of proof-of-work algorithms is to be hard to compute but easy to verify.
As a simplified example, a proof-of-work might be to take some input and find a corresponding salt that leads to a sha256 with 10 leading zeros. The user works hard to find that salt (the proof-of-work) using some brute force search, but the server easily verifies that the proof is correct because checking a sha256 is easy.
So the proof is verifiable by the definition of the algorithm.
If you want the results of the mining it makes more sense to run yourself with a native miner than run on the browser.
This coinhive thing only makes sense [to run on a browser] because they're exploiting the resources (hardware and electricity) from the visitors.
They are used because the coins that are mined can be sold and the money used to pay for hosting and food.
Mining makes the battery die quicker.
They are mining to make money so they can buy food.
A silly man pays the bad man money for the tiny baby numbers they find in your phone when they mine it.
You can still watch Frozen. The battery isn't dead yet.
- A website author can include a script for their _users_ to mine coins for the website author, which effectively distributes work across many machines you don't own.
- This means, instead of mining on just your own machine, you're effectively mining across N machines (however many users you have) as long as they have your website open (at a ~60% efficiency rate according to other comments).
- This is great for the website author, as it's very little effort on their behalf for a small profit, and affects each individual user less than the whole.
Why someone would want to block coin miners:
- Mining is very CPU intensive, which can slow down the browser for users.
- Increased CPU usage can also lead to higher electricity bills
- Increased CPU usage can also lead to lower battery life
- Someone might also not want to benefit the owner of a website they're visiting, especially if it's at any cost to them (electricity bills, battery, cpu, etc)
Coin mining uses a lot of resources, which costs you electricity and responsiveness (I’d guess).
Without disclosure/client choice it could slow down someone's computer and and be portrayed as malicious ("If they can mine potentially valuable coins while I'm on the site, what else could they be doing while serving my browser content?")
It is a very early version of the extension, improvements are on their way.