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, 25 Oct 2023 18:31:52 -0400 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="7013"; 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 Thu Oct 26 00:32:44 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 1qvmQd-0001fA-Ix for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 00:32:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvmPs-0005Tn-Pb; Wed, 25 Oct 2023 18:31:57 -0400 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 1qvmPq-0005Td-Vl for emacs-devel@gnu.org; Wed, 25 Oct 2023 18:31:55 -0400 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 1qvmPp-0001tC-Fe; Wed, 25 Oct 2023 18:31:53 -0400 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=c8bSAv+VvcYr+4n8Ligq7zqsaXIeVW+O1UHee2MdW/4=; b=m+qE+sa00jZGuyGKmowg c8dDfHy69GJw0VslmVx2in/618vY4DPtj7q8f+ZK3wbDY+GZf8LQq517/6xRGdW+XBo8zgz8pxjOF 2qgsiM23xg6EmF/kuLjLTZX9S1SrSkp97fHHVlvBQULyxNlKDaGzLt4NPBHr8fKSqoqmqe1eHZRO3 pXpCRcJozuFngI9mS/iNBhcaI4hYjaDuTkRJ+m/puE/H2vVbk8eB3kChsIeUPVopKlqfByoaIgKpL vXDkk2Y0K499YXCDQm5NQ/zeUi68CDYAWQhz3MBL40ej5topi/rIoC5yiL4I+aQr7GB13E6t5afbR tkB30iZ5K2JDuQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qvmPo-0002iS-IW; Wed, 25 Oct 2023 18:31:52 -0400 In-Reply-To: (Andrea Corallo's message of "Wed, 25 Oct 2023 18:02:52 -0400") 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:311869 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. > > So I did some experimentation (scratch/comp-run branch) where I splitted > the code needed to run the (async) native compiler at runtime into a > separete file (comp-run.el). > > I think it's a good change as: > > 1- instead of loading almost 6000 lines of compiler only code > (comp.el+comp-cstr.el not including dependencies) a normal user now > has to load only ~500 LOC. The rest will be loaded only by the async > workers. > > 2- it is conceptually correct to divide the code needed at runtime from > the one necessary to actually compile. > > 3- at the first startup on my configuration only gv.el gets native > compiled! That's a little more sorry for the mistake, in this conf the list of native compiled files at startup is: gv.el compile.el ansi-color.el comint.el text-property-search.el ring.el ansi-osc.el display-line-numbers.el Andrea