From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments) Date: Thu, 24 Nov 2022 08:50:43 +0000 Message-ID: References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <4c5f4b07-3df6-d700-83f8-9a9d1b684afc@yandex.ru> <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> <87o7t2vj19.fsf@dfreeman.email> <877czqtyfy.fsf@dfreeman.email> <87zgcml7g7.fsf@gmail.com> <2ba04533-097a-a1da-ff3f-2c9506fd488e@yandex.ru> <875yf9bbzb.fsf@gmail.com> <87wn7oa0aw.fsf@gmail.com> <7a5b76fd-fb15-8c1e-ea29-bf11f7e0d2ae@yandex.ru> <87bkoya815.fsf@gmail.com> <0024a67d-b8e5-b35c-1b22-82541a170eb3@yandex.ru> <871qptai4d.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003401db05ee337c23" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 24 09:50:19 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oy7w2-00047c-IT for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Nov 2022 09:50:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy7vV-0002XQ-0G; Thu, 24 Nov 2022 03:49:49 -0500 Original-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 1oy7vS-0002XC-Gt for emacs-devel@gnu.org; Thu, 24 Nov 2022 03:49:42 -0500 Original-Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy7vQ-0000qP-B7 for emacs-devel@gnu.org; Thu, 24 Nov 2022 03:49:42 -0500 Original-Received: by mail-ot1-x32e.google.com with SMTP id p27-20020a056830319b00b0066d7a348e20so547901ots.8 for ; Thu, 24 Nov 2022 00:49:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RTCoKJLFzhiwTxbXB9Vg8MT9oTQhjpLudAGbYnVtlLY=; b=HVlqh+ZPJfVPF8zXdzT31cd49BqvoM1xJgsb7grqNlC+mk+/1sLap1uDaVfDtWt0kG LKrPYMviBJl3Boqj4qbRn3jCAuvhXJ1q8/cH5/UMfCXszduD5m2KYnwX6/7F6acnTC5a OnJuraOgBFSKZ4a9vveWwjjHaRk/zT0QQYcgfo6EYVrzKCR33PO1PapUzn+9xCZ0dsuv OtmrpsZRk1BI1J+1AatmEbN58PVPxgYaerJmAsFiVhFMprC8Jt0lc5+AT40zkP140YMC wsQulpx0h00wDflYAYatomhxSHkZH3M+licU30Wbdht+Kzne7Zy3lbEM9I6LAceuN62b HcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=RTCoKJLFzhiwTxbXB9Vg8MT9oTQhjpLudAGbYnVtlLY=; b=aWPCFUgsfrWqbd9sD5ATWnGiusjKfkxwKGWLJqs8yDYtt69Win/jGItdkwZGpr88NQ oiPMsWHOx7yDuag4gaPOvqkR209PgDDMw5wIJQlwCQ39gnXWYuuhC2+dUl8wMeE1ZZ5h OpvzmeLzy0GGB3Z9aEMk+AyBs+SZKVpC09CVmHh3xci1Tk5yv0eP7/YgIaP/Blar+16C mzoX14/aJ8G8GRhLgQ63L1A8FCdJuHhlVwnKUctxMnEFx2xMspokMiaSYrdyiD2r95ya 3kb6yBzpkE/FiyyU4m3QT6pR8h8YP0jpEZL5lWnlJ9kGj4R/sf2nNvyMBGh/ByUr812U Gksw== X-Gm-Message-State: ANoB5pl4yJgdysTka2g1F8zdwQYsN3ATHCzdMH12mYN8KiWiyYjpDabp CglBNgcFR86Km5JspG6uisBWJvGknVvdmphRmnI= X-Google-Smtp-Source: AA0mqf6uCjn7m2Us7NkCT7Szka6pLeftaVwloC6iYFkCAtplXYSU7x+IxhNyCZ3mBb7SpggWhTB5jG3PrroF01XAfVU= X-Received: by 2002:a05:6830:6019:b0:661:cac2:79ca with SMTP id bx25-20020a056830601900b00661cac279camr10775895otb.93.1669279778077; Thu, 24 Nov 2022 00:49:38 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=joaotavora@gmail.com; helo=mail-ot1-x32e.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300433 Archived-At: --0000000000003401db05ee337c23 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 24, 2022 at 3:01 AM Dmitry Gutov wrote: > On 23/11/22 15:57, Jo=C3=A3o T=C3=A1vora wrote: > >> It would be much more helpful in a dedicated bug report where we could > >> discuss the details, collect the votes and see what kind of design > >> will ultimately satisfy the requirements. Instead of drowning it all > >> in this thread, which is only moderately related. > > I think we're doing fine here but I've changed the subject line to > > "unbury" it from the thread. > > You're fussy about proper bug reporting in your projects, but somehow do > not extend that courtesy to others. > I am indeed "fussy" about "bug reporting". But here, Dmitry, I am not reporting a bug. There's no minimum reproducible recipe, no error to report, no surprising behaviour, etc. to speak of. We're just discussing Emacs development... in the emacs-devel mailing list. I can't understand what is discourteous about this. > I'm imagining that traversing a directory tree with an arbitrary > predicate is going to be slow. If the predicate is limited somehow (e.g. > to a list of "markers" as base file name, or at least wildcards), 'git > ls-files' can probably handle this, with certain but bounded cost. > If the user wants marker files to mark the roots of subprojects, we'll have to access the file system eventually because that's where that information lives. It would be a minimal and essential access. If th= e user is discontent with that performance hit (I really doubt it), then the user may use other means to mark roots of subprojects, like the one I suggested earlier. In particular, I don't understand where "traversing a directory tree" comes in. That part is completely absent from the solution I am putting forth. Jo=C3=A3o --0000000000003401db05ee337c23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 24, 2022 at 3:01 AM Dmitry Gu= tov <dgutov@yandex.ru> wrote:=
On 23/11/22 15:57, Jo=C3=A3o T=C3=A1vora wrote:
>> It would be much more helpful in a dedicated bug report where we c= ould
>> discuss the details, collect the votes and see what kind of design=
>> will ultimately satisfy the requirements. Instead of drowning it a= ll
>> in this thread, which is only moderately related.
> I think we're doing fine here but I've changed the subject lin= e to
> "unbury" it from the thread.

You're fussy about proper bug reporting in your projects, but somehow d= o
not extend that courtesy to others.

I a= m indeed "fussy" about "bug reporting".=C2=A0 But here,= Dmitry, I am not
reporting a bug.=C2=A0 There's no minimum r= eproducible recipe, no error
to report, no surprising behaviour, = etc. to speak of.=C2=A0 We're just
discussing Emacs developme= nt... in the emacs-devel mailing list.
I can't understand wha= t is discourteous about this.
=C2=A0
I'm imagining that traversing a directory tree with an arbitrary
predicate is going to be slow. If the predicate is limited somehow (e.g. to a list of "markers" as base file name, or at least wildcards),= 'git
ls-files' can probably handle this, with certain but bounded cost.
<= /blockquote>

If the user wants marker files to mark the = roots of subprojects, we'll
have to access the file system ev= entually because that's where
that information lives.=C2=A0 I= t would be a minimal and essential access.=C2=A0 If the
user is d= iscontent with that performance hit (I really doubt it), then
the= user may use other means to mark roots of subprojects, like
the = one I suggested earlier.

In particular, I don'= t understand where "traversing a directory tree" comes
= in.=C2=A0 That part is completely absent from the solution I am putting for= th.

Jo=C3=A3o
--0000000000003401db05ee337c23--