From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6MmuHOwn8mF28QAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 06:04:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oLoDGuwn8mFYJQEA9RJhRA (envelope-from ) for ; Thu, 27 Jan 2022 06:04:44 +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 0C50B125AD for ; Thu, 27 Jan 2022 06:04:44 +0100 (CET) Received: from localhost ([::1]:43712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCwxf-00065k-5a for larch@yhetil.org; Thu, 27 Jan 2022 00:04:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCwxH-00065W-VR for guix-devel@gnu.org; Thu, 27 Jan 2022 00:04:23 -0500 Received: from [2607:f8b0:4864:20::831] (port=36503 helo=mail-qt1-x831.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCwxF-0001jE-Rh; Thu, 27 Jan 2022 00:04:19 -0500 Received: by mail-qt1-x831.google.com with SMTP id z1so454530qto.3; Wed, 26 Jan 2022 21:04:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=P+U9ibjH9UbPIdjXEORcPm2H2VNHceawuhpKLJPvz3M=; b=PFxn/sLqLFbJjTRBC0971EVd6yMfKKjrbky1swACCDzo8Z9BLTnttrjx5lGdCwf2Ze e7cFeQXxEo0Bdh12+0+KAPv/u2Ac/el+jlKUGusvKz5Sk9xPO+KQ9hAOuWtSrKWw2U/1 DhLDkayYJyc+vmyrxkFITdKlKx0TzQcsE9Mul8WdDuPQ5/OaViEZ6upSdq2JnMUlxBNW uy92lfoi+9wufeLWMHeakTEbxYt36p6k0hcB1NgMUuCGpiKke7BIZZJdzOkNrw+59/RA PY891Bgcyq6dNVSrQgXgpKdCUs+u94kQRcBGAUVW5KGwvOYcod4E/32pWSfEpn10oMVK Q0lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=P+U9ibjH9UbPIdjXEORcPm2H2VNHceawuhpKLJPvz3M=; b=ImK9sfBlW/BmzMKJxlVipjQLbwRWJukQub/+zj4HFKFO30MVWMjsGRQ58yj8t4pZGg NL8ttV5NwQThXw8a+qJmYW4OybnVmWZBGLrg8L3zVKsVHAHWSt48reJb2+7WyC/8p6r6 tKd0belgT/7PWBzs67sYrYm6dKKZvpTnZbC5+NAA+LNHlcfdtUfJOoLpGKjI5yDqqS3T ES1lGsBi0gZN1mOhOItawDwCf710en6GGFhw3fePVTgWiphytVxt31i5IxIrn3Elvd0B YaOjXTkl9vgE7YytEyTiN1+/ToIM6Kop/bGEXh+z98i5V+Y42OBo8IiKzSg81Ad7vSPv gg+A== X-Gm-Message-State: AOAM531Bpgf457qhnwY0Dm+INcXUWuH3Cez8PDyVwcYTfweriVQwDuux feipSgVzFlqNPkwjMgf2cmYMd3uOqPg= X-Google-Smtp-Source: ABdhPJx6qIRWSt7xVytZSJ6JUCC3Rh52FTQlOYk7YygrwOX0RJZ5hVgj4JjVXSnQcft9vfQVuMwp3A== X-Received: by 2002:a05:622a:1b8c:: with SMTP id bp12mr89935qtb.63.1643259855809; Wed, 26 Jan 2022 21:04:15 -0800 (PST) Received: from hurd (dsl-152-51.b2b2c.ca. [66.158.152.51]) by smtp.gmail.com with ESMTPSA id u63sm815313qkh.43.2022.01.26.21.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 21:04:15 -0800 (PST) From: Maxim Cournoyer To: Andrew Tropin Subject: Re: Return back original implementation for text-config serialization References: <878rvp1deg.fsf@trop.in> <87mtjtglxd.fsf@gnu.org> <87o846y24v.fsf@trop.in> <405630188ac22fd2a1f1d0e0555ce061584744a3.camel@telenet.be> <87h79qx5db.fsf@trop.in> Date: Thu, 27 Jan 2022 00:04:13 -0500 In-Reply-To: <87h79qx5db.fsf@trop.in> (Andrew Tropin's message of "Wed, 26 Jan 2022 11:34:24 +0300") Message-ID: <87fsp922ia.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::831 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: guix-devel@gnu.org, Xinglu Chen , guix-maintainers@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1643259884; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P+U9ibjH9UbPIdjXEORcPm2H2VNHceawuhpKLJPvz3M=; b=p7NU1clgTNSR+9P9/EJ8E06cedyYmU9ae452uflBVH75+77MIWmyxWsM18fq9c4+Je6lUg 9m538ar8yseQYgB1500TPYQYIuJ56bStTSzigrEBYJYI+8KAbiYXBMV5TW+5A0o/6U/vrj EhkseSbRTcDqqGIxZMeJ/B0U1vVGvlHZOtWVQ8T3EGl625oUq0vb/124v/6ZeSFf1wIW5v UOsD+077uFZSCeKbyP2D0lL5Ygf6Icw4m6vtJ21jhDxx/jYW+pHl9nfWpTixGJPDH8QttW GE0auUsqYMR5KTvUpXczPh3aDxOlOFs8XVPnoB1UFQhp5aYEEUcUxhkmA+T3qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643259884; a=rsa-sha256; cv=none; b=WK/sjt6B6ssekBUB96Yl4enHNAwYZjfzF+6vWoUKs2ZikCla39rT5C8VvZjprxUa0J9lSw xlGx1QLw8oXjIVXu+I8Nw2Oup66yeVck5PA6hCQk+52K7Zu3T3zuKPAkN2Lkhg+gmjaT4V oUzq8TDEGb95ilaAWZUhp8aJ93cyj65lueZl5d8K5vUQs0CwMt2HVIjKcl9a+a1WR8j1Rd PGwtCYfOD28ezVdYGPaGqilf/CQL5o0zqtJLL+tYBCFiKznaetHIDur6SiVNjpx0loH5DG Sf5sw/MHDg225hTD65V5UZU7c0D7Phn6PZizaIPwH32ZN0S0I1uVUrMzyzIvgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="PFxn/sLq"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Spam-Score: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="PFxn/sLq"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Queue-Id: 0C50B125AD X-Spam-Score: -2.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: HzhuZSmyQtUG Hi Andrew, Andrew Tropin writes: [...] > Ludovic mentioned someday that nginx-configuration is problematic, but I > highlighted the generic problems, which are applicable for many other > guix service configurations. > > I discussed some other pros and cons of record-based configurations in > https://issues.guix.gnu.org/52698 > > and I see the benifits of the records, but I'm not sure if they > outweight the weaknesses. > > It maybe sound unrelated to this thread, but it's actually very ontopic, > because it lead to the design and implementation of home services > configuration approach in general and slurp-file-gexp and text-config in > particular. Pardon my ignorance about Guix Home, but couldn't we have configuration as records by default, and the lower level, config stitching primitives still available to hand craft strings that could be used as the value of an 'extra-config' field, for example? It seems to me the use of records for configurations in Guix Home would be the natural choice, as Guix System users are already familiar with them and it leans to better discoverability/documentation. Thanks, Maxim