Re: If not JSON, what then ?

Martin Thomson <martin.thomson@gmail.com> Wed, 03 August 2016 13:54 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 D417F12DD6A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Aug 2016 06:54:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.308
X-Spam-Level:
X-Spam-Status: No, score=-8.308 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PaVozlosJ8dM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 3 Aug 2016 06:54:10 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C72912DDA9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 3 Aug 2016 06:47:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bUwRY-0001ct-T6 for ietf-http-wg-dist@listhub.w3.org; Wed, 03 Aug 2016 13:42:44 +0000
Resent-Date: Wed, 03 Aug 2016 13:42:44 +0000
Resent-Message-Id: <E1bUwRY-0001ct-T6@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1bUwRT-0001as-VN for ietf-http-wg@listhub.w3.org; Wed, 03 Aug 2016 13:42:39 +0000
Received: from mail-qk0-f177.google.com ([209.85.220.177]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1bUwRJ-0001N3-1V for ietf-http-wg@w3.org; Wed, 03 Aug 2016 13:42:37 +0000
Received: by mail-qk0-f177.google.com with SMTP id x185so9924346qkc.2 for <ietf-http-wg@w3.org>; Wed, 03 Aug 2016 06:42:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6bfwDEPySfmyyHjeo//ozCmHH2c702MYHb9sGBmgKjM=; b=xhleuD5kWC9vPrwhF6U90Ec1HFS8yoHQT/fpR+23J5aViJxQa4SqU5vdUfL+hjV6ri alyYGGZ3p/pRRgHeiG0ccpYXF9H7RRBl30cinhLtkSFgHt5MAzDbetFuGZpEr/eclFfi g0yA6/D2e8j5BOO0yEcMWRSI1qP5AA+DlRszoPMEXv2nQo/WFRfC498wFixdKKADWOEO mCwMQuPlCDLkZ0H7EoXGoDKhN8D0RHdtXNlvSl8lrOjdYmy4ZUVyyFNakH8nEi6ySaud xEGMWBM0vpayom0QD0OvdzG2FK4Kcq6rTwdtOKk/oyxBuWN9eum4wPic+bRXb4RkRnjI +YjA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6bfwDEPySfmyyHjeo//ozCmHH2c702MYHb9sGBmgKjM=; b=cG9wl4tVqDr2uhUs61x9Q/FBrzL0dO6jGlvqripV1Tzd6IUI3ac72qb0pW5pXnkNYI eAoxhuWHJFz5SulwpY476FPMXnun+oJAcTPu27D+dVDeqnaccS27j6aaFkFeEysduSed 1AUDAyG/aDlMIoTRh8RNXZTCdnff3KuOfnP9vqGswIscPlbdrCtlhFn7ZV+DWyovxUBV 8S0mHSW1GpKeJGXnIvq77jbunQaTMFTn94+n6Kj6QoK+uIKLPk27hE/scQE2ccJZ4pPQ 6ROpZDIpyWreJKoCwcwvfvoBZflw6jFLz0SPqTzfAPGe3EjMxODIrDdgPOo8Id+XnLlR jS0w==
X-Gm-Message-State: AEkooutrUJ6+w7yH8ywsUdadyrm1zekmEUs9GEI4VRm8l5lTSnYMiVEFI7bLRP9JhuabtDryqzHBldoz+/YgVw==
X-Received: by 10.55.165.65 with SMTP id o62mr53030qke.282.1470231722731; Wed, 03 Aug 2016 06:42:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.22.146 with HTTP; Wed, 3 Aug 2016 06:42:01 -0700 (PDT)
In-Reply-To: <75814.1470229640@critter.freebsd.dk>
References: <12ED69B4-C924-475E-9432-B8FEB4B9DF80@mnot.net> <20160803063730.EDABAF792@welho-filter3.welho.com> <20160803064633.GB500@1wt.eu> <201608030937.u739bpxx007542@shell.siilo.fmi.fi> <20160803094554.GE500@1wt.eu> <CABkgnnWqHTinXDNXxM7Lw9SBGCCPb-j6BgKF=wjWKXRUbfe1oQ@mail.gmail.com> <75814.1470229640@critter.freebsd.dk>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 03 Aug 2016 15:42:01 +0200
Message-ID: <CABkgnnUfNw6teFPdb8H1w+SuPPZUC+fVHrgs4m-WeBtC-r_pfw@mail.gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.220.177; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.829, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bUwRJ-0001N3-1V b2d34fa52461b41556c412295616b551
X-Original-To: ietf-http-wg@w3.org
Subject: Re: If not JSON, what then ?
Archived-At: <http://www.w3.org/mid/CABkgnnUfNw6teFPdb8H1w+SuPPZUC+fVHrgs4m-WeBtC-r_pfw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32177
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>

On 3 August 2016 at 15:07, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>
> What I'm trying to do here and now, is a data model and HTTP/1
> serialization which by design overlaps as many existing headers
> defined syntax as possible, to minimize the number of parsers
> required now and in the future.

I'm skeptical that you will be able to do that without sacrificing
something.  And if the point of the exercise is to define the one true
format (or three or some small number) that is used hereafter, then I
don't see much inherent value in minimizing the distance between the
old thing and the new thing.  I'd rather sacrifice similarity than
lose (for example) decoding efficiency, or UTF-8, or any of the many
things that have been dreamed up.