From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0DqhA+ZbiGAeRAAAgWs5BA (envelope-from ) for ; Tue, 27 Apr 2021 20:45:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OEfXOuVbiGDiVQAAbx9fmQ (envelope-from ) for ; Tue, 27 Apr 2021 18:45:57 +0000 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 B8D7F17325 for ; Tue, 27 Apr 2021 20:45:57 +0200 (CEST) Received: from localhost ([::1]:35290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbSia-0000Qr-SN for larch@yhetil.org; Tue, 27 Apr 2021 14:45:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbSf7-0006zB-3F for guix-devel@gnu.org; Tue, 27 Apr 2021 14:42:21 -0400 Received: from mira.cbaines.net ([212.71.252.8]:35944) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbSf1-00074i-S1 for guix-devel@gnu.org; Tue, 27 Apr 2021 14:42:20 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id C664527BC7C; Tue, 27 Apr 2021 19:42:13 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id f9888c22; Tue, 27 Apr 2021 18:42:13 +0000 (UTC) References: <20210421152914.461bbdbb@lubrito> <87bla6iwli.fsf@cbaines.net> <20210422170040.37941083@lubrito> <875z0ehyl3.fsf@cbaines.net> <20210422180208.28473e41@lubrito> <87zgxqggw9.fsf@cbaines.net> <20210423181551.01c42455@lubrito> <87bla4hdto.fsf@cbaines.net> <20210425171507.6a259017@lubrito> <87o8e1foly.fsf@cbaines.net> <20210426161103.0647ee3f@lubrito> <87im48g2s1.fsf@cbaines.net> <20210427101001.0242f90e@lubrito> <20210427153335.1e23f35e@lubrito> User-agent: mu4e 1.4.15; emacs 27.1 From: Christopher Baines To: Luciana Lima Brito Subject: Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons. In-reply-to: <20210427153335.1e23f35e@lubrito> Date: Tue, 27 Apr 2021 19:42:13 +0100 Message-ID: <877dknfu2i.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.23 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 Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619549157; 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; bh=oz9KtZ4ZUt1ZvNPsibdUCO3DTpnTLN7X0wxk9pOQcb4=; b=kC6aYrzkx7wK9sp2WHBTqn5xy+O8jWHxZmpuJDAiTAoMVTdyk4hb1qy/o0/oQWUf2LvKOQ wQNew7ZNAmjmk2zkzdtRRnRotWohMMmT8pbRJKRpbjyURhkytWuwWo/DaVQf3ctC+ViiBj /0uezD0PkLOVHniC5c8VGdtrReNmybTAlTmnCx7a76L6DcaWy06GXC1a7vwVtbDSl7v2PM j7PNKVCQ2wNFn9XMrhwx/uAkvT5bD2UvJRq0+rMNvdh765GCzUNRI2WsyC4SGkqqxQJrZp 4TsvTTXXN91G3LhchEFmDcFFwF0jZClpDK7KmB4Mf1ayEW0XPJXL1ZHBbAFeTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619549157; a=rsa-sha256; cv=none; b=TUfjNzqXDJfa0UdGxThsQ5P1G7+8+rQQrEyh/AA85taqZiCKFSaEYGsGJIbMh3WZonG2vP /mKRGLkrLENNOHXgXotXUDaNVDo3wjsJjcD2pyRogKmsHyVlPl3LS1D26m7qJasK/fWjln +A9OiZBhMhhqNSUWLve+Cwf2RLLcFTLULdKr/OLHoeKNHDqQNPL84yMEeeVG9OoBvMMZ26 Bfv6+6UIHZ6YQZfyrUE93YUkHU8XtLRhd2YXZUQt0XAFefsh3Oj5H6XKGOiljm0HLMwuqx ctNEpJDUu9TkyHQ48Cml/QRbPsP4enDY7m2OrVXLfFmRL4XFv+VTGP4P3CF65A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: B8D7F17325 X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: jFfR5iaGIsmn --=-=-= Content-Type: text/plain Luciana Lima Brito writes: > On Tue, 27 Apr 2021 13:10:01 +0000 > Luciana Lima Brito wrote: > >> > Maybe add another procedure that combines group-to-alist but >> > generates an alist with vectors as the values? >> > (group-to-alist/vector maybe). > > I did it! :) > It was so much simpler. I created a function > group-to-alist/vector, based on the previous function, to which I added > the map I was already using on the controller.scm for data-groups. > > (define (group-to-alist/vector process lst) > (map > (match-lambda > ((label args ...) > `(,label . ,(list->vector args)))) > (group-to-alist process lst))) > > The only change needed on the html.scm is to use vector->list in the > items, like this > > (map > (lambda (alist) > ... > (or (vector->list items) '())) > > Please, tell me what you think is the best, this way or the other that > I sent earlier with the patch? Great :) I'd go with this approach, applying the comments I made about the match-lambda bit above in the email I sent a few minutes ago. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmCIWwVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfEQQ//WAD8w8rMpPb9uI3UPmFfPEaRH7qWttwq DqX2BmvePDPpzhu0v9nP7YOtww6EO3sOZWGcbgc5mhFRmCpr08w6RsdheLYYVle7 eZ/B1tPaaCKyKIGTQXs9u2nC0TU6BEZwbDbM3exaiUomCL0HlybreeryDvxAQIpd zuJz3DUgqUo7riul7zxNvN8LCpWgdMFoml/MXNY8x+cUoRr60GaI0mgcQY0v9mKD EitChQXPt+qxxbXG6fita+wk/YAQdBTFvd1fKjLEItzZKEUegy0vIuQtnNcvhulw yR6fNhuPNnBuhtV7Lj0pKptaOQGDBIjVekV3ZgmAC2J+URekSwhvwSrX/QkzWctp 1Q8oJuE2xP+AVv0UXU88ZlLT7QD5lGcVYlas4NcZLB3NYsxZB/LAXiWmx3n5rqsI 83oAGT1UaSa1HrAzruzze9krQ2FJo1kH7eubcedwlbw4ws1Axmfw8cvawhxMsTNV XmvNyUUW1gAbFvVqgmEqaSkqhK7+QUu1qoCwWaSOnTL/+xrcvYF+e+Wd0A/6EySv EkPGS1Z+LZj3N5UepU5lliUqSB8yAZZ0z5lZ9PoT3uTHMnjbgXgTv8Szu1Zkg/1/ XYOucmU3Xbh8OojHPUBJul9VZEwEUQYd+/X2zEWynI03FxPapHTo0QL4BV9KbdpU J7lJlObqO5E= =PkHh -----END PGP SIGNATURE----- --=-=-=--