Bitcoin Forum
December 08, 2016, 08:20:15 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Request for Standardization  (Read 4185 times)
ThePiachu
Sr. Member
****
Offline Offline

Activity: 442



View Profile WWW
November 10, 2011, 12:43:30 PM
 #21

A very interesting topic to follow.

@Forp:

I am looking forward to seeing the translated version.

@Gavin Andresen
I've been making slow but steady progress on my at-the-network-level testing tool. [...]

What's working:  python-based code that serializes/deserializes messages in both bitcoin's binary format (to talk to the node being tested) and JSON (so it is easy for us humans to tweak/examine test data). Connecting and requesting all blocks.

Where can I get my hands on that? I was looking for something like this for a long while.

1HWbVLhxj7bhewhyapMZpyhqWAeAhJd51E
My Bitcoin Calculator:
http://tpbitcalc.appspot.com/
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481228415
Hero Member
*
Offline Offline

Posts: 1481228415

View Profile Personal Message (Offline)

Ignore
1481228415
Reply with quote  #2

1481228415
Report to moderator
1481228415
Hero Member
*
Offline Offline

Posts: 1481228415

View Profile Personal Message (Offline)

Ignore
1481228415
Reply with quote  #2

1481228415
Report to moderator
Gavin Andresen
Legendary
*
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
November 10, 2011, 02:24:28 PM
 #22

@Gavin Andresen
I've been making slow but steady progress on my at-the-network-level testing tool. [...]

What's working:  python-based code that serializes/deserializes messages in both bitcoin's binary format (to talk to the node being tested) and JSON (so it is easy for us humans to tweak/examine test data). Connecting and requesting all blocks.

Where can I get my hands on that? I was looking for something like this for a long while.

https://github.com/gavinandresen/Bitcoin-protocol-test-harness
Start with dumpblocks.py

How often do you get the chance to work on a potentially world-changing project?
Vandroiy
Legendary
*
Offline Offline

Activity: 1036


View Profile
November 11, 2011, 04:23:15 PM
 #23

I agree fully that C++ is not a suitable language to maintain the main BTC client in. Yes, I was doing C++ programming in the past, and I see there is some kind of "coolness" in being the "advanced" hacker who juggles in the subtleties of template programming or the insanity of pointer magic, implicit type casts and the likes.

But this is totally out of place for Bitcoin. Aspect-oriented programming is the way to go here. We need contracts, and anything else that improves security and makes outcomes crystal-clear. This is not some toy project where one can just fix a bug after it became apparent, and the "security" offered in C++ is beyond outdated. Most people have probably never seen a competition on harmless-looking backdoor programming. It's just marvelous what possibilities C alone offers in terms of "oops, this pointer is going somewhere else now". Attacks on Bitcoin will be a whole different level than what anyone has faced in the past.

That said, it is a very good thing to have multiple clients. If one gets wiped out, then maybe Bitcoin survives if enough others remain (or were offline at the point of the attack).
2112
Legendary
*
Offline Offline

Activity: 1708



View Profile
November 11, 2011, 04:42:04 PM
 #24

But this is totally out of place for Bitcoin. Aspect-oriented programming is the way to go here.
Yeah, totally out of place. What Bitcoin needs is nothing less than silver-bullet-oriented programming. I mean what is the better proven stable store of value: the silver quarter minted in 1960 still buys you a gallon of gasoline. And silver is the best conductor of electricity thus assuring the success in the modern world of fast-paced e-commerce.

But seriously: CS curricula everywhere need to be extended to include mandatory satire-writing classes. It is just a requirement for a well-rounded education in computer science.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
ThePiachu
Sr. Member
****
Offline Offline

Activity: 442



View Profile WWW
November 11, 2011, 05:16:31 PM
 #25

If you have a group of devoted people that choose to maintain the code in a given language, it doesn't really matter what the language is. End-user cares only if the program is easy to install, does what it needs to and if it efficient at it (all are yes for the main client). Developers need a language that they are comfortable using, and is suitable for the job (has the right libraries, can be altered quickly in case of a bug, etc).

It is nice to see different versions of Bitcoin being written in different languages by different people, as it gives every programmer who wishes to understand the nitty-gritty details different reference material they can use, and some readily available code they can use to alter the behaviour of the client to their needs in the programming language they understand.

1HWbVLhxj7bhewhyapMZpyhqWAeAhJd51E
My Bitcoin Calculator:
http://tpbitcalc.appspot.com/
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!