From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Lisp files that load cl-lib in problematical ways Date: Wed, 08 Nov 2023 13:01:36 -0500 Message-ID: References: <87il8betof.fsf@dataswamp.org> <83fs3dgxv8.fsf@gnu.org> <835y38qvlg.fsf@gnu.org> <87bkcx6eci.fsf@dataswamp.org> <8734y7p7sz.fsf@dataswamp.org> <83v8b3mcuj.fsf@gnu.org> <87jzrjvze8.fsf@gmx.net> <83r0lrm4gj.fsf@gnu.org> <83edhqu2bj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39595"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: stephen.berman@gmx.net, incal@dataswamp.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 08 19:02:29 2023 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 1r0msm-000A5T-UC for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Nov 2023 19:02:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0ms0-0005Ho-Sa; Wed, 08 Nov 2023 13:01:40 -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 1r0mry-0005Cb-6a for emacs-devel@gnu.org; Wed, 08 Nov 2023 13:01:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0mrx-0005iX-5G; Wed, 08 Nov 2023 13:01:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MYubgrz+8L3nLYInwMDmtjsiq5Tfq5Cb5+utKj0J+NU=; b=rj7JMXkbHw6cIkZZLf82 ZFc7QxWfendqPRo1f9b/fLCyahNLrBgGAa/pFn7s6ubflaBSDsXYY4ZbWWtvwpGLyXNB0LFRIFaYM HQQyCV5DkZ9BBvC7I8HZeGzVzHx+JwhhgMfx8ERMgcotQdi8HOoUE2HtBw9PABqUrJ5lYNz6MSfq5 QpXz5b8K0qdpylvAc8Q8uCKHWqYt3f4Ra0k05YF9niEbTH1UWQ3/tosL+zcL++5BHq1EJXVOCvnuI m+XDW2j8V8g67VC6GvjGZkoOHQaqm36WzCAQ/kueSEEH2RpFKS0YE7mtpOY1GdrCVYlpzqfcAxeNa O6iP3fRUiwFK7Q==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r0mrw-0007IN-Rd; Wed, 08 Nov 2023 13:01:36 -0500 In-Reply-To: (Andrea Corallo's message of "Tue, 07 Nov 2023 05:51:57 -0500") 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:312356 Archived-At: Andrea Corallo writes: > Andrea Corallo writes: > >> Eli Zaretskii writes: >> >>>> From: Andrea Corallo >>>> Cc: Stephen Berman , incal@dataswamp.org, >>>> emacs-devel@gnu.org >>>> Date: Thu, 19 Oct 2023 09:44:51 -0400 >>>> >>>> Okay, I confirm that comp.el loads cl-lib, so any jit compilation >>>> triggered loads that. >>> >>> This is OK, not a problem. >>> >>>> OTOH one thing we could do, if that's important, is to split the code >>>> that only drives the async compilation (that actually happens in a >>>> subprocess) so we don't load cl-lib in the Emacs the user is actually >>>> using. This should not be that hard (optimism mode on). >>> >>> I don't see the need, but I will not object if you want to make such >>> changes. >> >> Okay I'll think about it, might be a positive change even leaving aside >> the cl-lib discussion. > > Okay in scratch/comp-run we have a branch that does not require to load > comp.el for jit compilations and for installing already existing > trampolines (compiling a new trampolines indeed require to load the > compiler). > > It achieves that adding comp-run.el for runtime dependencies. > > Still the compiler is loaded for C-h f, to solve that I think we'd need > to add a third file (ex comp-common.el), not sure it's worth ATM. I think what is now in scratch/comp-run does what we want. If there are no objections I'll push it to master after some polishing in the following days. Bests Andrea