Bitcoin Forum
May 26, 2024, 06:35:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ... 137 »
241  Bitcoin / Bitcoin Discussion / Re: WARNING! Bitcoin will soon block small transaction outputs on: June 24, 2013, 07:34:04 PM
for the medium term, there are plans for distinguishing between archive nodes (those that store the full chain) and validating nodes (pruned).

Could transaction format be changed to transmit less data? Here is one of raw transactions from Testnet:

Code:
{
  "hash": "f6c78bb23d47d129d24bf0774894e986e71ba73dd63f82419d9d537daa50c3a0",
  "in": [
    {
      "prev_out": {
        "hash": "78d193036ee2815ae40265a486a859bb334b1853590da967f6ae8d64ca73f1a0",
        "n": 0
      },
      "raw_scriptSig": "48304502207cdc4498097bab7efe2bb4db449b3fbd075b4d4bb8730bade12aad604b58...",
      "sequence": 4294967295
    }
  ],
  "lock_time": 0,
  "out": [
    {
      "raw_scriptPubKey": "76a9148a84d1a0202fd4b77f9d0a84054e353f2732792a88ac",
      "value": "48.99000000"
    },
    {
      "raw_scriptPubKey": "76a9147abf72ef083647cd2cb792c9435ce854bee00aee88ac",
      "value": "1.00000000"
    }
  ],
  "size": 192,
  "ver": 1,
  "vin_sz": 1,
  "vout_sz": 2
}

I don't know what is "live" format for transactions Bitcoin clients receive and send, but if all data above is sent than I see a room for reduction.
its all the data above, but packed in a binary format.

the proposal is not to reduce a single transactions size. But let nodes choose which transactions which they want to receive, thus reducing bandwidth.
242  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 13, 2013, 01:03:15 PM
If code is less readable, you're wrong.
It's as simple as that.
i.e. for the very same reason you oppose goto, goto is good in some situations.
yes, but not in C++, because C++ sucks.
243  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 13, 2013, 10:28:35 AM
And a Jump table is what?

It is not part of the C++ language (so not relevant to this discussion).

Understand that the main evil in coding goto is the possibility of it leading to undefined behavior which does not have to be reported by the compiler (same as something like a[ i ] = i++; which compilers are not likely to give you any warning about).


I don't think this problem is specific to C++ complier.
to explain the problem with pseudo c++ code(pseudo code with c syntax, gotos and exceptions. as i can't code C++, but hate it on principal):
Code:
try {
  goto out;
} catch exception {
 print("am im getting printed or not?");
} finally {
 print("okay, does i get printed too then?")
}
out:
throw exception;
244  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 13, 2013, 08:18:00 AM
I'm a novice at C++

Why use goto instead of a throw for error handling?
to take *advantage* of undefined behavior.
245  Other / Off-topic / Re: The Official "First Word that Comes to Mind" Thread on: June 12, 2013, 06:45:56 PM
Combobreaker!
246  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 12, 2013, 06:17:27 PM
Isn't this open source? anybody can rewrite the code in any language that they want.
... but the satoshi client is still official community approved and most well tested client, so nobody gonna use it unless rewrite is very good, or suits there specific needs.
247  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 12, 2013, 06:01:10 PM
+1 CIYAM. To add to your good and explanative post, we could add that the main *good* usage of goto in C is for error handling, or to rephrase : to compensate for the lack of ... exceptions. Exception handling being provided by C++, there's no good reason to use gotos in C++ anymore.
gotoes are directly dangerous in C++.
248  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 11, 2013, 07:52:17 PM
A lot of the more recent changes to C++ have been to make things *easier* (such as the new use of "auto") as well as to improve its *functional programming* limitations and other general improvements (such as no longer requiring a space between two '>' characters in order to avoid being confused with the '>>' operator).

The major *problem* it has was that unlike more modern languages it wasn't designed to do some of the things that it was later found to be able to do (some admittedly much worse than can be done in other languages) and so has had to *evolve* (and this evolution has been slow).

That evolution is still ongoing but I certainly understand that it is not appealing to many - if "beauty" is in the eye of the beholder then I can appreciate that C++ is the kind of language you would have had to have had quite a few beers before thinking of it as anything more than comely. Smiley

You assume evolution makes 'good' choices. Your assumption is wrong.

C++ sucks.
249  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 11, 2013, 09:16:08 AM
I will simply say that I did manage to build CIYAM which is a web application generating platform using C++ and using *no other framework* nor back-end scripting language.
Okay, you managed to use C++ to make a application. Good for you.

So even if it does suck - it has enough going right with it to be able to do that much at least. Smiley
Did you know that brainfuck can print the mandlebrot factal in ascii art?

Just because you *can* code in it, does not make it good.

Languages are tools and as such are really only as bad as the hands of those who lack the skill to use them correctly (yes - most people do not have the patience to learn a language as difficult as C++ and I would probably not advise anyone to do so if they don't want to spend many years learning).
Languages does not need to be complicated to be efficient, C++ is way to complicated(and yet i understand it!). Bjarne Stroustrup did it wrong, by taking a good and uncomplicated language(C), and fucked it up(C++). if he had designed it from the bottom, it would have been much better. C and classes does not mix well. but you can still do OOP in C, the whole linux vfs is OO C code.
250  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 11, 2013, 08:32:02 AM
Of course you are aware that C++ *does* functional programming,

nope, it does not. can C++ generate complex functions at runtime, with only a little programming(compiling code/assembly/implementing brainfuck and then use it is cheating).

you cannot easily compose one function from another 2 functions in C++.

along with procedural, object oriented, generic

Well thats one is true, but which language doesn't?

Quote
and let's not forget template meta programming (and actually the *last* one of these is the big *way forward* which basically *no other* language can do).
nope that sucks too, because C++ generally sucks. Haskell does some of the same at compile time, because of its lazy evaluation and referential transparency. C++ sucks big time at this.
251  Other / Off-topic / Re: The Official "First Word that Comes to Mind" Thread on: June 10, 2013, 06:13:38 PM
thats not a word.
252  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 10, 2013, 05:55:51 PM
a) C++ generally sucks.
c) C++ generally sucks.
anti c++ circlejerk thread?
C++ generally sucks if you never had the time or intelligence to learn OOP.
no, C++ generally sucks.

