Bitcoin Forum
June 15, 2024, 10:28:51 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 [140] 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 ... 205 »
2781  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 20, 2011, 09:40:14 AM
By the way, if you want a good argument to use, it's this: Mining algorithms that work most efficiently on CPUs would tremendously increase the incentive to create bot nets and use malware to mine.

The best counter-argument to that is that we're already starting to see botnets that do GPU mining. But I still think it's a downside.
2782  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 20, 2011, 09:37:36 AM
Well you may be able to do a single hash in a 'split second' but the point is to produce a function that can compute many hashes.
No. There are two cases. One is mining, the other is validating PoW. In the case of mining, yes, you have to compute many hashes. But it makes no difference how easy or hard that is. If we make it ten times harder, the difficulty will just be ten times less.

The only case where performance matters is validating PoW. That only takes a single hash.

Quote
And if the resulting function has difficulty doing 1,000 a second because it accesses and processes a large amount of RAM - then that is just plain stupidity.
Why is that stupidity? The whole point is to make the mining algorithm difficult. We currently do that by raising the difficulty number, but it's just as reasonable to simply make the algorithm itself difficult to compute. There is no inherent benefit to one method over the other.

Quote
Also don't forget that the actual process of using memory will not involve transferring it across the PCIe bus.
Unless the block size has suddenly become some totally stupid size and thus the chain takes up ridiculous amounts of disk space, the hash of a block should only require a small amount of memory transfer and then the GPU can deal with the issue of using silly expansion algorithms to generate a large amount of data to hash - though more likely someone would come up with a simplification unless it's done well - note that SC Smiley all these ideas you'll need in your paper Smiley that you can pretend are yours Smiley
The GPU can't deal with the expansion problems. The GPU may have a large number of computation units, but its memory bandwidth is only so high, and it's not optimized for the kind of random accesses the algorithm would require. The reason GPU mining works so absurdly well is because the Bitcoin mining algorithm uses so little memory.

Quote
Anyway - the bottom line is that wasting that much power on generating a single hash just to attempt (note: attempt - not guarantee) that a GPU cannot do the hash - is as I said before - stupid.
Look, if GPUs could do everything better than CPUs, why would we have CPUs?

