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:19:08 +0300 Message-ID: <83ill2agtf.fsf@gnu.org> References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> <87pmfa4xib.fsf@yahoo.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="25394"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 08:19:54 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 1oesKP-0006VB-V3 for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 08:19:53 +0200 Original-Received: from localhost ([::1]:54304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oesKO-0002b9-Sd for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 02:19:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oesJq-0001vS-7q for emacs-devel@gnu.org; Sun, 02 Oct 2022 02:19:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oesJp-0004P3-P4; Sun, 02 Oct 2022 02:19:17 -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=RLiSgpM+S9QfH+tWki0eTp84OUlLVNJT4vJwToY6WpM=; b=Uk1qofJm5H+/DahVMy99 bKywz8t+DJxPuqZ0xb2XxphULXOT8uVA8lPYFVLrimA+YXFFsV0slv9pMCcLQrI4BsEEGCmOfYLcj hAbmt7K5vM7oASyTLLVCF/U3JI7+d+lAeSowZ5FKtEOLsbhDVPkMKUYEopWxfm5k+v1R4lOkQ9sZx DMWAneqm1PbqpzvNupDU5LKoYVYvR2nxhTznoQwU5ISivGtW2ThdqnqQ0wAaEOKGWYqgqQ99OgUvZ FxbgH4GdBT7Y3l1Kxni+OVCx+trElvVyyhQ2s9EeI2vlIAIxY3vAjV/GE2oHHyZbaEX8IzpCR607U VI/NP/ICiDMuHw==; Original-Received: from [87.69.77.57] (port=4819 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 1oesJp-0004JO-7p; Sun, 02 Oct 2022 02:19:17 -0400 In-Reply-To: <87pmfa4xib.fsf@yahoo.com> (message from Po Lu on Sun, 02 Oct 2022 13:15:08 +0800) 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:296581 Archived-At: > From: Po Lu > Cc: emacs-devel > Date: Sun, 02 Oct 2022 13:15:08 +0800 > > Yuan Fu writes: > > > 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. > > If that's a problem, perhaps we could import the tree-sitter library > into the Emacs tree, like the XMenu library currently is. Again, I don't see why tree-sitter should be handled differently from other optional libraries. We might discover good reasons for that after we gain some actual experience, but up-front I see no reason to assume any special issues. IOW, I think we are "putting the cart before the horse" here.