I can code OO, but it sucks big time when you don't have a interpreter or duck typing. (python ftw!)

and of course functional programming is the way forward, not OOP.
253  Other / Politics & Society / Re: Whats the differennce between a patriot and a terrorist? on: June 09, 2013, 08:58:07 PM
Does the tinfoil hat thing still work?
tin foil hats are proven ineffective or even directly harmful to the privacy of your mind.

http://web.archive.org/web/*/http://berkeley.intel-research.net/arahimi/helmet/

(OMFG, NSA took it of the net. fuck fuck fuck!)


On topic:
Depends on your position, but my patriots have yet to fly planes into buildings.
254  Other / Politics & Society / Re: We do live in an anarchist society on: June 09, 2013, 08:51:41 PM
why 18?
255  Bitcoin / Development & Technical Discussion / Re: Bitcoin source code is a giant mess on: June 09, 2013, 07:16:10 PM
a) C++ generally sucks.
b) goto err, the best way to handle errors in C, they are better than nested if/else and breaks.
c) C++ generally sucks.
256  Economy / Speculation / Re: The only way to not lose money is by selling now on: June 09, 2013, 06:47:30 PM
Good prophet you are, do you have crystal balls and stuff?

(you didn't even bother to make funny colored charts...)
257  Other / Off-topic / Re: Is it time to get rid of Linux/JavaScript/Python kids? on: June 07, 2013, 02:49:01 PM
No. It doesn't. It offends you. Speech in public has no bearing on your actions, save what you make of it. Thoughts are not evil in themselves, and the transmission of them is how people are naturally equipped to interact. Aggression is ACTION, not speech.
So you are classifying speech/communication as inaction then?

So yelling "allahu akbar" like a crazy in a crowed train station, and thereby cursing panic, is inaction? Cool, good to know!

Yelling "allahu akbar", is fine. Acting crazy and appearing dangerous is not.
are you telling me how to act? are you limiting my actions?

may i not dress up in a jacket filled with red sausages, and open it while yelling that i love god in a foreign language in a crowed train station?
That does sound dangerous though. In some countries this is called public disturbance. Anything that falls into this category isn't acceptable in these kind of countries.
yes, but we are talking NAP without a state here.
258  Other / Off-topic / Re: Is it time to get rid of Linux/JavaScript/Python kids? on: June 07, 2013, 02:44:24 PM
No. It doesn't. It offends you. Speech in public has no bearing on your actions, save what you make of it. Thoughts are not evil in themselves, and the transmission of them is how people are naturally equipped to interact. Aggression is ACTION, not speech.
So you are classifying speech/communication as inaction then?

So yelling "allahu akbar" like a crazy in a crowed train station, and thereby cursing panic, is inaction? Cool, good to know!

Yelling "allahu akbar", is fine. Acting crazy and appearing dangerous is not.
are you telling me how to act? are you limiting my actions?

may i not dress up in a jacket filled with red sausages, and open it while yelling that i love god in a foreign language in a crowed train station?
259  Other / Off-topic / Re: Is it time to get rid of Linux/JavaScript/Python kids? on: June 07, 2013, 01:58:24 PM
No. It doesn't. It offends you. Speech in public has no bearing on your actions, save what you make of it. Thoughts are not evil in themselves, and the transmission of them is how people are naturally equipped to interact. Aggression is ACTION, not speech.
So you are classifying speech/communication as inaction then?

So yelling "allahu akbar" like a crazy in a crowed train station, and thereby cursing panic, is inaction? Cool, good to know!
260  Other / Off-topic / Re: Is it time to get rid of Linux/JavaScript/Python kids? on: June 07, 2013, 10:54:40 AM
Just curious, do you two really consider me to be the dickwad, here?
i do.
Not that I care, but why?
I don't see what makes him a dickwad
(I didn't go through all the pages though)
a) his reply(it hurts me very deeply Cry)
If I thought you were capable of feeling emotions, I might believe you.
Great! now you don't even understand what lack of emphaty means.
You just getting stupider and stupider...

b) he can't see that NAP is inconsistent, and refuses to accept that a state can be a good choice. Explaining it with his "fact" about states, with that it kills people who chooses not to behave in a certain way, and then failing to see that the NAP does the same.
The difference being that a State kills people who have done no harm to others, and a NAP-respecting person only kills people in defense.
when they don't behave in a certain way, yes?

No. when they DO behave in a certain way. As in aggression against me. If it's you or it's me, it's you. OTOH, if you leave me alone or respect my self, space and property, I'll never deliberately give you offense.

Now contrast that to the state which will cage you and/or kill you simply over some words on a page written by somebody with no ideas that didn't come from "above" and who fears change and loves power.
if it offends me, that you say that i can't commit an aggression against you, you have commited an aggression against me.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ... 137 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!