Re: [apps-discuss] Concise Binary Object Representation (CBOR)

Nico Williams <nico@cryptonector.com> Thu, 23 May 2013 17:30 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F12ED21F87B7 for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 10:30:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 QRR77TuLjDme for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 10:30:23 -0700 (PDT)
Received: from homiemail-a90.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by ietfa.amsl.com (Postfix) with ESMTP id 2D0F221F8793 for <apps-discuss@ietf.org>; Thu, 23 May 2013 10:20:35 -0700 (PDT)
Received: from homiemail-a90.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTP id D55062AC06A for <apps-discuss@ietf.org>; Thu, 23 May 2013 10:20:34 -0700 (PDT)
Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTPSA id 8860A2AC059 for <apps-discuss@ietf.org>; Thu, 23 May 2013 10:20:34 -0700 (PDT)
Received: by mail-we0-f179.google.com with SMTP id m46so2292458wev.10 for <apps-discuss@ietf.org>; Thu, 23 May 2013 10:20:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nMtNIqBJOaZVpq9ZWihLTnumzd0s3BilcK7Ny31VJCs=; b=BdbXl/N+paWd7Aym6HpBGOId4MIWWn1wWwESTfTqQ1UsqsNoGGsvmro9+K4mp7l8YV N9nXUyV5/uE0V0w7K6uVMg2EiF+QV1/IUD0BPAZ5qrmX2wagt6iYUnM/kTF/b5v+lw29 kOFqD4YBI+T9w1/oznJe8vyyV+3YL1ryXyFxf5eSvj8LuSKUAyZnt9ziXcFweD96skiY LcQdz+Kms9+52Nl0FZVO/Xl4dQhWqwg++NKxz48x7jg/Zs7hE/iHcClU8R0vebpKuIe7 E0j7TBsTEnJgdML7X3q+p8yrqlD2wdHWg0PDnVvl74tNZhy43WnOF/1dMAqfHZl1EqER DSdQ==
MIME-Version: 1.0
X-Received: by 10.180.205.206 with SMTP id li14mr45011676wic.33.1369329594443; Thu, 23 May 2013 10:19:54 -0700 (PDT)
Received: by 10.216.111.132 with HTTP; Thu, 23 May 2013 10:19:54 -0700 (PDT)
In-Reply-To: <E5BA4DFA-6E2E-44AA-91B2-716D595C3DF0@tzi.org>
References: <61CB1D18-BABC-4C77-93E6-A9E8CDA8326B@vpnc.org> <CAK3OfOjm0B8rA_BEkQKUJqTPuV+A8=gcDi+THD1xu-JtFSJ1gA@mail.gmail.com> <E5BA4DFA-6E2E-44AA-91B2-716D595C3DF0@tzi.org>
Date: Thu, 23 May 2013 12:19:54 -0500
Message-ID: <CAK3OfOg48ZDF5XnM5ncWtTzBX9dwZXsnJm2TbOanC2UpL_oDew@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset="UTF-8"
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, apps-discuss@ietf.org
Subject: Re: [apps-discuss] Concise Binary Object Representation (CBOR)
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 May 2013 17:30:39 -0000

On Thu, May 23, 2013 at 11:38 AM, Carsten Bormann <cabo@tzi.org> wrote:
> On May 23, 2013, at 18:13, Nico Williams <nico@cryptonector.com> wrote:
>
>> Also, I believe this is the fifth binary encoding of JSON proposed
>> thus far.
>
> 1) CBOR is not a "binary encoding of JSON".
> (It can be used as one, though.)

The superset of JSON in CBOR is not in itself appealing enough, I
think.  We already have a *lot* of binary encodings.

It's only the connection to JSON that makes this appealing.  You might
disagree, but you're probably biased :)  You're asking that we
standardize this though, so you should do something to justify one
more encoding in a sea of encodings.

> 2) There are many more proposals in this space, and it is hard to draw a line.
> E.g. Google protocol buffers is a prominent example.

But it requires a schema.  (And what the heck was so wrong with PER?
But whatever.)

>> An analysis of these might be nice.
>
> Yes.  Find a grad student :-)

I think it falls on you to provide some justification for this.  It
wouldn't be hard, but you might find that an existing, *deployed*
encoding is good enough (or maybe you wouldn't but we would).  I think
I'd rather standardize a good-enough encoding that's been deployed
than create a new one, but maybe the improvements CBOR brings are
compelling enough.  Either way you should definitely provide some
analysis.

> Of course, I did my own analysis, but I didn't see a need to write it up.

That's... odd.  You need consensus.  Why wouldn't your analysis help you get it?

> (More specifically, I didn't see a funding agency interested in this part of reality.
> But I'm willing to be surprised :-)

Do you intend to use CBOR for any protocols you want standardized at
the IETF?  Or are you just hoping others will?

Nico
--