Quote
Bottom line, as I keep saying, its a stupid idea.
You do keep repeating that, but you've yet to form anything resembling an argument. I wonder what you will you say that when some entity makes an ASIC that can mine dozens of times more efficiently than any GPU.
2783  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 20, 2011, 07:09:54 AM
And yes your excess memory use ideas are still silly in that regard Smiley
How so?
Quote
(I'm still sure you're just messing with him to make him use these ideas ... but hey if you are serious ... that's a worry Tongue)
These are quite sound ideas. If you know something wrong with them, do tell.

A CPU can trivially use 128MB for a split-second to validate a block header. Trying to do that on a GPU would slow you down to a crawl -- it doesn't parallelize well because the GPU doesn't have as many memory paths as it has execution units.

There is really nothing complicated about making a mining algorithm that works much better on a CPU than a GPU. After all, the algorithm -- so long as it is concatenated into a hash -- can be anything at all so long as it's deterministic. If all deterministic computing tasks could be done better on GPUs than CPUs, we wouldn't have any CPUs.

2784  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 18, 2011, 03:02:54 AM
I just realised that + was defined as concatenation. Can't think of an attack on this one using cryptanalysis. Now the only attacks I can think of right now would be on the specific 'MESS' algorithm's implementation to speed it up.
My point is that this is trivial to get right. It is not even not impossible (as has been suggested in this thread), it is not even challenging. To anyone familiar with the details, it is immediately obvious that one could do this. (And it is trivial to prove that any attack on the composition function would also equally be an attack on the underlying hash function.)

The tricky part is designing the 'MESS' so that it has the characteristics you want. As you pointed out, if someone finds a trivial way to accelerate the 'MESS', the whole effort gains you nothing. It is almost trivial to do this passably, you can just take 'scrypt'. But it is very challenging to do this well. (And, in fact, it can backfire if someone finds a way to, say, implement the 'MESS' 1,000 times faster than anyone else can and they can keep that method secret.)
2785  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 17, 2011, 04:55:36 PM
LOL - OK I understand now - your messing with him so that he does this stupid idea and slows down his 'solidcoind' to a piece of crap.
Well, it doesn't matter how long it takes to perform the mining operation for a miner. If the operation takes ten times as long, the difficulty will just be one-tenth. However, it does mean that it will take each client a bit longer to verify that the proof of work is valid.

Fortunately, you could make that verification about 1,000 times more expensive than it is now without a problem. And remember, it's typically the CPU that has to verify the PoW, and we're talking about algorithms CPUs can do efficiently anway. Theoretically, it could even be possible to make it easier to verify on a CPU than Bitcoin is, but that would be hard.

Quote
I thought you were being serious.

You did realise that he had no idea before you answered the question for him right? Cheesy
I'm being serious that these are all things that can be done and might even be improvements over the way Bitcoin does things. However, I'm quite doubtful that he's actually done these things or gotten them right. I too will believe it when I see it. (I also see little point in a new currency with fees if it brings nothing significant to the table.)
2786  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 17, 2011, 03:16:13 PM
Quote
As I said, it is not difficult to design a hash function that runs very, very poorly on GPU. You simply use the operations that CPUs do well (make decisions, access large amounts of memory) and avoid the operations GPUs do well (long chains of pure computation on small amounts of data with no decisions).
On the contrary, common hashes are specifically designed to be usefull in constrained environnements (embedded systems, network cards, ...), so they avoid branches, large amounts of memory, using too much registers. So you'd have to find an obscure one that may or may not be secure or design your own hashing algorithm to circumvent this. And this (design) is what is hard. As CoinHunter doesn't have a spec, we can only guess about his abilities (in one of the most difficult field there is).
It's trivial. You simply have some complex obscure function that may or may not be secure and then you combine it using a secure hashing function like SHA-256.

For example, where Bitcoin does SHA(SHA(header)) you can simply do SHA(SHA(header)+MESS(header)) where 'MESS' is some operation that takes lots of memory and lots of decisions. (Here + is concatenation.) The security properties of the SHA-256 hash are provably still preserved by this change -- that is, you couldn't design an algorithm for 'MESS' that made this any weaker than SHA(SHA(header)) even if you specifically tried to.
2787  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 17, 2011, 02:23:57 PM
Not sure why I need to explain this but anyway ...
I will add the obvious in context comment: a hash algorithm is so extremely likely to be able to be implemented at least an order of magnitude faster in GPU that it's pointless making the statement without a specific example of why it cannot be done.
I already explained this. Simply take something that a CPU does better than a GPU (for example, accessing large amounts of memory) and put it at the center of your hashing algorithm.

Quote
The order of magnitude faster is because of the massively parallel possibility since each hash is unrelated to the other and can run almost completely independently.
Except the memory access is not independent. Alternatively, you simply include large numbers of decisions in the hashing algorithm, which slows GPUs down.

Quote
A single hash is slower in a GPU than in a CPU, but when you can run 128 (or more) of them at the same time ... unless the CPU is 128 (or more) times faster at doing a single hash than a GPU then of course the GPU will be faster.
You simply use a hashing algorithm that won't parallellize effectively. For example, if the hashing algorithms "expands" the block header up to 128MB before it compresses it down to the 256-bit output, trying to run 128 of these at once on a GPU will just massively bottleneck at the memory controller.

If you use a hashing operation that consists of an expand/mix/compress mechanism in such a way that the 'expand' and 'hash' steps need to access a large amount of memory (say, 128MB) and the 'mix' step requires lots of decisions (say, testing bits to decide which entries in the 128MB expanded table to XOR or swap), GPUs will absolutely suck at the hashing operation.

Quote
In the case of doing a repeated hash - the point is that you are doing a reasonably straight forward list of commands to a set of data and spitting out the result - which is not like writing a complete program to do all sorts of different things to achieve it's result.
Much time is spent on getting that one function (hash) correct and fast - also very unlike normal coding.
As I said, it is not difficult to design a hash function that runs very, very poorly on a GPU. You simply use the operations that CPUs do well (make decisions, access large amounts of memory) and avoid the operations GPUs do well (long chains of pure computation on small amounts of data with no decisions).

A hashing algorithm can do anything at all, so long as it's deterministic. You could, for example, do a standard SHA-256 and then also do something massive and crazy (but totally unlike SHA-256), XOR the result of that massive, crazy thing with the SHA-256 result, and still preserve all of the cryptographic properties of the hash. It is not difficult to make that massive, crazy part something GPUs do poorly.
2788  Alternate cryptocurrencies / Altcoin Discussion / Re: SolidCoin v2.0 features new hashing algorithm, faster on CPUs on: September 17, 2011, 12:29:34 PM
If GPUs were better than CPUs at every possible algorithm, why would we have CPUs at all? Of course there are algorithms that CPUs are better than GPUs at. If you used such an algorithm to generate the hashes that have to meet the difficulty target, CPUs would be better miners than GPUs.
2789  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 16, 2011, 12:18:26 AM
I'm not clear how suggesting that exerting downward pressure on automobile accidents analogizes with your statement that perhaps we want *more* pollution. I thought that wanting *more* pollution analogized with wanting *more* automobile accidents.
I'm saying that if we think we want less pollution, and respond by exerting downward pressure on the amount of pollution, we may wind up with an amount of pollution that's inefficiently low.

Quote
For the record, I think most people would agree that we want *less* pollution and *less* accidents, and solutions that will improve those ratios of good to bad.
I agree. That's because most people don't understand the issues. They just assume that we'd be better off with less of bad things without thinking that a bit less of bad things may mean much less of good things. There is a tendency to assume that bad consequences are inherently inefficient, but that reasoning is bogus. In fact, that reasoning may be so bogus that the level of bad things we have is already inefficiently low.

For example, many people are worried that they might die in a plane accident. But if they responded by putting downward pressure on their chances of dying in a plane accident, they would most likely wind up increasing their chances of dying in a car accident or irrationally forgoing opportunities for business or pleasure travel. While plane accidents are certainly bad, there's no reason to think they're inefficiently bad. If the government, for example, put downward pressure on plane accidents, it would likely result in higher ticket prices, which would actually kill more people in car accidents.

You can't say "that's bad, put pressure to reduce it". You need to say "that's *inefficiently* bad".
2790  Bitcoin / Development & Technical Discussion / Re: Is something wrong with the blockchain on: September 16, 2011, 12:12:47 AM
There is a hardcoded limit implemented right now, 2 hours. So what would be the difference between 2 hours and 1 minute?
The difference would be that the probability of inadvertently entering a situation where large parts of the network disagree over a block's validity would be much, much lower.

Quote
Well, there is some bleeding edge new technology called NTP. Oops, we have this since well before '85. http://en.wikipedia.org/wiki/Network_Time_Protocol  But of course using NTP would force us to have some online connection (aka internet) maybe once a day to correct the time drift of the built-in real time clock. Wait, Bitcoin needs an online connection anyway, so the legitimate is why does Bitcoin not use NTP?
Nothing prevents people from using NTP to mine blocks with accurate timestamps. If the question is why Bitcoin doesn't force people to provide more accurate timestamps it's because there's no technical requirement for them and it increases the risk of inadvertently entering a situation where large parts of the network disagree over a block's validity.
2791  Bitcoin / Development & Technical Discussion / Re: Question about move() command on: September 16, 2011, 12:08:21 AM
Figured that accounts are only used for some sort of summaries.

Let's say I have two accounts in my wallet:
- acc1 with addr1 holding 5btc
- acc2 with addr2 holding 10btc

When I do a move(acc2, acc1, 1), then 1btc should wander from acc2 into acc1.
Right, which just requires changing the "5" to a "6" and the "10" to a "9".

Quote
But how is this handled address-wise? The moved bitcoin needs to be removed from addr2 and added either to addr1 or to a new address which gets assigned to acc1.
No, it doesn't. You've moved it from one account to another, not from one address to another.

Quote
So either:
- acc1 with addr1 holding 6btc
- acc2 with addr2 holding 9btc

or
- acc1 with addr1 holding 5btc and addr3 holding 1btc
- acc2 with addr2 holding 9btc
The fact that addr1 is associated with acc1 means *ONLY* that newly-received coins sent to addr1 are credited to acc1. If a new address needed to be created, there would be no reason to associate it with acc1 specifically and in fact it would be associated with the default account.
2792  Bitcoin / Development & Technical Discussion / Re: Is something wrong with the blockchain on: September 15, 2011, 11:10:54 AM
If the protocol demanded strictly-increasing timestamps, what should you do if a block shows up whose timestamp is one minute ahead of what you think the time is? Should you stop mining for a minute? Should you mine blocks with a timestamp you believe is wrong?

Because it is important that the network as a whole agree on whether a block is valid, it doesn't make sense to insist on monotonically increasing timestamps.
2793  Bitcoin / Development & Technical Discussion / Re: Question about move() command on: September 15, 2011, 11:09:24 AM
Addresses are assigned to accounts only to determine which account's balance to increase if new coins arrive. Any coins you hold belong to your wallet. Account balances are purely for user convenience.
2794  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 15, 2011, 11:07:51 AM
The optimum amount of pollution is not zero. (If it was, we couldn't cook food or breathe.) Unless you have evidence that the present level of pollution is above the optimum level, it is entirely possible that what we actually want is *more* pollution.
That's like saying you want more automobile accidents because you want more people driving. You may accept a higher incident rate of accidents to realize more people driving, but that does not mean you don't want to strive towards maximizing the ratio of people driving to automobile accidents.
No, but it does mean that if you apply external downward pressure on automobile accidents, you may just increase the amount of efficient driving that's suppressed.
2795  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 15, 2011, 06:28:50 AM
Tax what we want less of. Apply a zero tax, or even a negative tax to what is better. Think creatively. What do we want less of? Pollution, destruction of the environment, excessive consumerism of wasteful products, hunger. What do we want more of? Efficient solutions, not efficient exploitation. That's the problem with capitalism today - it encourages efficient exploitation, not necessarily efficient solutions for the consumer.
The optimum amount of pollution is not zero. (If it was, we couldn't cook food or breathe.) Unless you have evidence that the present level of pollution is above the optimum level, it is entirely possible that what we actually want is *more* pollution.

Using taxes to engineer society in this way requires a government that can make these decisions rationally. I have little hope that such a thing is likely to ever exist.
2796  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 14, 2011, 07:09:30 AM
I said in theory. Until I see an actual working free market solution I'm certainly not objecting to pollution taxes.
That's more or less the way I feel. I know all the problems with pollution taxes, but I don't know of any better way.

That's actually the general way I feel about Libertarianism overall. I can't see my way all the way through to a perfect Libertarian utopia, and such a thing probably doesn't exist. But I can certainly see a lot of ways we can make things a lot better than they are, and maybe we will figure out the rest once we get closer. (Maybe not, but as long as things keep getting better, I won't complain about the fact things aren't yet perfect.)
2797  Other / Beginners & Help / Re: hasherspersec = 0? on: September 07, 2011, 06:31:52 PM
The 'bitcoind' program itself is doing zero hashes per second. The 'accepted 16' count indicates the number of shares that were accepted. If you're solo mining, accepted shares are worthless. If you're mining in a pool, accepted shares are what earn you payouts.
2798  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 06, 2011, 10:45:27 PM
There is a huge incentive for those who have invested massive emotional capital in libertarianism - to subvert the science as widespread acceptance of the science tends to destroy libertarianism - why? because the libertarians have nailed their ideas to the mast of denialism.
But that's because they see denialism as a way to prevent massive increases in government power. If there was no threat of a coercive government response to global warming, why would Libertarians particularly care one way or the other?
2799  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 06, 2011, 10:43:58 PM
There's a huge incentive to distort the science when universal acceptance of global warming means a coercive government will place onerous restrictions on people. There is no incentive to distort the science when universal acceptance of global warming does not mean widespread economy-killing coercion.

So, on the "head in the sand" front, a Libertarian society would have huge advantages over ones like ours.
The problem with this is that a more libertarian society would have the denial crowd spreading bigger lies: there's nothing to prevent a polluting industry from paying people for fabrications. There is an incentive to lie because even in an environment without class action lawsuits, industries would still need to maintain a public image.

Besides, simple facts of human nature like negative externalities and the tragedy of the commons mean that while this evil "coercion" would not exist, nor would any other force to prevent global catastrophe.
I don't follow the argument. Yes, I agree that some of the motivations would exist even in a Libertarian society. But certainly some of the biggest motivations (the fear of a massive, coercive, economy-killing government response) would not. So I don't see why you think it would be "bigger lies".
2800  Other / Politics & Society / Re: Seriously, though, how would a libertarian society address global warming? on: September 06, 2011, 09:31:06 PM
Thanks for your completely theoretical speculation.
If you think there's something wrong with it, please feel free to say so. But "That's what you think" just isn't constructive.
Pages: « 1 ... 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 [140] 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 ... 205 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!