Re: [dispatch] draft-devault-bare-07 to be discussed during IETF 114
Cullen Jennings <fluffy@iii.ca> Fri, 24 June 2022 01:03 UTC
Return-Path: <fluffy@iii.ca>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C2F40C15A747 for <dispatch@ietfa.amsl.com>; Thu, 23 Jun 2022 18:03:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.908
X-Spam-Level:
X-Spam-Status: No, score=-6.908 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XMn3FlO7DiPy for <dispatch@ietfa.amsl.com>; Thu, 23 Jun 2022 18:03:10 -0700 (PDT)
Received: from smtp86.ord1c.emailsrvr.com (smtp86.ord1c.emailsrvr.com [108.166.43.86]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 53F07C14792F for <dispatch@ietf.org>; Thu, 23 Jun 2022 18:03:10 -0700 (PDT)
X-Auth-ID: fluffy@iii.ca
Received: by smtp11.relay.ord1c.emailsrvr.com (Authenticated sender: fluffy-AT-iii.ca) with ESMTPSA id 95C75A0114; Thu, 23 Jun 2022 21:03:08 -0400 (EDT)
From: Cullen Jennings <fluffy@iii.ca>
Message-Id: <7053DA78-703A-420C-A474-C7310251F4F1@iii.ca>
Content-Type: multipart/alternative; boundary="Apple-Mail=_DCA013ED-A307-4C88-A2D9-849800F15C99"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\))
Date: Thu, 23 Jun 2022 19:03:00 -0600
In-Reply-To: <CAHBU6isB2-u5TUUMz76ZHF=FcRW9rokEPGtNZzeM2a6NjFxHNA@mail.gmail.com>
To: DISPATCH <dispatch@ietf.org>
References: <YqC0MHD7MPpcFEuc@cvut.cz> <20220608210551.72EB94341C93@ary.qy> <YqH16YukCzEbLBF3@cvut.cz> <CABcZeBNBSt0z7ur7_JwhBs30s05wT9n4jsDZA1wre991fkvS8w@mail.gmail.com> <YqJUjF8W3Dw/XgKB@gmail.com> <CABcZeBPRkW1iHVDVG4fLTdGzigfFtNLQDu_UkRHE1-V7jXgKrA@mail.gmail.com> <CAHBU6isB2-u5TUUMz76ZHF=FcRW9rokEPGtNZzeM2a6NjFxHNA@mail.gmail.com>
X-Mailer: Apple Mail (2.3696.100.31)
X-Classification-ID: 7416517b-cc9c-4f4f-9943-08f9624e0dca-1-1
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/3SKdh96Ged_essr2Sz83-4eelMo>
Subject: Re: [dispatch] draft-devault-bare-07 to be discussed during IETF 114
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Jun 2022 01:03:14 -0000
It would be useful to standardize something like this - when writing protocol specification and code I have often wished for something like this. I don’t think it is the same as CBOR. The sheer number of things like this in common use but without a proper specification speak to the need. Many of them were designed to be fast, while CBOR was largely designed to be small. I think there are a bunch of ways this could be improved to help with things like: * schema syntax for future extensions points, * some pre defined thing for common data such as time but all of that could be done if we decided to move this forward. > On Jun 9, 2022, at 3:19 PM, Tim Bray <tbray@textuality.com> wrote: > > The world is well-supplied with schema-driven binary encoding schemes, all claiming excellent compatibility and performance characteristics: Avro, Protobufs, Cap'n proto, Thrift, FlatBuffers are the ones I can think of off the top of my head. > > I'd be interested in hearing why BARE is different/better/interesting. > > On Thu, Jun 9, 2022 at 2:14 PM Eric Rescorla <ekr@rtfm.com <mailto:ekr@rtfm.com>> wrote: > > > On Thu, Jun 9, 2022 at 1:14 PM Jiri Vlasak <jiri.hubacek@gmail.com <mailto:jiri.hubacek@gmail.com>> wrote: > > > > An obvious question is why one would use BARE rather than CBOR > > > > which appears at first glance to do the largely the same thing. > > > > See RFCs 8949, 8152, 8392, 8610, 8742, 8746, and 8812. > > > > > > An obvious answer is that because BARE spec [1] is short. It has > > > about 17 pages (depends on the format), that include schema language > > > and many examples. > > > > > > > Without taking a position on BARE, this is not necessarily a virtue. > > There are (at least) two reasons why a draft might be shorter than > > alternative technologies (1) that it is simpler (2) that is > > underspecified. > > (1) is one of the BARE's goals. We worked hard to avoid (2) and I am > happy to discuss it. > > Since sending this email I have taken a quick look at the specification, > and IMO the description of the schema language needs to be fleshed > out some. Providing the ABNF is insufficient, you need to explain > what each piece of the syntax means. You might be able to > save some space by interlacing that with the description of each > type. > > > > > Moreover, BARE needs the schema available prior to the > > > communication, which is not needed in CBOR [2] as stated in the > > > objectives. In this manner, BARE better compares to XDR [3]. > > > > > > > As I understand it, CBOR does however support schema, no? If so, I'm > > not sure why requiring it is an advantage. Is the idea that it makes > > the format more compact? Something else? > > To my understanding, yes, CBOR supports schema. However, to cite from > the CBOR specification [1], "3. Data must be able to be decoded without > a schema description." That is not the case for BARE. So, to cite from > the BARE specification [2], "A BARE message has a comparable size and > entropy to the underlying state it represents." > > I am not saying that requiring the schema is an advantage, which lead us > to the original question -- you probably use BARE when you need simple > schema and concise messages; you probably use CBOR when you need > self-descriptive messages. > > It would probably help to provide some measurements that compared > the overhead of CBOR to the overhead of BARE. As a bonus, it > would help to compare the overhead of compressed CBOR to the > overhead of compressed BARE. > > > > > Finally, I note that your name does not appear in the author list of > > this document. Can you clarify the situation here? > > Of course, and I am sorry I did not do it earlier. After the -01 version > of the BARE draft the development stagnated. The original author was out > of free time, letting the BARE I-D to expire. After some time, the > requests to revive the specification appeared from the interested > developers. I worked with one of the developers/implementers to review > the BARE and incorporated all the received feedback. > > My primary motivation is to understand the RFC process on the > specification, which I believe is worth the standardization. > > I was hesitating to add myself and the imlementor mentioned earlier as > the authors, because our roles are more like pre-editor and contributor > ones. So I decided not to, but it is maybe wrong? Could I, please, ask, > what is the common practice in the similar situations? > > I'm not sure about wrong, but it's just surprising to see someone proposing > a specification without their name on it. It would probably be better to add > your name so that people know who to contact, etc., but I don't think > you need to submit a -08 just for that. > > -Ekr > > > Thanks, have a nice day, > jiri > > [1]: https://www.rfc-editor.org/rfc/rfc8949.html <https://www.rfc-editor.org/rfc/rfc8949.html> > [2]: https://www.ietf.org/archive/id/draft-devault-bare-07.html <https://www.ietf.org/archive/id/draft-devault-bare-07.html> > _______________________________________________ > dispatch mailing list > dispatch@ietf.org <mailto:dispatch@ietf.org> > https://www.ietf.org/mailman/listinfo/dispatch <https://www.ietf.org/mailman/listinfo/dispatch> > _______________________________________________ > dispatch mailing list > dispatch@ietf.org > https://www.ietf.org/mailman/listinfo/dispatch
- [dispatch] draft-devault-bare-07 to be discussed … Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… John Levine
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Eric Rescorla
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Eric Rescorla
- Re: [dispatch] draft-devault-bare-07 to be discus… Tim Bray
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Cullen Jennings
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Richard Barnes
- Re: [dispatch] draft-devault-bare-07 to be discus… Richard Barnes
- Re: [dispatch] draft-devault-bare-07 to be discus… Eric Rescorla
- Re: [dispatch] draft-devault-bare-07 to be discus… Ben Schwartz
- Re: [dispatch] draft-devault-bare-07 to be discus… Richard Barnes
- Re: [dispatch] draft-devault-bare-07 to be discus… Ben Schwartz
- Re: [dispatch] draft-devault-bare-07 to be discus… Martin Thomson
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Anders Rundgren
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Anders Rundgren
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Victorien Elvinger
- Re: [dispatch] draft-devault-bare-07 to be discus… Eric Rescorla
- Re: [dispatch] draft-devault-bare-07 to be discus… worley
- Re: [dispatch] draft-devault-bare-07 to be discus… Jiri Vlasak
- Re: [dispatch] draft-devault-bare-07 to be discus… Eric Rescorla
- Re: [dispatch] draft-devault-bare-07 to be discus… worley