From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mPMwIKRtqWWHLwEA62LTzQ:P1 (envelope-from ) for ; Thu, 18 Jan 2024 19:27:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mPMwIKRtqWWHLwEA62LTzQ (envelope-from ) for ; Thu, 18 Jan 2024 19:27:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=UMeDCBpP; 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=1705602468; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SB5pBTU+VJbjh4n61eISKyo5OcSq5HGB02Z1xKfYM34=; b=AIayMA1NQRFh/ZR2z16Td86r0zxa6PQ32bhvZuGnAQztvmL6oqCUzUxATYypMnf2cBsvfZ blOfVnxT/17AoH/zA2WTXYzCehM3jTd369aKwjyVfDBOxOFJ9WxBesS0mVqmzXfUoWCxaW fhB7GgeEg1zjRA9qzFUyFrbcGW3a7fkUWrPHUQ5ADEH22aT2GQ2iNOHyX286KV9uuwEcag FswYDwprXQuiZCrdTOG5DQZQ28EttMl6+pvKjuRgaaLHgRvmtgps8yBBDiPiXB/RXrRv42 ZXglHOFgNIJVyzCrwCeTvMWkzorT1PVq1K+Nt2MHxoaEKqufV3fxIFIV9YOCPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=UMeDCBpP; 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-Seal: i=1; s=key1; d=yhetil.org; t=1705602468; a=rsa-sha256; cv=none; b=dBd4piC/qvsAYdqzAtJRku11dRLS2qtG1a97FeFfamVmjpTylat6X4yMaFEA8g1tDz4aNq 5pgr9bBzNK58wipGzQBN8atNjSe+4VpX1Ia83qHEan05qMFbc7aLrT++WCvxuAMTzB0uS1 Z430qZhL5FWn67XD+JGMnbT2wl8/2hAZNgEPDni+5JG6OR3bY3g3x1hH+nRKkeOLdD0qLD vC6XOGfuH9T3hsM530JHl+eh3ZrZ+JGv96r+0IT9dq8HDd99qDBf5B175C2jQ9lvS/0WCs tB4lAMrBq3F4jjCWYqftFRXYba732GtwX9agUb7Au6L8/DTmSw3jFZfWw4g58A== 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 70C7F2045F for ; Thu, 18 Jan 2024 19:27:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQX6N-0005KP-SZ; Thu, 18 Jan 2024 13:26:55 -0500 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 1rQSoE-0003iI-FF for guix-devel@gnu.org; Thu, 18 Jan 2024 08:51:54 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQSoC-00083A-SK for guix-devel@gnu.org; Thu, 18 Jan 2024 08:51:54 -0500 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-42a12d150bdso9527481cf.3 for ; Thu, 18 Jan 2024 05:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705585911; x=1706190711; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=SB5pBTU+VJbjh4n61eISKyo5OcSq5HGB02Z1xKfYM34=; b=UMeDCBpPVLG/3PYi8RB9DDojAOEI1x6NPlDOKQloKS5E31PSniNIPV7qpoEWh5plCX +ASWep4POZjIMyuw222KslspPm7jQryzJGPYES4jEIuECGUwZO8h1hHVBZwrovodUU+z Cj+udnj6mjNQyKRbwJVbDoQHCzhmaC+C9WVeeQSSf8kkC39gni+aPnR1BsVllSOaOpUe 1YbZQrfbDH0vca84vQRXITOU58IRzEMpPkQIIbAo0feyf7CzuruBk0kDW6HwskA60fNT ZsATOfjZanmzYw9w/lHtAhZA2Ir9T2UQQYVA7RknC5y4u1HsSOTk3L6BG8LpaeOAXqQB 0Z2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705585911; x=1706190711; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SB5pBTU+VJbjh4n61eISKyo5OcSq5HGB02Z1xKfYM34=; b=L879W0Bdl7NhHkfSmSvg3kmV0gYdqgQq09GJGEq/Asf249CD+AdEsZG1nFRC2y3uGH ojr+9qXcWBblj4tGZmFnLM4nfeTrAF4Bm0Yr+t+32WcLBlN4BAD637M7xOnQ2x1Z5guC rjwWJifWVouOvCSByZBcQwDfJOvT20GRmATAXcg+T70n27Aom9A4NRSuq6dGO841XSG/ khhPftyLE4RdpR14mpOeCpfNnaUDm48RFzQYIbsHUagRJr+A8ssZy2aqAAtKwrLNsEZG rzIwoGmdvhT94U4g/S2EOZtKFXQEwp3tCjLLzTJZ4u9g3iCDnQXrfu6KU4TIaxVhjIHi Ql8Q== X-Gm-Message-State: AOJu0YxJaX4vqBP2LGF4NxnIoQ07DcG2QAvCi6GrUhSkQViWf2wtb1bU 50ofcz5fP1NcSooSxL+hd+LFoTT7dmbtMGDngMHtn9Yx36cz2h6re9Ag+ry7SQv87YWkxiiHKl2 3a/9JUrPhpbhfwP38lczDBcRDNd0Zsuna85Rm0A== X-Google-Smtp-Source: AGHT+IGrJgwlRU2iQlekbL2miNxs2W7AH8dLKrxHd5JbecxpsNStslgxIjRPXldOgDmXkSGbIuGcelszvHTVD6MF1lk= X-Received: by 2002:ac8:5a95:0:b0:429:a3be:1a05 with SMTP id c21-20020ac85a95000000b00429a3be1a05mr811843qtc.85.1705585911419; Thu, 18 Jan 2024 05:51:51 -0800 (PST) MIME-Version: 1.0 References: <87il3upczg.fsf@retrospec.tv> In-Reply-To: From: Rostislav Svoboda Date: Thu, 18 Jan 2024 14:51:15 +0100 Message-ID: Subject: Re: Guix CLI, thoughts and suggestions To: Ian Eure , guix-devel Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=rostislav.svoboda@gmail.com; helo=mail-qt1-x82d.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 18 Jan 2024 13:26:54 -0500 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.61 X-Spam-Score: -9.61 X-Migadu-Queue-Id: 70C7F2045F X-Migadu-Scanner: mx12.migadu.com X-TUID: bVO9PVpk4usc I find the discrepancy regarding two dashes '--' is annoying: $ guix package --list-generations=1d ... $ guix describe --list-generations=1d guix system: error: list-generations=1d: unrecognized option $ guix describe list-generations=1d ... And more importantly, I'd be happy if the CLI and REPL syntax were united, so that there's minimal difference between a shell command call and a Guile function call. E.g. following would do the same: $ guix :show emacs scheme@(guix-user)> (guix :show emacs) This would greatly facilitate the shell-to-Guile script conversion. (This way, for comp-sci newcomers, it's much easier to see what a (bash) shell, with its quirky DSL, really is - not an interface making computers easier to use, but a barrier obstructing you from properly using computers as programmable stateful machines. See https://www.gnu.org/software/guile/manual/html_node/Prompts.html ) Unfortunately, the '#' indicates a comment-start in shells and, as AFAICS in the source code, we prefer the #:keyword syntax over :keyword. (Here, in the first step, on an experimental branch, we could try to add (read-set! keywords 'prefix) everywhere, just to see what breaks ;-) Cheers Bost