From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +IzQJ/nkzWGU0gAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 17:57:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +Bp4JPnkzWFUigAAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 17:57:29 +0100 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 F1B0536FCC for ; Thu, 30 Dec 2021 17:57:28 +0100 (CET) Received: from localhost ([::1]:47034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2yk3-0002WZ-I0 for larch@yhetil.org; Thu, 30 Dec 2021 11:57:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2yje-0002W6-Fa for guix-patches@gnu.org; Thu, 30 Dec 2021 11:57:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2yje-0001vk-6R for guix-patches@gnu.org; Thu, 30 Dec 2021 11:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2yje-0000OX-2V for guix-patches@gnu.org; Thu, 30 Dec 2021 11:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 03/41] guix: node-build-system: Add JSON utilities. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath , 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16408833931455 (code B ref 51838); Thu, 30 Dec 2021 16:57:02 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 16:56:33 +0000 Received: from localhost ([127.0.0.1]:54297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2yjA-0000NN-O2 for submit@debbugs.gnu.org; Thu, 30 Dec 2021 11:56:32 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2yj8-0000N6-UP for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 11:56:31 -0500 Received: by mail-wr1-f68.google.com with SMTP id r17so51542975wrc.3 for <51838@debbugs.gnu.org>; Thu, 30 Dec 2021 08:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=/hgFjgH4XNY8RYLKfJ8vdnzAYELINdF3g27V2p9+Ihk=; b=gw3Mcao3vyYE+aWWg/sE4CAYykuiBIB3iHYLvG0miEVzpmaKwyXC4LjVzDrf3j4nJG soRQsFMBhJkjZKl40J1AyNveC4PG2a3sos4LpS0gi/bBM8mkrbVegVvaEiiW8p/X7/J5 HKGcRogMjTDaclzYrrkyMjUmwWrj+oNziQt8A8YqvuJvGsPtz3UjKBFVLKlWj2fCD6CP EZgUQqECMf95SSgrV/tYAuckYbqmppSQjrN2BYPpDK1Zb8Lh1PxomvPXYaGwm/9vOra7 5AUHC7bZyyF8RN7cxWOnWWesd/FQ6/5GN8lSxq/HOTPr+bj6WTzuH0s9L/038an3WEEl JdGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=/hgFjgH4XNY8RYLKfJ8vdnzAYELINdF3g27V2p9+Ihk=; b=1S4I8yf1ojOKPQAykXx2leFFlFWBpkHeEZi2+0fZWPAsSGdebmbNT0Xf8dKpcSReVS 4n4IR4nWxGtGsuCpa7IywvHNvxAqx8zn5Ed5sVWSNXbwU1JljdwZJmNFFiz8lg29/V2y RiMMWrwLNFwN1+zPNUFgYhRqUW3tyyDhE2q4hmNsWyhHnAabBUb/W9LvLxAB1PeENRnM 4yIvNUPxIQulEd9gZcxZjzFuG0Z4LiWjqwO0D7eGo8fkaVMWf1hQ/FfV60c7DCcAuREr Hkg6L9YcwyKuPjJ0Z8RB4H485ucodz/87k6B6Pl+yG+L0A57VEmgylm/s5tv9DQy3cYg 3jwQ== X-Gm-Message-State: AOAM5305nhjWNBh+UUDqukRhn+FkaxVJYIQ8STkaSoGSyJ2rLLV8Oo2n iRY3bBqHYmrXSEQJJPp7aR8= X-Google-Smtp-Source: ABdhPJy9ZUlp7P52i+M2W4yMAa9ydYL6OE6CtXgizYuGO9OFIoB05Wl4LmKAYinzjqIrQ/TcgpJzCQ== X-Received: by 2002:a05:6000:156c:: with SMTP id 12mr25254833wrz.104.1640883384900; Thu, 30 Dec 2021 08:56:24 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id x21sm86981wmc.24.2021.12.30.08.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 08:56:24 -0800 (PST) Message-ID: <7fff534b3aa615aa43fe4df4f4e36d0941f9b229.camel@gmail.com> From: Liliana Marie Prikler Date: Thu, 30 Dec 2021 17:56:23 +0100 In-Reply-To: <20211230073919.30327-4-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-1-philip@philipmcgrath.com> <20211230073919.30327-4-philip@philipmcgrath.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640883449; 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=/hgFjgH4XNY8RYLKfJ8vdnzAYELINdF3g27V2p9+Ihk=; b=PpU73aVoSbpFFgQrbiwn6zdmtr5haCFWh65K0hmFX1pyBElz6CFZ5T4wZFAeD8NNWakyCP FPbSZ3Uo0EkPLcc4seleKOUQFru8eDWurcrNzA7xkFf4nt1zOzciCzPjoT74VX5ccHRk7I ub5iGANTYLMpQCX5XLMOtnEjwMRE1xXOdm6i8dHBj6u4HSQQtexBchJFYQsjdWg9uDj2hF 1ZFj+tvI8r8l0HSBXalervuA+ZAIdHDSRxOBCig+kfTgrur9OXnl1ECoe/DPz5gFCVcM6G ubrrWcTSQK9v7MPZHhVIQ1phXwoBNlTIpv9YXVYex5JboAJ7qsMwNPJh2s6lvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640883449; a=rsa-sha256; cv=none; b=a/yeNtX93zfVaDeV59sjdYXqu2HcFr706JIUHkyNw6vA11UrfaELLQszuMHe0nhuImjRwu vs7aheGQNTNeVSqrDMAiNETQgmdN4Psqp93GFS3wQaOrBy/fWXu7AdjFvAoyr3JPy+Gdmu /rLRQR5/O/ChmF1VknoOr3OGlu580MAc3WM8JpK3HNOxhUkdGobMJK2XmFK62xSFXclaaW a7wRL5Aj5s04+yubv1AGD1ZBk/ATyZijDB+9yUtzNHEooVrSnaNRaf+sdWMfqB6v3DcDcj Bithk3xko/84MaPHScxCkkIY5vD0Q1GUIGOj1V9jLC5g41LFM0ZCJ9SbdbGt/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gw3Mcao3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gw3Mcao3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F1B0536FCC X-Spam-Score: -2.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: jElq3y/scIdj Am Donnerstag, dem 30.12.2021 um 02:38 -0500 schrieb Philip McGrath: > This commit adds several utility functions for non-destructive > transformation of the JSON representation used by (guix build json), > particularly for purely functional update of JSON objects.  They > should > eventually be exported, but most are private for now to allow for > more > experience and consideration before commiting to the API.  The design > was largely inspired by the 'racket/dict' and 'racket/hash' > libraries. > Liliana Marie Prikler proposed 'with-atomic-json-file-replacement'. Given that this is a fair amount of procedures that you're proposing, I think a new file would be appropriate. Perhaps (guix build json- utils)? Adding that should IIUC not cause a world rebuild, so we could do that on master.