From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GHzGEywyJ2OdAwAAbAwnHQ (envelope-from ) for ; Sun, 18 Sep 2022 16:58:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CCGlEywyJ2P0aAEAauVa8A (envelope-from ) for ; Sun, 18 Sep 2022 16:58:52 +0200 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 0BA83A624 for ; Sun, 18 Sep 2022 16:58:52 +0200 (CEST) Received: from localhost ([::1]:35492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZvkx-0005xG-8u for larch@yhetil.org; Sun, 18 Sep 2022 10:58:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZvkn-0005ws-Dd for help-guix@gnu.org; Sun, 18 Sep 2022 10:58:41 -0400 Received: from mx1.dismail.de ([78.46.223.134]:20726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZvkl-0005aj-Uj for help-guix@gnu.org; Sun, 18 Sep 2022 10:58:41 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 01ddb42b; Sun, 18 Sep 2022 16:58:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s= 20190914; bh=4jMHq8rL1GpUjE/pSC7TONiMezPwSCXv+FOKED2XnzM=; b=Oxz kt0hFadidegVz111QZqYFjAT5DnzGCEQev4YIVlNMMtvtHV89beFLzmC0jQTxERg D6uniM8kbAEazaRnjO3D6bqXnEC0/IxWGK9VicQM7Zx7Atj4hPRXs/67DQtnR3ru tUMbZDCc58EzFkmaQoSwKXyG5wyW07NgyKBdm6alqP1Xtuu4SQH7CkW/aux3j+Yr BnDZbTWDH3Nzp1A+CeJpUxBha+PypBbiWpABp6XuDNSkglmUC6KuFOzvLvEgjz3U 0fLXrfStvzNGETKBGIqSKBv0lkRI1tlbrf3dt+3GnzDavVJAQrjqiyF+aGdoUpZH vTAA9K/8M6k2b6+3eFA== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 5f94215d; Sun, 18 Sep 2022 16:58:36 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id fb9a8f4a; Sun, 18 Sep 2022 16:58:36 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 8aac512f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 18 Sep 2022 16:58:35 +0200 (CEST) Date: Sun, 18 Sep 2022 09:58:36 -0500 Message-ID: <20220918095836.GF24593@dismail.de> From: jgart To: Ricardo Wurmus Cc: help-guix@gnu.org Subject: Re: Why is the scheme record needed? In-Reply-To: <87sfkpj0y5.fsf@elephly.net> References: <20220917110336.GB18579@dismail.de> <87sfkpj0y5.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663513132; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=F+Q9ZHk1rHHm0lSI73875x9wVXxK9aDRiPS70hoYZiE=; b=QtI2+SQ0FqptbOa62He0JHM6yYsKu1BD4k3li5/wtjJxo7vWdoqUxNANYq4WWeizkTWSD+ RbQzqdGUT7pXBN0W2LQrwGL/WV4P1ICJ/dPoFnFU0xuUnxGBDDwdjUhDwIA4TeKFlw/4WH GLtzxD4/jA0V628vQNMblTBXTFL+Ry3brs/BF4t7YhwotkF6lcNkI5czS7Mqw6MZxo8Lzr OBx/KNqtyb1bNkZHdINeJGCPckYjnlawu1+onK6GKxWrhi5X6OjSsKZx2GCXVFwp3Q19Sl Q3X8oOq+zAkWaiSTwyaahDW2DqcRFNjDgREf2X/THc3B4sBY0GwzyDOnKjbgtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663513132; a=rsa-sha256; cv=none; b=DB8dbzu8NfUcNuauEhFNBgZ6XRgaVltNmAMUtxEQNm9pLfphq+/wWl5yoLRxKSqvaFXvIx 7G5prrfXg3cB/CtNYkwXO7E4C9JcjtqjGGWjq8Jd3vv8Ubsrmv9vF0YtThXpoJmFd1TM8h JHT3CjP/0DJ/QglaRVJk8L0k2e9rpeZvNX+03HuSns3rsmWwAkNm3i1qEWEEAgl8mpj4zS X+x3+QnScYX42KxNcf5OqBmwLfJt3G1/Li0dbcVEJeuqapGTGB4peHvh4PJfPtYfnw2H7m Slr9qbTU8FvYR36puFiFIQm+aSS+BDdfnBTH1RrLiLdLfiNOqkCuntGO0JBtfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b="Oxz kt0h"; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b="Oxz kt0h"; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0BA83A624 X-Spam-Score: -2.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: wNXIl/OSxEQY On Sat, 17 Sep 2022 20:41:43 +0200 Ricardo Wurmus wrote: Hi rekado, Thanks for the explanations! Much appreciated. Here are some more questions: > It is a Scheme representation of a derivation, which also has an on-disk > representation. Why was the scheme representation of a derivation needed? Was it primarily so that we can inspect it at the REPL like a scheme object before it gets sent to disk or is there some additional reason? > Everything that the daemon is asked to build must be compiled to a > derivation on disk first. From the perspective of the daemon there are > no first-class packages, only derivations. Much of what Guix as a > library does is to turn package values into derivation files and > builders to feed them into the daemon. Why are the bags needed? What do the bags solve in the system? all best, jgart