GNU bug report logs - #46846
[PATCH] gnu: Add guile-cbor.

Previous Next

Package: guix-patches;

Reported by: pukkamustard <pukkamustard <at> posteo.net>

Date: Mon, 1 Mar 2021 11:26:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 46846-done <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 46846-done <at> debbugs.gnu.org
Subject: Re: bug#46846: [PATCH] gnu: Add guile-cbor.
Date: Thu, 04 Mar 2021 09:02:00 +0100
> I had a quick look at the code.  It’s convenient to have a
> Guile-JSON-like interface.  OTOH, CBOR lends itself well to more
> efficient implementations, à la Bytestructures; I wonder if 
> there could
> additionally be a syntactic layer that would generate 
> specialized
> serializers/deserializers.  Thoughts?

Interesting, I didn't know about bytestructures. A bytestructures
like-implementation of CBOR would be cool.

One thing I'm not quite sure about is that CBOR is variable 
length. For
example an integer is represented in either 1, 2, 3, 5 or 9 bytes 
depending
on how large the integer is. From initial glance, I think 
bytestructures
is efficient because structures are fixed-size and the 
implementation
can do address arithmetic for accessing specific fields.

But there also seem to be "dynamic" bytestructures descriptors. So 
I'm
probably lacking imagination. I'll check out bytestructures...

-pukkamustard




This bug report was last modified 4 years and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.