<span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Sorry for the duplication Amir, I meant to send this to everyone:</span><div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">BitTorrent might be an example to look to here. It&#39;s a peer-to-peer network that has undergone many significant protocol upgrades over the years while maintaining compatibility. More recent clients have had the ability to expose the capabilities of connected peers and modify behavior accordingly, and overall it has worked very well.<div>
<br></div><div>Capability-based systems do work, and provide an excellent means of trying out new algorithms, adding new features for upgraded clients, and when necessary reverting protocol changes (by depreciating or removing extensions).</div>
<div><br></div><div>The problem with OpenGL was and continues to be that the two superpowers of that industry develop and maintain competing proposals for similar functionality, which are thrust upon developers which must support both if they want access to the latest and greatest features, until such time that the ARB arbitrarily choses one to standardize upon (in the process creating yet another extension of the form ARB_* that may be different and must be explicitly supported by developers).</div>
<div><br></div><div>I think the BitTorrent example shows that a loosely organized, open-source community *can* maintain a capability-based extension system without falling into capability-hell.</div><div><br></div><div>Mark</div>
</span><br><div class="gmail_quote">On Sun, Jun 17, 2012 at 9:30 AM, Amir Taaki <span dir="ltr">&lt;<a href="mailto:zgenjix@yahoo.com" target="_blank">zgenjix@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As the only person to have created and maintaining a full reimplementation of the Bitcoin protocol/standard, I do think Bitcoin is filled with arbitrary endianness and magic numbers. However it is a tiny and simple protocol.<br>

<br>
The big problem is not implementing the Bitcoin protocol, but the fact that once you have created a codebase, you want to perfect and fine-tune the design. During the meantime, the Bitcoin protocol is being changed. Change to the Bitcoin protocol is far more damaging to people that want to implement the protocol than any issues with the current protocol.<br>

<br>
That&#39;s not to say, I disagree with changes to the protocol. I think changes should be a lot more conservative and have a longer time frame than they do currently. Usually changes suddenly get added to the Satoshi client and I notice them in the commit log or announcements. Then it&#39;s like &quot;oh I have to add this&quot; and I spend a week working to implement the change without proper consideration or reflection which ends up with me having to compromise on design choices. That is to remain compatible with the protocol.<br>

<br>
However it is not my intent to slow down progress so I usually try to hedge against that kind of feeling towards conservatism.<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: Jeff Garzik &lt;<a href="mailto:jgarzik@exmulti.com">jgarzik@exmulti.com</a>&gt;<br>
To: Wladimir &lt;<a href="mailto:laanwj@gmail.com">laanwj@gmail.com</a>&gt;<br>
Cc: <a href="mailto:bitcoin-development@lists.sourceforge.net">bitcoin-development@lists.sourceforge.net</a><br>
Sent: Sunday, June 17, 2012 5:19 PM<br>
Subject: Re: [Bitcoin-development] Proposed new P2P command and response: getcmds, cmdlist<br>
<br>
On Sat, Jun 16, 2012 at 4:42 AM, Wladimir &lt;<a href="mailto:laanwj@gmail.com">laanwj@gmail.com</a>&gt; wrote:<br>
&gt; Which is a perfectly reasonable requirement. However, one could simply<br>
&gt; standardize what a &#39;thin client&#39; and what a &#39;thick client&#39; does and offers<br>
&gt; (at a certain version level), without having to explicitly enumerate<br>
&gt; everything over the protocol.<br>
&gt;<br>
&gt; This also makes it easier to deprecate (lack of) certain features later on.<br>
&gt; You can simply drop support for protocol versions before a certain number<br>
&gt; (which has happened before). With the extension system this is much harder,<br>
&gt; which likely means you keep certain workarounds forever.<br>
&gt;<br>
&gt; Letting the node know of each others capabilities at connection time helps<br>
&gt; somewhat. It&#39;d allow refusing clients that do not implement a certain<br>
&gt; feature. Then again, to me it&#39;s unclear what this wins compared to<br>
&gt; incremental protocol versions with clear requirements.<br>
&gt;<br>
&gt; I&#39;m just afraid that the currently simple P2P protocol will turn into a zoo<br>
&gt; of complicated (and potentially buggy/insecure) interactions.<br>
<br>
What is missing here is some perspective on the current situation.  It<br>
is -very- easy to make a protocol change and bump PROTOCOL_VERSION in<br>
the Satoshi client.<br>
<br>
But for anyone maintaining a non-Satoshi codebase, the P2P protocol is<br>
already filled with all sorts of magic numbers, arbitrarily versioned<br>
binary data structures..  already an unfriendly zoo of complicated and<br>
potentially buggy interactions.  There is scant, incomplete<br>
documentation on the wiki -- the Satoshi source code is really the<br>
only true reference.<br>
<br>
I see these problems personally, trying to keep ArtForz&#39; half-a-node<br>
running on mainnet (distributed as &#39;blkmond&#39; with pushpool).<br>
<br>
In an era of HTTP and JSON, NFS and iSCSI, bitcoin&#39;s P2P protocol is<br>
woefully backwards, fragile, limited and inflexible when it comes to<br>
parameter/extension exchange and negotiation.  Even iSCSI, that which<br>
is implemented on hard drive firmware, has the ability to exchange<br>
key=value  parameters between local and remote sides of the RPC<br>
connection.<br>
<br>
Calling the current P2P protocol &quot;simple&quot; belies all the<br>
implementation details you absolutely -must- get right, to run on<br>
mainnet today.  Satoshi client devs almost never see the fragility and<br>
complexity inherent in the current legacy codebase, built up over<br>
time.<br>
<br>
--<br>
Jeff Garzik<br>
exMULTI, Inc.<br>
<a href="mailto:jgarzik@exmulti.com">jgarzik@exmulti.com</a><br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today&#39;s security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today&#39;s security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
</blockquote></div><br></div>