From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Unboxed package manager Date: Tue, 21 Mar 2023 19:29:51 +0200 Message-ID: <838rfq6mi8.fsf@gnu.org> References: <57668895-8EEA-44F7-BD46-9CDFAA11FD2C@gmail.com> <08b5f766ddd9da754a86@heytings.org> <08b5f766ddf4b33993cd@heytings.org> <08b5f766dd896dfbed4c@heytings.org> <83jzza6xwk.fsf@gnu.org> <08b5f766dd0f765bb1a9@heytings.org> <83edpi6vl4.fsf@gnu.org> <08b5f766dd05e9469540@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: owinebar@gmail.com, casouri@gmail.com, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 21 18:30:28 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 1pefoZ-0003wA-Vl for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Mar 2023 18:30:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pefnt-00022w-Bq; Tue, 21 Mar 2023 13:29:45 -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 1pefnq-00022V-0O for emacs-devel@gnu.org; Tue, 21 Mar 2023 13:29:42 -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 1pefnp-0000n7-MU; Tue, 21 Mar 2023 13:29:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9YbGaTWgG3Hk39t/0g5oYcUKIrTXOv8byOyzws0hSL4=; b=TYPPbggS00KnE2Z9NamK blx1jShyizX4ajr68DHZwmCUZRVvUorfo5taQzdXR0vw69b+TW7zKEbKtG5lsD71riGsvSRnZGj5r SoQGykRGkzQ/mX+pKBGZZpGLImKjmnQGrA1/k/SHaepqjP/Wa6Pga1qgpJ4Fz8sZ+9kzgMd/NwUoT mZCcZrSJTBPfSFLm53bILBIFYeAbScJPBUVkbLyT8RhXnNok2hvtvV5yoMEgz+WMDqXllRqbwWBil gwVyqY20bgM5ggSCbiCNkqwrcyRusxMwrit+v4JpDC5cQlc0XR7o2i010mB1oXoDuF8sIrY9xNenW Np4sBARv7QGuWA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pefnp-00076y-3B; Tue, 21 Mar 2023 13:29:41 -0400 In-Reply-To: <08b5f766dd05e9469540@heytings.org> (message from Gregory Heytings on Tue, 21 Mar 2023 14:20:41 +0000) 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:304676 Archived-At: > Date: Tue, 21 Mar 2023 14:20:41 +0000 > From: Gregory Heytings > cc: owinebar@gmail.com, casouri@gmail.com, emacs-devel@gnu.org > > >> I'm not surprised, but I wonder whether it's possible to do better. > > > > Yes: load each package with an explicit absolute file name, without > > relying on load-path search. > > > > Of course 😉 But by "doing better" I meant "to improve the way Emacs uses > load-path in such cases". Why try to solve a problem if it can be avoided altogether? > Likely with some kind of cache. A cache will not necessarily help, and you will pay the price of searching it at least once. It should be clear that enlarging the length of load-path is not scalable, unless we make it a hash-table of sorts. And I'm not sure we want this kind of complexity for such a hilariously marginal use case.