From: pukkamustard <pukkamustard@posteo.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 46846-done@debbugs.gnu.org
Subject: [bug#46846] [PATCH] gnu: Add guile-cbor.
Date: Thu, 04 Mar 2021 09:02:00 +0100 [thread overview]
Message-ID: <86sg5bgxdz.fsf@posteo.net> (raw)
In-Reply-To: <8735xerffc.fsf@gnu.org>
> 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
prev parent reply other threads:[~2021-03-04 8:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 11:24 [bug#46846] [PATCH] gnu: Add guile-cbor pukkamustard
2021-03-01 16:45 ` bug#46846: " Ludovic Courtès
2021-03-04 8:02 ` pukkamustard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86sg5bgxdz.fsf@posteo.net \
--to=pukkamustard@posteo.net \
--cc=46846-done@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).