Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dnadolny
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
dnadolny
15y ago
> I don't know how JVM bytecode works, or if it's even possible to assign discontiguous ordinal values That was my first thought as well, but I double checked and the ordinal() method is final, so you're guaranteed not to get anything
2.
▲
by
dnadolny
15y ago
The .equals() still shouldn't be much of a problem. If you've got a bunch of constants like you gave, they will probably all have different hashcodes so you don't have to compare against all of them. I checked what happens when you use an e
3.
▲
by
dnadolny
15y ago
> And one that I can't get confirmation on if it's in 7 or got pushed, index-access for List and Maps I just tried it out, it didn't get added to 7. > String-in-switch (NOTE: check on performance implications of this for tight loop
4.
▲
by
dnadolny
15y ago
I disagree with recruitment not adding value. Imagine a recruiter that sent you 5 qualified candidates who were all interested in your job. You would spend a little bit of time in the interview to verify they were qualified, but mainly you
5.
▲
by
dnadolny
15y ago
It's a technicality. You always get a copy of what you pass in. When you pass a primitive, eg an int that has the value 7, you get a copy of that value 7. When you pass an object, you get a copy of the reference to that object. You unders
6.
▲
by
dnadolny
15y ago
We really think alike - the captcha idea, and the URL shortener with a miner at the top were two of my first ideas for uses of an API. I didn't think of marketing it to internet cafes/kiosks though.
7.
▲
by
dnadolny
15y ago
No need to apologize for how you feel - some people love the idea (of supporting a website with their computer power), some people hate it. As for the resource overhead of the JVM, it's infeasible to have a bitcoin miner that uses javascrip
8.
▲
by
dnadolny
15y ago
Yeah, I'd really like to use the GPU, it would be a huge speed boost. Was it lagging when you were scrolling down? I try to play nice with the CPU and run it at low priority, so it shouldn't interfere. What OS/browser/java version combo has
9.
▲
by
dnadolny
15y ago
This one isn't javascript, it's based on my browser bitcoin miner[1] which is written in Java. It's about 2000 times faster than the javascript bitcoin miner that I know of. It's around 30-40% slower than one of the optimized C CPU miners,
10.
▲
by
dnadolny
15y ago
I've made an option to add controls, which shows the current hashrate and a start/stop button. Right now it's up to the websites using it to enable that if they want to. I like the captcha idea, I've actually been planning something like th
11.
▲
by
dnadolny
15y ago
Can I ask why? The way I see it, websites with advertisements use your mind (by grabbing your attention). This only uses your computer. Which would you rather have a website try to take over?
12.
▲
Embeddable Bitcoin Miner for Websites
(bitcoinplus.com)
5 points
by
dnadolny
15y ago
|
13 comments
13.
▲
by
dnadolny
15y ago
Humor? The NSA tried to introduce an encryption chip[1] and get telecommunications providers to use it. It had a backdoor so that they could decrypt anything that used it. I vaguely remember hearing other stories where chips were made with
14.
▲
by
dnadolny
15y ago
I'm sure any embeddable bitcoin miner will be added to adblock pretty quickly, so you won't have to worry. Would it change your mind if you were given a portion of the bitcoins generated while you were on a site that was doing this?
15.
▲
by
dnadolny
15y ago
I get where you're coming from. Here's an interesting thought: consider this as an alternative to advertising. Which would you rather: a website use your mind by taking your attention to an advertisement, or a website using your CPU?
16.
▲
by
dnadolny
15y ago
Someone on the bitcoin forums[1] has a killawatt meter and measured the difference between idle and 100% CPU. We did the math and for his computer, if the cost of electricity is under 14.1 cents per kWh (and you have your computer on anyway
17.
▲
by
dnadolny
15y ago
I'm curious, is your computer usable while you're using your GPU for mining? Or do you have a 2nd graphics card dedicated to mining? I tried out GPU mining but my computer was unusable while it was running.
18.
▲
by
dnadolny
15y ago
True. I've been thinking this over for a while. Right now, the general consensus is that the price of bitcoin will end up being related to the cost of electricity for computing, and in the long run transaction fees will have to go up or dow
19.
▲
by
dnadolny
15y ago
Yes, it is slower than GPU mining. I meant this to be more of an introductory easy to use miner to get people interested without having to download anything or configure anything. So it is slower than GPU, but you can generate a usable amou
20.
▲
by
dnadolny
15y ago
That came up on the bitcoin forums ( http://forum.bitcoin.org/index.php?topic=8780.0 ). I've got plans for doing something like that - let you embed the miner in your website so your visitors mine bitcoin for you. It's a really cool idea be
21.
▲
by
dnadolny
15y ago
That's correct, you can log in to as many computers as you want, all with the same account and it will work. You could even run multiple on the same computer and it would work perfectly - but of course it wouldn't make it any faster.
22.
▲
by
dnadolny
15y ago
Yep, GPUs are much faster than CPUs for mining. A top of the line GPU does 600 MHash/sec, on my graphics card it was doing I think 3 or 4 MHash/sec but the computer was unusably slow, and with a CPU miner I get 2 MHash/sec and my computer i
23.
▲
by
dnadolny
15y ago
I've just finished a browser-based bitcoin miner, written in Java (as an applet). I'd love to get some feedback on it. Once the page loads, hit "Start generating" and it should start mining bitcoin.
24.
▲
Browser Bitcoin Miner
(bitcoinplus.com)
13 points
by
dnadolny
15y ago
|
22 comments
25.
▲
by
dnadolny
15y ago
I find it a bit funny he says you won't be able to borrow against it, but went on to refute that saying several of his friends made offers to lend him the money. Having a solid network of friends and contacts does have quantifiable effects.