From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 06:25:44 2021 Received: (at submit) by debbugs.gnu.org; 1 Mar 2021 11:25:44 +0000 Received: from localhost ([127.0.0.1]:48251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGggK-0000Qo-4P for submit@debbugs.gnu.org; Mon, 01 Mar 2021 06:25:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:52784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGggI-0000Qg-1J for submit@debbugs.gnu.org; Mon, 01 Mar 2021 06:25:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGggG-0007UT-E8 for guix-patches@gnu.org; Mon, 01 Mar 2021 06:25:41 -0500 Received: from mout01.posteo.de ([185.67.36.65]:44472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGgfv-0006ul-Im for guix-patches@gnu.org; Mon, 01 Mar 2021 06:25:39 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5C9CF160065 for ; Mon, 1 Mar 2021 12:25:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1614597907; bh=MjM2ghYekpBzIlrwHJyFBr4IbW/+vuSPO+d3tK2u+/s=; h=From:To:Cc:Subject:Date:From; b=GRkDT2i9c+XtKLhs3sIZjTkOk4ypuhdaAhhtD44jYGOS8nxCeLQZ8cRX6EaceBvO5 vuXvyfZYY8DdiZFs2Bc+DqQHAA5T9U/cVG8ffSVB67E2tcSkPCo3LSG2vHpyINn+sm /pBIL1bohzZClwmW0K2+OnI+Q5k3IXSKr4AADFU/NrK4rBO9AVePCZCYOifHgDbVAq YBt3Ypn3NdBvsMP7o1pMoizHHqjidON3wu6Hpaa4j4E9Qrzb8uJ2xQUcvXpjjliS+b 2RZA4rzQ8H6uloX9/AYIN4Ij3fk3oYPyqhPxmWC5NcBkMM+ah38sLw9Lg11VYzlMGj IxDynlTDk2MLQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dpybk4Hz2z6tmZ; Mon, 1 Mar 2021 12:25:06 +0100 (CET) From: pukkamustard To: guix-patches@gnu.org Subject: [PATCH] gnu: Add guile-cbor. Date: Mon, 1 Mar 2021 12:24:58 +0100 Message-Id: <20210301112458.18474-1-pukkamustard@posteo.net> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=pukkamustard@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: pukkamustard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 ;;; Copyright © 2020 Mike Rosset ;;; Copyright © 2020 Leo Prikler -;;; Copyright © 2020 pukkamustard +;;; Copyright © 2020, 2021 pukkamustard ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; ;;; 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 11:45:37 2021 Received: (at 46846-done) by debbugs.gnu.org; 1 Mar 2021 16:45:37 +0000 Received: from localhost ([127.0.0.1]:50610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGlft-0006u4-8f for submit@debbugs.gnu.org; Mon, 01 Mar 2021 11:45:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGlfr-0006tr-R9 for 46846-done@debbugs.gnu.org; Mon, 01 Mar 2021 11:45:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48906) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGlfm-0005yz-IV; Mon, 01 Mar 2021 11:45:30 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55824 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lGlfm-0003k7-3e; Mon, 01 Mar 2021 11:45:30 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: pukkamustard Subject: Re: bug#46846: [PATCH] gnu: Add guile-cbor. References: <20210301112458.18474-1-pukkamustard@posteo.net> Date: Mon, 01 Mar 2021 17:45:27 +0100 In-Reply-To: <20210301112458.18474-1-pukkamustard@posteo.net> (pukkamustard@posteo.net's message of "Mon, 1 Mar 2021 12:24:58 +0100") Message-ID: <8735xerffc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, pukkamustard skribis: > * gnu/packages/guile-xyz.scm (guile-cbor): New variable. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.92 listed in list.dnswl.org] 2.0 PDS_TONAME_EQ_TOLOCAL_SHORT Short body with To: name matches everything in local email X-Debbugs-Envelope-To: 46846-done Cc: 46846-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Hi, pukkamustard skribis: > * gnu/packages/guile-xyz.scm (guile-cbor): New variable. Applied, thanks! I had a quick look at the code. It=E2=80=99s convenient to have a Guile-JSON-like interface. OTOH, CBOR lends itself well to more efficient implementations, =C3=A0 la Bytestructures; I wonder if there could additionally be a syntactic layer that would generate specialized serializers/deserializers. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 04 03:02:14 2021 Received: (at 46846-done) by debbugs.gnu.org; 4 Mar 2021 08:02:14 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiw2-0002Qo-1z for submit@debbugs.gnu.org; Thu, 04 Mar 2021 03:02:14 -0500 Received: from mout02.posteo.de ([185.67.36.66]:42165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiw0-0002Qc-ET for 46846-done@debbugs.gnu.org; Thu, 04 Mar 2021 03:02:12 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 38F292400FC for <46846-done@debbugs.gnu.org>; Thu, 4 Mar 2021 09:02:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1614844926; bh=Avn9neFNvwEpiCI4aB96C70oaapB0VQbiSnuZANgjt8=; h=From:To:Cc:Subject:Date:From; b=IT8U3sTo/NhJLYEsTPp0C2gbmLiklUzGsmoUO8czt0OSXalHpnLY+hNzSc/AIGJ2z /NUe7aISkun3h14X4eFqDM7LFAObtyqKIadvzZzVLGwvsiJAahWzfvBDJ7sPxJaYvj oxDM0IB0kwmNTfs9mOawFi2tqPQDpEuMCkijgNj5JzMYk9oM0LbKv4c4ReKrsF1YHD cnm7iabfjXoS+rv51qLkckZpkrzCwYutBr1Pneta2q1UXH7WZFZIwS8WQdzVHjkZpn 3ZcV9sDqI1pOtnCKJVTmCN+yofBVUgt9dkU0oUa/b6QBut+pzPq6p0PbuslnqCabdD 3A7aMR/Tn8C1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Drjy53z0xz9rxL; Thu, 4 Mar 2021 09:02:05 +0100 (CET) References: <20210301112458.18474-1-pukkamustard@posteo.net> <8735xerffc.fsf@gnu.org> User-agent: mu4e 1.4.14; emacs 27.1 From: pukkamustard To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#46846: [PATCH] gnu: Add guile-cbor. In-reply-to: <8735xerffc.fsf@gnu.org> Date: Thu, 04 Mar 2021 09:02:00 +0100 Message-ID: <86sg5bgxdz.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46846-done Cc: 46846-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I had a quick look at the code. It=E2=80=99s convenient to have a > Guile-JSON-like interface. OTOH, CBOR lends itself well to more > efficient implementations, =C3=A0 la Bytestructures; I wonder if=20 > there could > additionally be a syntactic layer that would generate=20 > 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=20 length. For example an integer is represented in either 1, 2, 3, 5 or 9 bytes=20 depending on how large the integer is. From initial glance, I think=20 bytestructures is efficient because structures are fixed-size and the=20 implementation can do address arithmetic for accessing specific fields. But there also seem to be "dynamic" bytestructures descriptors. So=20 I'm probably lacking imagination. I'll check out bytestructures... -pukkamustard From unknown Wed Sep 10 01:58:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 Apr 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator