From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qN+1CGGUQGAfYQAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 08:03:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wGeNBGGUQGDySgAA1q6Kng (envelope-from ) for ; Thu, 04 Mar 2021 08:03:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 392D91BE49 for ; Thu, 4 Mar 2021 09:03:44 +0100 (CET) Received: from localhost ([::1]:39510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHixT-0004pE-0S for larch@yhetil.org; Thu, 04 Mar 2021 03:03:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHiwu-0004gj-1w for guix-patches@gnu.org; Thu, 04 Mar 2021 03:03:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHiwo-0007Kw-5S for guix-patches@gnu.org; Thu, 04 Mar 2021 03:03:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHiwo-0002Rt-0k for guix-patches@gnu.org; Thu, 04 Mar 2021 03:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46846] [PATCH] gnu: Add guile-cbor. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Mar 2021 08:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46846 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 46846-done@debbugs.gnu.org Received: via spool by 46846-done@debbugs.gnu.org id=D46846.16148449349354 (code D ref 46846); Thu, 04 Mar 2021 08:03:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614845024; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MA1+CvxH3ADj/mHieOMyiyLbUypPre7RNawEqVJqaTY=; b=tXUB3vkg3UPlnlpIQwI+WSBQQiTa/Su6VuPSoqRZYXs6+X5uyjaW3eTjNJ4VaOi1JwoOX+ Q8hki5RfdssNZ0DDox+K98gGnzRWLNXLIpbqiHeJq4h59DkoLoz0qtkRLMP9SL4W55B8iv 9UWfcXJYb9pE9PR0ymnO+ka5G7vaAJkSLEZ3DEJ8G1bkvXzRDirTMI6+VbIVWP2YKiGF/e vtvfZQ2J9y7+ukwzQhnTMHQrSwAY5MsKxPW6n/+SanKgeWgmwqQJL+p15dKunMRGxD5IVd 2hi2XmSlhOyMHQqnbcJoUVO0EW4R9PB4T9lSonpPG0QmlPYgbRd+X0Id7sJIhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614845024; a=rsa-sha256; cv=none; b=JWFH2ji4sLZi+vBN0jBNirAFmZRB/k82WRvLA6mH4LC01csksykHOLA5wAkawUGkJoi5m4 Cb0NtQrTV5Sb8tmvR14ckYnPnhA/kP0LX+O/ns9lgzUW7F5Px6ZT7oddzNazz2lu47HaQ3 eqXUJkzEgI00tzhKZ0RHQ3fZHNkIccSdv0aeUPuBy8maD3BW+00jCt/0yHIBSZfCF5/RVZ Rk5DrP+3qi8PqDeY3Iw4XeOFWqpNGaqSk4sW+jAhvRm9SrNmRofKDABo/Bq+VH3sOt0Bwu Lf1Z6L0RTbAePtd111b5JivylLnEA4arh/+MOk+XDa0qkSUCilOoRouO0FVyXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IT8U3sTo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IT8U3sTo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 392D91BE49 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1B13cA3yLN5V > 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