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: Hosting tree-sitter pre-built language definitions on ELPA? Date: Sun, 02 Oct 2022 09:17:00 +0300 Message-ID: <83k05iagwz.fsf@gnu.org> References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> 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="16243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 08:18:00 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 1oesIa-000461-4X for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 08:18:00 +0200 Original-Received: from localhost ([::1]:44576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oesIY-0001CQ-NB for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 02:17:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oesHn-0000Vu-Dx for emacs-devel@gnu.org; Sun, 02 Oct 2022 02:17:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oesHl-0004Fz-S0; Sun, 02 Oct 2022 02:17:09 -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=/c3ZFz2Ihv8tBJFzDeCpc3OXv8QjDGxpsCNRE+qMjLU=; b=D9IFHn/TGuZtEPwPPS26 nGfLz8RB7Ss/vhujPhxDrBctriTeuXEGLS8URfP2EXfqb2RwFIkqMC40bg1kpJwrRCaclLYOV40VM 0+V3sbFBhF95h6/tEDAWwSIu4I1y9lg3Odevj0LJNEb8cugcDQOFRNmQCMKjlxlIoWOyU8PUldnTj oYj3Q/ZtmQJJvFm9bSbZyjN41DTzUaiuFGEfVTEMFhJLuBeMgbtna0f6TfUoI43vEPLTzBjjH1L0J MPAbg2zwLC3ZC8AATg6fxONAxEGE0IqYMRwFqvr/pDnL/oh8v0STzT/KfrFfkOMyckR6+SUkc25gd tEB27g4iFo0MwA==; Original-Received: from [87.69.77.57] (port=4685 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 1oesHk-00045w-PZ; Sun, 02 Oct 2022 02:17:09 -0400 In-Reply-To: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> (message from Yuan Fu on Sat, 1 Oct 2022 21:47:11 -0700) 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" Xref: news.gmane.io gmane.emacs.devel:296580 Archived-At: > From: Yuan Fu > Date: Sat, 1 Oct 2022 21:47:11 -0700 > > Tree-sitter needs language definitions to parse different languages. These language definitions come in the form of dynamic libraries. We can’t bundle them with Emacs since their version must match that of tree-sitter library, and we don’t bundle the tree-sitter library; also they are machine-dependent. > > I wonder if we can host pre-built language definitions for languages we provide tree-sitter support OOTB on ELPA, so users can easily download them? We could, but how is this different from any other optional library Emacs uses? Users who want to build Emacs with an optional library are expected to install that library from whatever 3rd-party sources that make them available. What is different here? Is it really that hard to download them from the official tree-sitter site?