Re: [apps-discuss] Concise Binary Object Representation (CBOR)
Dave Cridland <dave@cridland.net> Thu, 23 May 2013 14:21 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 A831D21E804D for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 07:21:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.476
X-Spam-Level:
X-Spam-Status: No, score=-1.476 tagged_above=-999 required=5 tests=[AWL=0.501, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 hu2XVLE6WsoW for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 07:21:36 -0700 (PDT)
Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) by ietfa.amsl.com (Postfix) with ESMTP id CBF2621E804C for <apps-discuss@ietf.org>; Thu, 23 May 2013 07:21:35 -0700 (PDT)
Received: by mail-ob0-f175.google.com with SMTP id xn12so722599obc.34 for <apps-discuss@ietf.org>; Thu, 23 May 2013 07:21:35 -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=hYEm7IuJlwftsIvqv8Ducm/X/AECCUQtMBUX+Xw4ulk=; b=EHtJOwO72fEVgrNpfEKZm0s92dV45kB1sHTllJ8mEy85x2lqpCp7B7s5uUDxneUK0I 9Zi933FakmM1rDEy4Q/ElT8fbIZeoe4G6r0VaCCVt0iLrZ/tuZSB0etk8TpeGi7oXKFX qD6vUbaSw2wmZd8qbihtbv0jFwZx/EqypUF30=
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=hYEm7IuJlwftsIvqv8Ducm/X/AECCUQtMBUX+Xw4ulk=; b=GfhHJhBRjrT5FRnoznt/O7VyJ1qGajB9OVFmQQ62Oy0dBISj4MU6vWlaCWITTZI1TS OihN7lQpIBZfPE/RNR4S8hiwJScmS7TcsGgSdLWu/UZKBxbA70iUDJm3wjvI3SvCzlTY z1OoeLYbIS0l2B85df7+NWYNlr0OYaWHgJq97/NCU1nZO7qgUbCgJ5XZwt//XPpmrmiR BAmLTep7Qkx22S5qrePZ/ge45XAZ59O+Q3cMbuUTjJO4xl4DzQ/j2cEaTdoBYHWSkpHz qcJHJpKRLs1fidfx+Pk4Ig0UU8LlIEhhE41wLz5knEpwyd5AuoxM7EKCqNl+r2YLCXq+ H9zA==
MIME-Version: 1.0
X-Received: by 10.60.85.74 with SMTP id f10mr8560331oez.32.1369318895153; Thu, 23 May 2013 07:21:35 -0700 (PDT)
Received: by 10.60.62.146 with HTTP; Thu, 23 May 2013 07:21:34 -0700 (PDT)
In-Reply-To: <519E1F2F.9060008@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>
Date: Thu, 23 May 2013 15:21:34 +0100
Message-ID: <CAKHUCzycPBo27V9iPJgLrkQWBWt=fuDxn_Ph=+Y3Nkuvwawx2A@mail.gmail.com>
From: Dave Cridland <dave@cridland.net>
To: Dave Crocker <dcrocker@bbiw.net>
Content-Type: multipart/alternative; boundary="089e0111b71c54d87404dd6366b7"
X-Gm-Message-State: ALoCoQmBBkHkglSNvC58uFVIMhfJ1bHMmv6Px6OtfGHDYXeLwrJN9OSKzAmfVT1Ef1P4BoOxKUdd
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 14:21:36 -0000
On Thu, May 23, 2013 at 2:52 PM, Dave Crocker <dcrocker@bbiw.net> wrote: > How does/should the differences in data model affect the choices in > encoding scheme? I'm looking for the (relatively) short answer. > 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. Any encoding scheme with domain knowledge embedded in it, as it were, can get more efficient encoding (since it's effectively encoding that domain information implicitly in its mere use rather than transmitting the model explicitly). Of course, it doesn't mean that any domain-specific encoding will automatically be better than a generalized one... Another example, and one that you may be familiar with, is the way that IMAP set syntax uses its knowledge of the data domain to make very compact representations, which can be seen clearly in the difference between a standard RFC 3501 SEARCH response and the RFC 4731 ESEARCH response, which (can) carry the same information in different representations - the latter using considerably fewer octets on the wire in all but degenerate cases. In any case, this means that given a particular data model, selecting a suitably apt encoding scheme will yield better results. (This all said, you could pick an XML representation of the JSON model, and then EXI encode that one, since the DOM is a superset of the JSON model - I think. Not saying that's even remotely sensible...) Dave.
- [apps-discuss] Concise Binary Object Representati… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… James M Snell
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… James M Snell
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Dave Cridland
- Re: [apps-discuss] Concise Binary Object Represen… Tony Finch
- Re: [apps-discuss] Concise Binary Object Represen… Dave Cridland
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Tony Finch
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… James M Snell
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Manger, James H
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Paul E. Jones
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Tony Finch
- Re: [apps-discuss] Concise Binary Object Represen… Manger, James H
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Dave Cridland
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Dave Cridland
- Re: [apps-discuss] Concise Binary Object Represen… Dave Crocker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Tony Finch
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… James M Snell
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Paul Hoffman
- Re: [apps-discuss] Concise Binary Object Represen… Joe Hildebrand (jhildebr)
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Cullen Jennings (fluffy)
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Nico Williams
- Re: [apps-discuss] Concise Binary Object Represen… Cullen Jennings (fluffy)
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker
- Re: [apps-discuss] Concise Binary Object Represen… Carsten Bormann
- Re: [apps-discuss] Concise Binary Object Represen… Phillip Hallam-Baker