From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yLAGOgCLsl8SRgAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 14:21:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4PznNQCLsl+fcQAA1q6Kng (envelope-from ) for ; Mon, 16 Nov 2020 14:21:52 +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 4EDB99402C8 for ; Mon, 16 Nov 2020 14:21:52 +0000 (UTC) Received: from localhost ([::1]:35462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kefOB-00082H-6K for larch@yhetil.org; Mon, 16 Nov 2020 09:21:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kefNz-00081t-Ke for guix-devel@gnu.org; Mon, 16 Nov 2020 09:21:39 -0500 Received: from imta-36.everyone.net ([216.200.145.36]:35192 helo=imta-38.everyone.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kefNx-0002uM-AT for guix-devel@gnu.org; Mon, 16 Nov 2020 09:21:39 -0500 Received: from pps.filterd (m0004960.ppops.net [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 0AGEIPCU004027; Mon, 16 Nov 2020 06:21:31 -0800 X-Eon-Originating-Account: J8pMwpSeW75DsQp3wm2WUNhVkd-eWzdDnOulv_iwKF8 X-Eon-Dm: m0117124.ppops.net Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 5a81c3b1) id m0117124.5f8a0284.52f0ac; Mon, 16 Nov 2020 06:21:30 -0800 X-Eon-Sig: AQMHrIJfsorqBOahsgIAAAAC,8fd5e2e5f01ff78fc5d2faff0dcfc332 X-Eip: 7kRNdcRFkLAX-VM9JDWcinpDf_F5feZFu0wkxX-Vu-w Date: Mon, 16 Nov 2020 15:21:16 +0100 From: Bengt Richter To: zimoun Subject: Re: Discoverability at the REPL level Message-ID: <20201116142116.GA10128@LionPure> References: <86d00evkmr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86d00evkmr.fsf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-16_05:2020-11-13, 2020-11-16 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 clxscore=1034 adultscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011160087 Received-SPF: pass client-ip=216.200.145.36; envelope-from=bokr@oz.net; helo=imta-38.everyone.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/16 09:21:34 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 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: Bengt Richter Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu 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-Spam-Score: -0.51 X-TUID: jxD8tR3DxpE9 Hi Simon, On +2020-11-15 14:02:04 +0100, zimoun wrote: > Dear, > > Preparing the online Guix Days, maybe this discussion is worth. It > echoes first with the talks “Guix compared to Nix” then with the recent > discussion about Emacs-Guix [1]. > > > The topic is discoverability at the REPL level. > > > Well, I have a proposal draft «“guix repl” and beyond» that I never > sent, where the ideas was to discuss ’~/.guile’ and how to extend Guix > ending with these questions: > > 1. Does Guix want a system of aliases? For example, let the script > “~/.config/guix/scripts/foo.scm“ and then ‘guix foo’. > > 2. How could the API be more discoverable? > I find this bash script useful: --8<---------------cut here---------------start------------->8--- #!/usr/bin/bash echo "----from apropos:" guile <8--- Just name it, e.g., guap (for GU.ile AP.ropos :) chmod 755 guap then try e.g. guap string= --8<---------------cut here---------------start------------->8--- ----from apropos: (guile): string= # (guile): string=? # ----describe: - Scheme Procedure: string= s1 s2 [start1 [end1 [start2 [end2]]]] Return `#f' if S1 and S2 are not equal, a true value otherwise. ---- --8<---------------cut here---------------end--------------->8--- Have fun tailoring to suit yourself. Maybe some variations on restricting the apropos output better than my grep :) Or add some other ,xxx stuff or guile code to taste. Note that you can of course invoke guap from emacs like inserting the output of any bash command, as I did for the above snip (writing this in emacs as mutt's editor choice). > 3. Is the experimental ‘guix repl --gui’ reasonable? > > > The #1 popup’ed up in #38529 [2,3] and it is not related to > discoverablity but not orthogonal either. > > The #3 means open Guile-Studio or any other front-end and echoes the > recent discussion about GUI front-end [4]. > > > Therefore, here materials about the point #2. :-) > > > (The attentive reader is waiting for parametrized package PoC :-) and a > first discussion and arguments are this long thread [5].) > > > Feed back and ideas welcome. Especially about: > > There are probably several ways to address it, including the > unbound-variable hints and documentation. > > > All the best, > simon > > > 1: https://yhetil.org/guix-devel/87tuttci4z.fsf_-_@gnu.org > 2: https://yhetil.org/guix-bugs/87y2jie1aj.fsf@gmail.com/ > 3: http://issues.guix.gnu.org/issue/38529#60 > 4: https://yhetil.org/guix-devel/CAF-xJgsynM3KSzuM__f9dSPUC0epJ2QKdFwDftiLhTTuMfaTxw@mail.gmail.com > 5: https://yhetil.org/guix-devel/87woitz1xx.fsf@gnu.org/ > [...] -- Regards, Bengt Richter