From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iFPdCvyohGPjOQEAbAwnHQ (envelope-from ) for ; Mon, 28 Nov 2022 13:26:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qGQCCvyohGPecgAAG6o9tA (envelope-from ) for ; Mon, 28 Nov 2022 13:26:36 +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 B57951103F for ; Mon, 28 Nov 2022 13:26:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozdDC-0004Ed-6M; Mon, 28 Nov 2022 07:26:14 -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 1ozdDA-0004Bd-EZ for guix-devel@gnu.org; Mon, 28 Nov 2022 07:26:12 -0500 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdD6-0001ZL-GX; Mon, 28 Nov 2022 07:26:12 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4NLPp36XNYzDqKX; Mon, 28 Nov 2022 12:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1669638364; bh=s8PRhDNkMuEvaOPWfrjT6CmT6iiOPEdHh1f913JDqZY=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=VUzv0s10tmlyPCUe7acMubdmsH1qth0XcdfSQk6BAOvOUsqDWw1E3BQ77XeSo8+8j 69lswY21TCUpMHMxEYgONIOT0BrSnTmuS8PZYbEl1IRWGsPI7zkMqdeUIMySzOauCp oYQEe8CfD28du1cGXZFvtCo+Q3QWzEx9cf4VQGkA= X-Riseup-User-ID: B9FFA76309C15CDD288D06D6302D10A39A8B09A4A93C72CD3BED87786A9C123A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4NLPp31PKmz1yQ0; Mon, 28 Nov 2022 12:26:02 +0000 (UTC) References: <20221027035100.28852-1-maxim.cournoyer@gmail.com> <20221027035100.28852-3-maxim.cournoyer@gmail.com> <87leojon1z.fsf_-_@gnu.org> <877d03xywl.fsf@gmail.com> <87sfihfpng.fsf_-_@gnu.org> <86zgcpju9p.fsf@gmail.com> <87y1s82o23.fsf@gmail.com> <87zgckwdtw.fsf@gmail.com> <87sficqb71.fsf@gmail.com> <86fsebdpl9.fsf@gmail.com> <87r0xrjbx1.fsf_-_@gmail.com> From: Csepp To: Maxim Cournoyer Cc: zimoun , Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org Subject: Re: Guile debugger workgroup? (was: Coding style: similarly-named variables) Date: Mon, 28 Nov 2022 13:24:46 +0100 In-reply-to: <87r0xrjbx1.fsf_-_@gmail.com> Message-ID: <87tu2jgt9l.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669638396; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GzyeAHM28bb5y3heXGdLN0xj+FWqdr7TVkcz8/4ujsk=; b=aFOKB3yWdlOsIT+Kxioc+wIbUl5cyax6sSIc7yyV2n5+kbiWA7dLcptF0bX01Ors1zhP+R 4liZzzO26fMIH3I6JPwsZvOGkkqpLRJyVRSyCaexNR4yMoD4MF4wCR//UeBWnrshB2hHA6 40EgvZwxglnRJp6ferVFLtQByZ/XsfzCnrMXHDzbX/N11K8eAAiyu9hjs0p4Yeus/n77do K/88LoCBxEyOzHXdlyqnL8kmItGRLFesKv+TORXXfYd+4d24nHP4skeEOngkYVc5G+kig0 JTTnLTSpdg/4qZNjciYnWEzTnIMRZkEUjm/qlCj06OI6luOvcKttW598/1kzcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669638396; a=rsa-sha256; cv=none; b=cot+sEjyxLnvt83fefKgIEIopQw7ieey4r5qarruCk6emLONAYSY/YAPlP7JrHc4bIT1oW URyUoPY2wDw8mLHo2mQr9WqcSD9zpj9meVr9rUouOC6ZOyhQKjzxqBENwruAe+VQxdzlp1 +lbBG9/BORTup9SM2eX1HDGxhE3yqxDAS/ZZ3agfU5lTabNgOvgibKUZfdDgj3VGVsiwuM aQqmUC2Yy3ITrmeZoJ7ExOhXTNF2lwbtncuQrt4iSaYBaNRJ1xroWAACRGbyN55cGH18rK EpDxLwy7rzmY7Z5QX6/hOViZMw/2v4uxu49RxGIDZcsZuGw3+fwBPegnHi/DCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VUzv0s10; dmarc=pass (policy=none) header.from=riseup.net; 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.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VUzv0s10; dmarc=pass (policy=none) header.from=riseup.net; 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: B57951103F X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: I9kmn33d0RrH Maxim Cournoyer writes: > Hi Simon, > > zimoun writes: > >> Hi Maxim, >> >> On Mon, 21 Nov 2022 at 15:55, Maxim Cournoyer wrote: >> >>> In practice since using breakpoints/a debugger to debug Guile code >>> rarely works as intended (in my experience hacking on Guix!), we >>> typically sprinkle the source with 'pk', and that point becomes moot. >> >> I totally agree! Preparing some materials for introducing Guile to >> GuixHPC folk, I am trying to collect some tips and, if I am honest, the >> debugging experience with Guile is really poor; compared to others (as >> Python). For example, DrRacket provides an easy and nice user >> experience [1] =E2=80=93 where it is easy to compare each intermediary r= esult in >> the debugger. For what it is worth, I have not been able to have some >> similar inspections as in [1]. Maybe, I am missing something=E2=80=A6 >> >> Well, IMHO, we are somehow suffering from some Guile limitations and >> improvements in this area are an hard task. > > I also agree! It's hard to convince people to pick Guile for their > project when there is: > > 1. Lack of a debugger that can break and step anywhere in your source > code > 2. Lack of debugger integration to an IDE (it's not even integrated into > Emacs) > > Perhaps we should assemble a Guile debugger workgroup that'd review > what's broken, what's missing, what can be borrowed from other Scheme or > languages for inspiration, and hopefully improve the Guile debugging > experience? :-) Can we also get a profiler like Python's Scalene? I'm pretty sure there are some performance bottlenecks it could help identify, both in Guix and in Guile itself.