News for hackers. Stuff that matters.
Re:Making a case for JavaScript, in-browser Mining by bryanlarsen on Thursday February 15, 2018 @07:22AM (#16383465)
Opting in to in-browser mining is either stupid or theft. CPU mining costs more in electricity than you get out in currency. If you pay for your own electricity, you'd be better off donating directly. If you don't pay for your own electricity, you're donating electricity from whoever is paying for that electricity. This may or may not be theft, but is definitely morally dubious.
Re:Making a case for JavaScript, in-browser Mining by piaste on Thursday February 15, 2018 @07:43AM (#16383562)
> If you pay for your own electricity, you'd be better off donating directly.

But to donate directly, you'd need a common payment service. That means registering (password and two-factor), then either transferring money to your account or authorizing it to draw from your bank account, and finally sending the payment, probably revealing a fair few bit of information about yourself to a website you may like but not necessarily trust. And every step of that process can be hacked, or have connection problems, or you may be on a different computer and need to re-login, and so on.

Paying with electricity lets you skip all that, and HN should be well aware that convenience is worth a lot of money.

In addition to that, with money you must choose how much to donate, and that is a burden on its own. (Does this blogger deserve one buck, or two? I gave two to that article last week, and this dude is almost as good, but I've decided my weekly budget is X €, and I'm almost over it, etc. etc.)

With a JS miner, you pay exactly as long as you keep the tab open, which is a pretty good proxy for how much the page is personally valuable to you.

Re:Making a case for JavaScript, in-browser Mining by minitech on Thursday February 15, 2018 @08:12AM (#16383689)
> With a JS miner, you pay exactly as long as you keep the tab open, which is a pretty good proxy for how much the page is personally valuable to you.

I don’t think it is. People open links in new tabs for later, and “later” can be quite a while.

Re:Making a case for JavaScript, in-browser Mining by philipodonnell on Thursday February 15, 2018 @09:47AM (#16384370)
I mean its not like webpages know when tabs aren't active so they can suspend mining when you're not actively reading the content, right?

And its definitely not true that browsers can actively manage the resources available to inactive tabs, right?

Just because the current set of options doesn't respect these, that is not a reason to discard the idea entirely.

Re:Making a case for JavaScript, in-browser Mining by Tade0 on Thursday February 15, 2018 @08:35AM (#16383842)
Currently browsers assign less CPU time to tabs that are open but not in focus, so any mining would probably be affected as well.

In e.g. Chrome timer events in such a tab are fired only once per second.

Re:Making a case for JavaScript, in-browser Mining by tjoff on Thursday February 15, 2018 @08:40AM (#16383869)
Not good enough, not by a long shot. Even with that feature and all browser windows are completely minimized they still take a significant amount of CPU without any mining going on.
Re:Making a case for JavaScript, in-browser Mining by Tade0 on Thursday February 15, 2018 @09:33AM (#16384239)
I have an average of 30 tabs open at all times and to be honest I don't see it. Aside from the RAM usage background tabs are dormant. Where did you get this info?
Re:Making a case for JavaScript, in-browser Mining by seba_dos1 on Thursday February 15, 2018 @02:34PM (#16386812)
I have 1300 tabs open right now and circa 50 kept loaded, and can confirm. Recent versions of Firefox do a pretty good job at this.
Re:Making a case for JavaScript, in-browser Mining by maxerickson on Thursday February 15, 2018 @08:42AM (#16383882)
For "paying with electricity" to be a reasonable description, it had better be the case that most of the cost of the electricity ends up with the site owner. That's not going to work with mining schemes where aging personal computers are the worst at it.
Re:Making a case for JavaScript, in-browser Mining by tjoff on Thursday February 15, 2018 @08:39AM (#16383860)
I literally have tabs open for months at a time. If any more than 0 of them tries to mine without me explicitly opting in I'd be furious.

There are services such as flattr and patreon that tries to fix this. It is not perfect and the horrendous javascript-infested pages today and click-bait focus doesn't exactly encourage donation.

Re:Making a case for JavaScript, in-browser Mining by philipodonnell on Thursday February 15, 2018 @09:45AM (#16384349)
> CPU mining costs more in electricity than you get out in currency.

This is a huge assumption that you are making no attempt to back up.

Without specifying what currency is being mined or the rate of earning it per kw/h you have no way of determining the relative value of those two things.

Re:Making a case for JavaScript, in-browser Mining by saint_fiasco on Thursday February 15, 2018 @07:41AM (#16383556)
Lots of people pay their own electricity but can't pay directly for online content.

Especially in the third world, people often don't have credit cards or bank accounts. When they do, transaction costs make microtransactions inefficient.

Re:Making a case for JavaScript, in-browser Mining by retrogradeorbit on Thursday February 15, 2018 @08:04AM (#16383643)
What's morally dubious is you telling me what I can and can't do with my own computer and my own electricity that I pay for. I'm a grown adult and don't need people like you calling me stupid. I've had enough of this kind of moral proselytizing, thankyou very much.