Re: [Cbor] Reminder: bi-weekly CBOR conference call on 5 May

Carsten Bormann <cabo@tzi.org> Tue, 04 May 2021 19:18 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D85A23A0E0D for <cbor@ietfa.amsl.com>; Tue, 4 May 2021 12:18:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level:
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 J7AyXEOqbei7 for <cbor@ietfa.amsl.com>; Tue, 4 May 2021 12:18:34 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 034D53A0E09 for <cbor@ietf.org>; Tue, 4 May 2021 12:18:33 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4FZV4Q6RYKzyhD; Tue, 4 May 2021 21:18:30 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
Date: Tue, 04 May 2021 21:18:30 +0200
X-Mao-Original-Outgoing-Id: 641848710.44985-2d3fb94eaa4abe21d2ff147ebe463397
Content-Transfer-Encoding: quoted-printable
Message-Id: <4330628E-0829-4399-8115-FDA2804497DD@tzi.org>
References: <CALaySJ+=WzgeMRpPqNkJcN7g7VY8HeTm2LLEc0PjtnKX8cVmVQ@mail.gmail.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/x0lFCFZ5j6N21JWDiABHQNn0ccA>
Subject: Re: [Cbor] Reminder: bi-weekly CBOR conference call on 5 May
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 May 2021 19:18:39 -0000

On 2021-05-04, at 16:54, Barry Leiba <barryleiba@computer.org> wrote:
> 
> https://codimd.ietf.org/notes-ietf-interim-2021-cbor-08-cbor

I finally managed to get a version of the cbor-packed gem out.

Best to use with cbor-diag, e.g.

$ echo '[1, 2, 2, 4711, 4711]' | diag2diag.rb -p
51([[4711], [], [], [1, 2, 2, simple(0), simple(0)]])
$ echo '[1, 2, 2, 4711, 4711]' | diag2diag.rb -pq
[1, 2, 2, 4711, 4711]

(OK, that is not great compression when adding in the compression tag overhead, but it does show that 2 is not shared while 4711 is.)

-p = pack
-q = unpack (u was taken…)

echo '["https://tzi.de", "http://ietf.org", "https://www.facebook.com", "https://www.twitter.com", "https://tzi.de"]' | diag2diag.rb -p
51([[225("tzi.de")], 
    ["http", 6("s://"), 225("www.")], 
    [], 
    [simple(0), 6("://ietf.org"), 226("facebook.com"), 226("twitter.com"), simple(0)]])

As you can see, the compressor is a bit simple-minded, and it doesn’t do suffixes at all yet (should do “.com"!), or prefixes for anything but strings.

Let the bug reports flow in…
(And let’s discuss this tomorrow.)

Grüße, Carsten