From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id INt+MC+/HGS6ewAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 22:05:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CJykLy+/HGTVvQAAG6o9tA (envelope-from ) for ; Thu, 23 Mar 2023 22:05:51 +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 87B9E101F4 for ; Thu, 23 Mar 2023 22:05:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfS7d-0001BQ-RW; Thu, 23 Mar 2023 17:05:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfS7c-0001BE-Tu for guix-devel@gnu.org; Thu, 23 Mar 2023 17:05:20 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pfS7b-00045U-2X for guix-devel@gnu.org; Thu, 23 Mar 2023 17:05:20 -0400 Received: by mail-wm1-x341.google.com with SMTP id n19so37895wms.0 for ; Thu, 23 Mar 2023 14:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679605517; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=6JIf3k9uWyCxlr+RO9qL5reWtfcdsb7K2Chx0DfPN+Y=; b=iLM7L3TYZW53ewLv0ZpRyImrznEpD9+8lZ6AFmib+Mwm+RBLP9Z37yULQVBxaMQLqY aFhu/un2xbiMu9JiKmXVVVX4MGdD2OUJS29dFneJ8iqGotqaXKQ7Lu+GxuwBCn9R5P3D P/h2OpTOTdLM8WxaUq9gcnytLIfc39RzkNvVNC3dExiAuvF3Rolk01d+EWokgqE5/8+F qJdGZ6vFjiS5WA0d1cFMVLaZGKu//ZpzDuRBx8GmTA+WJGW9xvhxXnIknOqTy+M6e/66 VlcogADJh+LW98O27S9rsMcrYdAKDjMqkztF7kHrNUC1EhBSBgb4cBvcMY1Bdo/A3tm0 aUDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679605517; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6JIf3k9uWyCxlr+RO9qL5reWtfcdsb7K2Chx0DfPN+Y=; b=STF03sjT5Di4At2KSdr3Ce71ucU8RxSvTPXbBNHtrTPf38d0iCkhjH/VgLYY0lnXLi mQppjlW1m8ndrQwgbnNVBnlH3vubgpLYXkdelc6uk5eLreSqycl7FZFRBKfrRfyoFQXJ aTpfo9UIDV5zT/d8ZA2MokcmrAYEpFaTNgo/U1JRbmhxP5ZABI8GS9BT368A1oRCeB9A HZ1R9x1tHu9qQo0PMmj9Rt7vJtJvF/rkscRJPsfYu+rP7GHPdz7Cve+27JRxGkVu0mNB QRs4TkZmRRT65zuyNfKQoJ/oF++0YNFTdXFtepn7F4y5vRw0HTEU4h4Z+yFPRZMdGsjL gbaA== X-Gm-Message-State: AO0yUKUhqzueH/7HUUx4QyAaJslVAH+Zu4f/ONgqwUfmbM5GRBB6m4NZ RN8FxIwMtG/An3eYbYGAMhg= X-Google-Smtp-Source: AK7set900mMoKVZaZBfjD2IRKfcMD4NMPj27uRdWk/CjshjEPcH49Aatir/RjENMwE0ftX6N4FBjVg== X-Received: by 2002:a05:600c:d2:b0:3ee:9909:acc8 with SMTP id u18-20020a05600c00d200b003ee9909acc8mr648841wmm.32.1679605517064; Thu, 23 Mar 2023 14:05:17 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id n26-20020a05600c3b9a00b003e1202744f2sm3089566wms.31.2023.03.23.14.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 14:05:16 -0700 (PDT) Message-ID: <00a646ffef325a530117a64499548ee0f21da3b0.camel@gmail.com> Subject: Re: A friendlier API for operating-system declarations From: Liliana Marie Prikler To: Edouard Klein , guix-devel@gnu.org Date: Thu, 23 Mar 2023 22:05:15 +0100 In-Reply-To: <87wn377rst.fsf@rdklein.fr> References: <87wn377rst.fsf@rdklein.fr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=liliana.prikler@gmail.com; helo=mail-wm1-x341.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679605551; a=rsa-sha256; cv=none; b=iYiEmVatDDqRhJWq7fjb+in6QaLxB84GuFm2QdyirrFdSy1PJ8gdaxDR8Lo8hZMB11EG4v r60nX7NZk/POVJGvdvLO1HkGmxcz3w6L2alJ+Xpb4KlZHHY1MrhIrDsYsuDDVepsWzUA0G EGSmTPc6L7fzQRv1J5398QMuuM2hhapB3j1hCnPh99GsWI8Dab77cjHpi8mhN85x8kaTmk bhpMGSWp1c8zNjzafgCazmxBCPV2VQiUu079bjmpSH4ppHMtUppqiP3PV8R3owXFHIDtEm v0zmKc90hj+LHCp9whwVZuzUAlIt3vBCZ+b+38esYhbqUvfPRZjwFmQpm8TuxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iLM7L3TY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679605551; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=6JIf3k9uWyCxlr+RO9qL5reWtfcdsb7K2Chx0DfPN+Y=; b=GKpbQcnWVt0g59/8dUL2kn1L+8o6xHVeROnHaGjw7jNDyAsg3tCt+T8sigun7lsIykz362 FF5bbUT2xSxEQmIRgmv84M4xsUapnPqEQA26Gevw62dHYsEJHIDI+U3ltWCM1A42Jo4BJZ 0iN+GhjWL1mKHbggf9rvyBqDJEj8cxz8PqMqt6pbsaTGPtsFUIHYtpQjjgW5pdBssjJZ5w plOsYhuTdYDSptmsVxqPXo24NN/n31VO4xbpkn/VtMKm7KgyZcwRydgWqhT/KVz1CmDZOC QQWQuBrOYkupCN4Y5wMAaceeAj7AUOk24pleLk+GzK9OAzAx2iyvD4tgOVJj5Q== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iLM7L3TY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: 87B9E101F4 X-TUID: vfa61uaw6veD Am Donnerstag, dem 23.03.2023 um 09:06 +0100 schrieb Edouard Klein: > After a few months of experience, and positive feedback from my > clients, my question to you guys is: would you be interested in > mainlining this, or should I keep my development efforts separate in > my channel ? Having just dropped a series of "old-style" service procedures, I don't think that maintaining a separate API on the mainline is a good idea. > I do think this API is easier than manipulating services, and > although extendable services are awesome and a very nifty piece of > engineering, they require quite a good knowledge of scheme and take a > while to be used to, while this new API, while way less powerful, > lowers the barrier to entry for newcomers. I see how this style (and a similar one that has already been shown for guix home) can improve configuration file clarity and that's a good thing. On the other hand, it looks like you currently have to manually craft a lot of the procedures that go into the -> syntax and that's... well, not so good. If we could enable this style easier =E2=80=93 say if we made it so that define-configuration and service-type also emitted ready-to-use constructors to use with a keyword style at little extra cost other than compilation time, I think that'd be a net positive for everyone involved. Cheers