Re: HTTP/2 Header Encoding Status Update

James M Snell <jasnell@gmail.com> Mon, 04 March 2013 00:08 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6E8921F88C1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 3 Mar 2013 16:08:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.999
X-Spam-Level:
X-Spam-Status: No, score=-7.999 tagged_above=-999 required=5 tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z78Y7zL8BXuY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 3 Mar 2013 16:08:09 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4452521F8899 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 3 Mar 2013 16:08:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UCIcz-00017k-Vb for ietf-http-wg-dist@listhub.w3.org; Sun, 03 Mar 2013 23:47:38 +0000
Resent-Date: Sun, 03 Mar 2013 23:47:37 +0000
Resent-Message-Id: <E1UCIcz-00017k-Vb@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UCIcp-00016v-3N for ietf-http-wg@listhub.w3.org; Sun, 03 Mar 2013 23:47:27 +0000
Received: from mail-ob0-f172.google.com ([209.85.214.172]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UCIcn-0004fM-BF for ietf-http-wg@w3.org; Sun, 03 Mar 2013 23:47:27 +0000
Received: by mail-ob0-f172.google.com with SMTP id tb18so1581351obb.3 for <ietf-http-wg@w3.org>; Sun, 03 Mar 2013 15:46:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=L5W/vwKHTraQqeaFvsJwZhitse2PFAsV24AxTo0Ritw=; b=sUdtmevg6NcYoC7m13xqNfDu2pBzPYqudOB8STYv1e2JCx5yGWujQhzwyzBTuviSv1 7TmdxOTFTFfrtOzXmiC4JukvEwkOEIjzSNNWO8oHz4HbCX7dWCvkboG5uT8jNxTrBcf9 ebmrLlTvEGovNwSnRXHoSjchGkf20l4IpwgFmQETFO6ujLswTzlhHYXAxL9dDv7qi5hw wKZFBOMBfX5ua7WdBTxt8YxKWW4Q9+LYoI9XoM1s0xJTyKff5SFkOEqe5NchLwee7F3e E2LKgCEz1/+SqmRA4wpeHJWuBU2xtc7MEs38W957OMTOnJ7SD4SXdnsaCGE9mLcaQqFp s/Pg==
X-Received: by 10.60.11.132 with SMTP id q4mr14201458oeb.46.1362354418218; Sun, 03 Mar 2013 15:46:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.23.193 with HTTP; Sun, 3 Mar 2013 15:46:38 -0800 (PST)
In-Reply-To: <em6672ff78-238a-437f-bb20-23b4e632ba05@bombed>
References: <m3lia57934.fsf@carbon.jhcloos.org> <em6672ff78-238a-437f-bb20-23b4e632ba05@bombed>
From: James M Snell <jasnell@gmail.com>
Date: Sun, 03 Mar 2013 15:46:38 -0800
Message-ID: <CABP7RbdQkz-Sh2P4Eduxun5G734Yu-qD9L94AL81mkmVNHH2Yg@mail.gmail.com>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: James Cloos <cloos@jhcloos.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="e89a8fb1ef2e27fcf104d70ddb06"
Received-SPF: pass client-ip=209.85.214.172; envelope-from=jasnell@gmail.com; helo=mail-ob0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.757, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UCIcn-0004fM-BF 95ed3273f4f4e1d423b32975276d68ed
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 Header Encoding Status Update
Archived-At: <http://www.w3.org/mid/CABP7RbdQkz-Sh2P4Eduxun5G734Yu-qD9L94AL81mkmVNHH2Yg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16962
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

The LSB-ordered scheme used by protobufs is really drop dead simple to
implement. Extremely difficult to get wrong unless you forget to account
for signs. That's really the reason I chose it for the prototype.


On Sun, Mar 3, 2013 at 1:13 AM, Adrien W. de Croy <adrien@qbik.com> wrote:

>
>
> ------ Original Message ------
> From: "James Cloos" <cloos@jhcloos.com>
> To: "James M Snell" <jasnell@gmail.com>
> Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
> Sent: 3/03/2013 11:03:18 a.m.
> Subject: Re: HTTP/2 Header Encoding Status Update
>
>>   "JMS" == James M Snell <jasnell@gmail.com> writes:
>>>>>>>
>>>>>>
>> JMS> LSB.. I'm currently following the same scheme as protobufs but
>> that's not
>> JMS> set in stone.
>>
>> IP itself is Big Endian. No protocol over it should choose otherwise.
>>
>
> what proportion of hardware processing HTTP is big-endian?
>
>
>
>
>> There is too much room for confusion otherwise.
>>
>
> It's not actually that hard to get right.
> you use library functions to get the information from TCP and lower anyway.
>
> IME you're more likely to get errors when using big-endian data, when you
> omit a htonl / ntohl.
>
> Adrien
>
>
>> If protobufs does so, that is a bug.
>>
>> -JimC
>> --
>> James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
>>
>>
>