From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UEDtLFVPeGZuxAAAqHPOHw:P1 (envelope-from ) for ; Sun, 23 Jun 2024 16:37:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UEDtLFVPeGZuxAAAqHPOHw (envelope-from ) for ; Sun, 23 Jun 2024 18:37:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=gRNS1kTU; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719160661; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=DytI2TAj6SMPC2+5Ax3gmsCJoqyUB3/Q8ubBattqmVU=; b=sdztPQsf/ZA6xGeVWDRG2wfMpSjFCGgzeDJIiOJD55PARkW1dO3qX1NaO8gvZQzXsJwdHg UpeIgC2n94RMHTobSjSeAeWsGKy4sYcBlbbE4C5MaCwY0kp7z4Jvz1NFiYAh+z9GHlZFEM zn/5VjhLHqCRMnh6fXjNyeqh0I6r7GNLBJeMq75FoKPHLVRzKynYufRYTVKutVOXaxtDMx 4t21bMxwjwRwFBldKYq4F2AkyX19qxxTkuxTcbn79lvC6Pfp7TKqRY+bDeQUBQoMhw17SM QiGOeF1BatsBdhUBLba/+xul5fsI1DEHMaHVyBL4IPuTciifuDUnSPdb/o3BoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=gRNS1kTU; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719160661; a=rsa-sha256; cv=none; b=GK+5cp+mOjw/+R+3Euq3NzpMfhZ2Qsron58dDv0C8M7EC3VuSe460wyK0iuF5uMZvDAysK nJwAyMShtmDYEjzVw7l0pfObOOrOI9/ewgoOs8cGNJHkDPUTt0F9n9Za99bQp/LvPNgFyX bW7EEqFYasGeVb3DgLc0qRgrNHsFgbiAoh3XOIt8RvD+x7dweEbeKGHzMxbcGuoqrB6WQp F7g4FdhzV9vq6jeiqd9DWJ30152VleHGOV9YI/H+cqnIz30F0M2jqezCMV6iwUqlVCkMtY dnvKXb1uK12vW/0HCz/XXnnZRKKb9QOHp4pgrUxD7+lRPd3xcaj6zPjk0P3C4A== 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 250F1618EB for ; Sun, 23 Jun 2024 18:37:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLQDF-0007Ox-NT; Sun, 23 Jun 2024 12:37:09 -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 1sLQDE-0007OU-9M for guix-devel@gnu.org; Sun, 23 Jun 2024 12:37:08 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sLQDC-0007Z9-6h for guix-devel@gnu.org; Sun, 23 Jun 2024 12:37:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=Optodx+mUu2GFlP Gg+fSLsaXAfss2EYhEDH1Ktw+8/0=; h=date:references:in-reply-to:subject: to:from; d=lease-up.com; b=gRNS1kTUZNmp9hJNhnlqWq1esZUbumcKKlnQVyLxTym RbZ6BrU3hegoS9MEbkOcl0TJuTdiOM8rmgD2Bm5OcCqEZhlbqUb1Sdbcr+QljbAYXfTbWl D5x5DN043srO8tenUxbpzGgYR4Vm87kLEwOpLQUhakK1uLiSmV+1lyj0dY= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id ec8142d8 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 23 Jun 2024 16:37:03 +0000 (UTC) To: Tomas Volf <~@wolfsden.cz>, guix-devel@gnu.org Subject: Re: Proposal for removing some serialization limitations of define-configuration In-Reply-To: References: Date: Sun, 23 Jun 2024 09:37:02 -0700 Message-ID: <87le2vlioh.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.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, 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: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." 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 X-Migadu-Queue-Id: 250F1618EB X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.80 X-Spam-Score: -6.80 X-TUID: Tg7suFtPm0SU Hi Tomas, On Sun, Jun 23 2024, Tomas Volf wrote: > 1. I need the serializer for `name' field to wrap the output of other > serializers. Is it possible with nested configuration records (which I remember are complicated to set up)? > 2. I need to serialize key-file and key-type as one (since they belong on one > line). Yeah, I've had that issue, too. I am not sure the field-based serializers are a general solution. > I did not figure out how to achieve those except by a custom > procedure: This has the obvious maintenance issues though, so I think > it would be nice to be able to utilize the existing serializer > infrastructure for this I probably find the custom serializer, which is in one place, easier to understand than passing the record around, but I'm ready to be convinced otherwise. In any event, I'm a newbie so please feel free to disregard. Kind regards Felix