From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Hosting tree-sitter pre-built language definitions on ELPA? Date: Wed, 12 Oct 2022 00:00:17 -0700 Message-ID: <13AA97F0-144A-4C44-9109-3111B55BE215@gmail.com> References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 12 09:04:58 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 1oiVnV-0004DG-IE for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 09:04:57 +0200 Original-Received: from localhost ([::1]:34502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiVnT-0006Jt-GY for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 03:04:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiVjI-0003Pi-Qp for emacs-devel@gnu.org; Wed, 12 Oct 2022 03:00:36 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:35692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiVj3-00076W-Ba for emacs-devel@gnu.org; Wed, 12 Oct 2022 03:00:36 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id h10so15438515plb.2 for ; Wed, 12 Oct 2022 00:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jKDTzVIPkwOAzRLAQXYq3bStVCyC5qlIgAVB6oCAPbY=; b=V4e/ePa9C5G5Tz1zGljSM97rKnblbFqAoliVwcGxmykZ00SEgtfRKjSO5m+lIDV5O1 Kh1ZfpEMJWr5HLeq+WcAveow7p8Y6GRdozIFkj2Qjfnfas4T2Tz2WqpANS/+V6xP1imm wmlwHy4kkpFztWl92W0d5cv+tgkkW+rSfRASjpKVBmnL/dxnhYAsYicV1/X2QKb02Jvb 4ilW86tcnCBKSI/2MnKRRKT+0NiRIu2PDArOOqd+G+FZkBjKLLZmrKTZr6SJapHtAtSW my5IrnyMWhVAHTx//WidX8/89nFJMdlV5E/LqoLAIENryQXX+X/eUTPMMr3xmG/+qBez Vafg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jKDTzVIPkwOAzRLAQXYq3bStVCyC5qlIgAVB6oCAPbY=; b=Ohk7EKzI/DP82A06bYfGkYc6VNkwcbL7yc8y97Z3u9FQV2zYbElcXCJpSVyRfk0qzc N69KFvpfR2Mn4MN5HxtNzW3xs7g/IBoVbTVGI2K4C5hANhkIunKHw3fpdquJgqO226eT IK/VZj4Y+5kJUgufYUzBWYESjb0+80i4kKq+XFlgjePkKj0rs3S4JHRVpdnWOFliZLDj Mk9SKjhT1geqXAW+SwBVpfiIQnS7S0gKBKNBXg1uP06oRHRNtZ8BCrRQzH8HEL1rJHAN 8Cl5SorXbWuzL+It0AHgsYGQqsn13Hmyu4FeoEj07L9vw3TzDc/E8URmOEQtF6vVATA4 Wc+A== X-Gm-Message-State: ACrzQf3KWv1ZU+UCJXaxk99nK4Q5cr+97gyflDhGHB7O+EXOVddpCZTg jB4fyZWZ6kyU7inGwkea/16kt5m69WfXTA== X-Google-Smtp-Source: AMsMyM4sGmQClG+T712WHA5RKjkN0ENbHrTbmcOFTNiPm2PM+AfHDAAw2nGsy3e2sjb4N1XmldAX4w== X-Received: by 2002:a17:90b:38d2:b0:20d:8f2a:c4ba with SMTP id nn18-20020a17090b38d200b0020d8f2ac4bamr1166448pjb.209.1665558019856; Wed, 12 Oct 2022 00:00:19 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id e15-20020a63ee0f000000b00434760ee36asm8829711pgi.16.2022.10.12.00.00.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2022 00:00:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=casouri@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297577 Archived-At: > On Oct 11, 2022, at 1:51 PM, Stefan Monnier = wrote: >=20 > Yuan Fu [2022-10-01 21:47:11] wrote: >> 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? >=20 > [ Coming late to this discussion, sorry. ] >=20 > We could consider it, but as Eli mentioned, it's not clear what we'll > need, so I think it's best to wait. FWIW, there are similar questions > for Emacs modules distributed via (Non)GNU ELPA (such as the `libpq` > module), and currently we just don't do it. >=20 > Note also that the native ELisp compiler brings GCC as a dependency of > Emacs, so if that becomes the norm, we might prefer to just build the > language definition locally from its C version (which is not actually > its source), and maybe we'll want to host *those* i.e. the = pre-digested > language definitions in their C form. >=20 > Hosting them on a gnu.org machine would make it easier to make their > installation (semi)automatic since we usually don't like to download > random code directly from third parties with which we have no > shared agreement. But if the language definitions can be installed as > Debian packages, it might not be necessary at all. Sounds like a plan. Before we notice, they might have all the languages = bundled for emacs build ;-) Yuan