From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKnwCR9a+mG3agAAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 11:17:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OLbiAR9a+mG3NgEA9RJhRA (envelope-from ) for ; Wed, 02 Feb 2022 11:17:03 +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 CD728277C8 for ; Wed, 2 Feb 2022 11:17:02 +0100 (CET) Received: from localhost ([::1]:50102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFChB-00070Q-SL for larch@yhetil.org; Wed, 02 Feb 2022 05:17:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFCgI-0006yw-Sm for guix-patches@gnu.org; Wed, 02 Feb 2022 05:16:13 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57605) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFCgD-0006Ij-U3 for guix-patches@gnu.org; Wed, 02 Feb 2022 05:16:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFCgD-0000FW-OR for guix-patches@gnu.org; Wed, 02 Feb 2022 05:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52555] [RFC PATCH v2 5/5] substitute: Fetch substitutes using ERIS. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Feb 2022 10:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52555 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: ~pukkamustard/eris@lists.sr.ht, 52555@debbugs.gnu.org Received: via spool by 52555-submit@debbugs.gnu.org id=B52555.1643796915898 (code B ref 52555); Wed, 02 Feb 2022 10:16:01 +0000 Received: (at 52555) by debbugs.gnu.org; 2 Feb 2022 10:15:15 +0000 Received: from localhost ([127.0.0.1]:51502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFCfT-0000EQ-IF for submit@debbugs.gnu.org; Wed, 02 Feb 2022 05:15:15 -0500 Received: from mout02.posteo.de ([185.67.36.66]:57605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFCfS-0000E8-1m for 52555@debbugs.gnu.org; Wed, 02 Feb 2022 05:15:14 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1867C240103 for <52555@debbugs.gnu.org>; Wed, 2 Feb 2022 11:15:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643796908; bh=F24uZxUR4m0QVFxi1PSJnCdTyIx4BfXDU2yMpXzp3Eg=; h=From:To:Cc:Subject:Date:From; b=AITTuw9Lej+lm1oZ3xSAgd20JXrXi7cfFZ2vUT4W3Acqrjfaott1ZOH/TAUMWiSLO h49scgS2+1Lq0Qyva3WbPEWASp3Hbd4A8Tcp2T/ubxVpS7cDWw58YqMiQJkbH8DaxK BeWF/oZ7hHr+aeUuP/YRiI2ozPtkkc1+FnaL9fd7HLeRdXaiup+lyxER79LMf4RnEb mcRIXYyVz7bHoCtRs3EX4E2MdTHCCfAvwBo2nC4hYk1YqKV78HV1EWOd+L1Or3E1bS lXv66xaAmU5PCy8bRUu/Nc+UdJMwTO/Blb7FtTJFyXAPLZ2cZtm70SFxYnnvs1gVHm SfT+wFQ4odTHQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jpd2y5QZzz6tpG; Wed, 2 Feb 2022 11:15:06 +0100 (CET) References: <20220125192201.7582-1-pukkamustard@posteo.net> <20220125192201.7582-6-pukkamustard@posteo.net> <00bb85fa4fb62498b354ecb78d248df5209b6f29.camel@telenet.be> From: pukkamustard Date: Wed, 02 Feb 2022 10:11:18 +0000 In-reply-to: <00bb85fa4fb62498b354ecb78d248df5209b6f29.camel@telenet.be> Message-ID: <861r0linh1.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643797022; 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=F24uZxUR4m0QVFxi1PSJnCdTyIx4BfXDU2yMpXzp3Eg=; b=hJHjQbeAYGa7y/BEYOssbvKr0q9cKKSHFFFILIe1SSKU/WlTzNEyoEibuCBEFd2xHBk0kw CdJf/xZTyuohwg+9nKC+zAdDAZ55lOhdSqFZW1kFXs6Aot3RD1PV45Qt0tQ2JAW3WCZmMB 9KchTEJhP+h5+bXZMVJgbDc/JHIWJYagHsPzxmixE+oVYvSWcVzCL4I+2qCBsabrxzRxmd zl9MNi3J9G/oGKYCfAVoxtmMSsqjfuHXwPayCZ9rxsfcQlOvw0eL99W72/F+M2AIlqk5Z6 udnnmd2+Flp+7jjVXIUU3YGWoi+lMz/aPT8bqFbmWTtuViXsriWzefHtSLDKKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643797022; a=rsa-sha256; cv=none; b=mPqxHAYOcQbhjQ+/aPFH54bPvWsuoSWmNDSlPevr1kJeSN/4DWYM43bpeCpKdlGW2GBpa+ ZRWyvXTsR3HsDHiUCvCFy7hXx2ibSA0JuBfVTo3paTXF9FGxr0rp3z4Kkbnlq1ZADmjdvc jpHYtrRtbyEv+VwYi3eE1owHyV947Saai/kEmABfjksX34eEe8rTGJJASMUtZaMU2tt8+V 4jW/vp1RIJfvdUtUMToqwB2sxWo4ZpHCandwA/b8HXBGEO8BQLH5By7S5K10TylruZfE8M EijAVKQhdEUeowiigmy6FutgXIiUUHwQfh3fUSRfwf1hwwkCswXi4m38Jqv2SQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=AITTuw9L; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=AITTuw9L; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: CD728277C8 X-Spam-Score: -2.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: Cu2g4WWJw8IY Maxime Devos writes: > [[PGP Signed Part:Undecided]] > pukkamustard schreef op di 25-01-2022 om 19:22 [+0000]: >> +(define (guix-eris-block-ref ref) >> +=C2=A0 "Dereference a block for decoding ERIS content" >> +=C2=A0 (eris-blocks-ipfs-ref ref)) > > 'guix-eris-block-ref' just calls 'eris-blocks-ipfs-ref', > so I'm not seeing the point of this procedure. Yes, currently it is an unnecessary level of abstraction. The idea is that when there are multiple backends/transports they are multiplexed here. E.g. guix-eris-block-ref would attempt to use HTTP/IPFS or whatever to get the block. Whatever calls guix-eris-block-ref does not need to know from where the blocks come. I hope to make this more clear in a V3 that will add HTTP transport. -pukkamustard