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 20:06:12 +0300 Message-ID: <83a66e17gb.fsf@gnu.org> References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> <87pmfa4xib.fsf@yahoo.com> <83ill2agtf.fsf@gnu.org> <83sfk61gf8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35543"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, casouri@gmail.com, emacs-devel@gnu.org To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 19:07:06 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 1of2Qj-0008yk-3V for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 19:07:05 +0200 Original-Received: from localhost ([::1]:55722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of2Qh-000285-Ul for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 13:07:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of2Q2-0001Rk-1D for emacs-devel@gnu.org; Sun, 02 Oct 2022 13:06:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of2Q1-0002Ws-J2; Sun, 02 Oct 2022 13:06:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AzAtM83n4CO9vZ4Z2go112xP28XnlJ2M0cwSqSK1WG4=; b=j5zIOX/wJMAV Ki19LVn99wsrlBszNboQZekALdcprhGaakC4YqF2aJcLzh5ItqcYp3VloJmutsI3ZVRcaxLvea0OU 0plEAWOj9ncwgOjImEBA/yu6ShV7zbYw/MtaLtsPP8IzAQ2MHp+fbHr1xDn14eNR9kGIlF5qwoJS/ jkX4lsaD1DNfaofHnZVTU5epOhx4R1ByiUu5iI135N0QTVE8JSpTZObes1Otsnt0hbHw6TjvOHmVy it/7jpRBhv8SWnl77XgN/389j+xO/NyRviQCVsAMUVKqWv3XxRhryYa+XzlCKodf/s7qXIYmrIx3n 26kfVXL88JptV3LONE3z8A==; Original-Received: from [87.69.77.57] (port=2941 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 1of2Pz-000218-RF; Sun, 02 Oct 2022 13:06:20 -0400 In-Reply-To: (message from chad on Sun, 2 Oct 2022 12:36:23 -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" Xref: news.gmane.io gmane.emacs.devel:296645 Archived-At: > From: chad > Date: Sun, 2 Oct 2022 12:36:23 -0400 > Cc: luangruo@yahoo.com, casouri@gmail.com, emacs-devel@gnu.org > > On Sun, Oct 2, 2022 at 9:52 AM Eli Zaretskii wrote: > > We are not talking about changing the language definitions, we are > talking about installing the ones provided by tree-sitter. The use > case you mention is akin to your wanting to modify librsvg -- in which > case you'd need to start by installing Rust. > > I _think_ I disagree about that analogy. If I want to use tree-sitter with a language that is not already somehow > installed on my computer, I need a language definition for it. Right now, I can either install Node.js and build it > myself, or download a binary from github. Is there another option? Yes, you can download the C source of the language definition and compile it yourself. > IIUC, the current expectation is NOT that > an emacs+tree-sitter release will bundle language definitions for every language we expect the users are > likely to want, or even for, say, the top 10 languages already supported by emacs outside of treesit. Is that > understanding incorrect? Yes. I don't think it's fair to expect the Emacs project to provide such degree of hand-holding. It would place too much burden on our insufficient resources. If downloading and building the tree-sitter language definitions is too much for many users, I expect the Emacs distros to provide prebuilt packages for that.