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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46846 in the body.
You can then email your comments to 46846 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#46846; Package guix-patches. (Mon, 01 Mar 2021 11:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to pukkamustard <pukkamustard <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 01 Mar 2021 11:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: pukkamustard <pukkamustard <at> posteo.net>
Subject: [PATCH] gnu: Add guile-cbor.
Date: Mon,  1 Mar 2021 12:24:58 +0100
* gnu/packages/guile-xyz.scm (guile-cbor): New variable.
---
 gnu/packages/guile-xyz.scm | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index c75fc4b4ac..45b3a82d00 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357 <at> gmail.com>
 ;;; Copyright © 2020 Mike Rosset <mike.rosset <at> gmail.com>
 ;;; Copyright © 2020 Leo Prikler <leo.prikler <at> student.tugraz.at>
-;;; Copyright © 2020 pukkamustard <pukkamustard <at> posteo.net>
+;;; Copyright © 2020, 2021 pukkamustard <pukkamustard <at> posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me <at> bonfacemunyoki.com>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -4560,3 +4560,32 @@ ffi-helper from nyacc.")
 for C++ code using a simple embedded DSL.  Think of it as @code{Boost.Python}
 or @code{LuaBind} but for Scheme.")
       (license license:boost1.0))))
+
+(define-public guile-cbor
+  (package
+    (name "guile-cbor")
+    (version "0.1.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://inqlab.net/git/guile-cbor.git")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
+    (build-system gnu-build-system)
+    (arguments `())
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("pkg-config" ,pkg-config)
+       ("texinfo" ,texinfo)))
+    (inputs `(("guile" ,guile-3.0)))
+    (synopsis "Guile implementation of CBOR")
+    (description
+     "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
+a binary data serialization format.  CBOR is similar to JSON but serializes to
+binary which is smaller and faster to generate and parse.  This package provides
+a Guile implementation of CBOR.")
+    (home-page "https://inqlab.net/git/guile-cbor.git")
+    (license license:gpl3+)))
-- 
2.30.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 01 Mar 2021 16:46:02 GMT) Full text and rfc822 format available.

Notification sent to pukkamustard <pukkamustard <at> posteo.net>:
bug acknowledged by developer. (Mon, 01 Mar 2021 16:46:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: pukkamustard <pukkamustard <at> posteo.net>
Cc: 46846-done <at> debbugs.gnu.org
Subject: Re: bug#46846: [PATCH] gnu: Add guile-cbor.
Date: Mon, 01 Mar 2021 17:45:27 +0100
Hi,

pukkamustard <pukkamustard <at> posteo.net> skribis:

> * gnu/packages/guile-xyz.scm (guile-cbor): New variable.

Applied, thanks!

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?

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#46846; Package guix-patches. (Thu, 04 Mar 2021 08:03:01 GMT) Full text and rfc822 format available.

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Apr 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 24 days ago.

Previous Next


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