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

Dave Cridland <dave@cridland.net> Thu, 23 May 2013 15:00 UTC

Return-Path: <dave@cridland.net>
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 443D221F8FB3 for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 08:00:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level:
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 4c04S7Gt2w-F for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 07:59:57 -0700 (PDT)
Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) by ietfa.amsl.com (Postfix) with ESMTP id F322E21F8F83 for <apps-discuss@ietf.org>; Thu, 23 May 2013 07:59:56 -0700 (PDT)
Received: by mail-oa0-f46.google.com with SMTP id h2so4532066oag.19 for <apps-discuss@ietf.org>; Thu, 23 May 2013 07:59:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/AbDQEiV7X8915kX4xzVEfneW2V0qVbCvgU0Ve3HCqU=; b=HfbjjYvdT0egYCAsWySX90fwdbxjhO7bZUElOu9Jg7Z0aKKrsIQbF14Qb8i1Icit+G L0WC1D5s4KTMA2JbwlZs+CEleOIRy2/WzHm1UMXyFSXBEYVEomuhaYwuw7Uh+/f4lVqm +GnRN4i6YKnY9hfUpsW/qlKHvA98u7CS6E9hE=
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:x-gm-message-state; bh=/AbDQEiV7X8915kX4xzVEfneW2V0qVbCvgU0Ve3HCqU=; b=Tht0VbP761yGaq4LjubZLsg0uLybOPKhADsNrzyAINPIqxtyb/QJIh4rGUY/ScsM+L 3Pm479DvZCrgF3vHTFFLdgN2Tv+vCU4n6K0Fz6zl7v5Zf/9s+GXU1kU3rZjOJK/wb8OB lrIaGQQjA2Sn6MbNGXXgWcnAKQCwm07SzD4q/uIw4Td0GliU9kqLy2JIjvsva6YgIch0 HDN+Op+JNSIZI46QhI38vnZn+coAycnBlHXjBhjI6/tlNCjncaYaAHiBT9SaqpkPfhx4 Xt83NBAYMeFB4CTlnFLliwiI2NOWrEmIfqT+63ZMwmbkg7EI1hy0cee0v2Ztrq3h41TD UeKA==
MIME-Version: 1.0
X-Received: by 10.182.237.6 with SMTP id uy6mr6979179obc.31.1369321196368; Thu, 23 May 2013 07:59:56 -0700 (PDT)
Received: by 10.60.62.146 with HTTP; Thu, 23 May 2013 07:59:56 -0700 (PDT)
In-Reply-To: <519E2C86.4080707@bbiw.net>
References: <61CB1D18-BABC-4C77-93E6-A9E8CDA8326B@vpnc.org> <CABP7RbcUJJoPJYdCOGSoa8fJfqj+R5RttjDtG5zXDirUV9OMQA@mail.gmail.com> <3638B63C-0E75-4E99-BF65-28F83DB856A6@vpnc.org> <CAMm+LwjKzHnOKDp0dmHN1Czes-f7tcJ2U1qz7S_HoSpcfKMyyA@mail.gmail.com> <002201ce5781$5ee92b20$1cbb8160$@packetizer.com> <25F67EB3-B70E-4A19-AD08-7B4ADC6ECC63@tzi.org> <519E1F2F.9060008@bbiw.net> <CAKHUCzycPBo27V9iPJgLrkQWBWt=fuDxn_Ph=+Y3Nkuvwawx2A@mail.gmail.com> <519E2C86.4080707@bbiw.net>
Date: Thu, 23 May 2013 15:59:56 +0100
Message-ID: <CAKHUCzzybmOe3kCwuMCedKXzn6Q3Vjmyo916ra2WpuumnComxg@mail.gmail.com>
From: Dave Cridland <dave@cridland.net>
To: Dave Crocker <dcrocker@bbiw.net>
Content-Type: multipart/alternative; boundary="e89a8ff24eaf7e98a304dd63ef5f"
X-Gm-Message-State: ALoCoQkl8YSGgK90V/Hx9OETeMS8MEeiG+iTyXLnuxcHorNFaCC8DkWA5CB24e8NxwQSmBa1tPgn
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, IETF Apps Discuss <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 15:00:01 -0000

On Thu, May 23, 2013 at 3:49 PM, Dave Crocker <dcrocker@bbiw.net> wrote:

> On 5/23/2013 7:21 AM, Dave Cridland wrote:
>
>> EXI makes certain assumptions about the data model in order to achieve
>> the most efficient encoding. EXI specifically can take into account not
>> only the generalized DOM, but also the schema of the XML encoded.
>>
>
> What does that mean in terms of specifics?  For example, what kind of
> assumptions?  The above is such a general statement, there's no way to know
> what it translates into, in terms of encoding style choices.
>
>
To switch example, JSON has no encoding for sets, or binary data, because
neither exist in the model it's encoding. Because they don't exist, there's
no need to encode them - if you wanted to encode them (because your source
model differs from that assumed), you'd need to do something else (like
base64 encoding). This naturally reduces efficiency.

CBOR clearly has a superset of this model - so it does have binary data,
but still does not have sets, for instance.

Dave.