From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Hosting tree-sitter pre-built language definitions on ELPA? Date: Sun, 2 Oct 2022 09:37:04 -0400 Message-ID: References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> <87pmfa4xib.fsf@yahoo.com> <83ill2agtf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000417a3505ea0d5373" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16791"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 15:38:27 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 1oezAo-0004G0-Kn for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 15:38:26 +0200 Original-Received: from localhost ([::1]:60466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oezAn-0006Ba-Id for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 09:38:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oez9o-0004hu-DD for emacs-devel@gnu.org; Sun, 02 Oct 2022 09:37:24 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:33750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oez9l-0007C7-3o; Sun, 02 Oct 2022 09:37:23 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id lc7so17523785ejb.0; Sun, 02 Oct 2022 06:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=DGWqXuQY79DSEzANhRv8VB10W0K8r3MCpUvibM9tPsI=; b=E6oU6+F57aV3AVk7mxXgRPtG6J1AO7kl+B1N9cPW5niJgXPqfKnPHomwEgJtJlLN9z qGDE3mp+YCSUYTt1HYT/Y9/pe0UCzqXyNGxrmkozmoT5nUXyxQiEKbf+YTIJ6sTGwcAm ReoNrwdBYvudfgcl5s1YDpgzt+6av5O0zDAWjGPv6v51YaXUg68Hyu77QPnZ36Zi25hh HOTdQz97AqzuEgMmBSz0MnoXakELb2kbv+Guy5icRTLzYHqlm07RYVUjOBDw/1XbczrV O25CZJNlTBeqTdqDi1rcWp49kFigMGdIySEnd1PRcyrdU5zncEB3Kha6NzcsFC2USit0 bFfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=DGWqXuQY79DSEzANhRv8VB10W0K8r3MCpUvibM9tPsI=; b=wfpdo7g72T1JnPXUrUw6Bzw1Ir2ETjESIN2cabi3Tk+Jjsbe0Jk47MnBnxrB4GyjFo OFpsgdfao92g7r0S40X+P9u66l+o6RFP/yR5oeBHnGODRJuzNTyrYuaPlSmWfyqZfJJx v8h25G7emSszpJ/f/Ux0ubVHNhAWs+aTgEPQ7bXYDOkp4bCgntKbwDuQ9EtLzhuinYY1 iDy5lAF1SlswLLtEuMwlynu2QXNGkrl+kSdT42NKo6PFNdReQR7euD2UFJ/zhxVm2uOl O9wHp6ecyQvqdUMx0+IZVblIjBFW/6CflpMzI1tQCA697wCVZtqIrLeK1bLRTzbTaE7o XYoA== X-Gm-Message-State: ACrzQf3LcWjTjeqFpdBGjFGXnzwDIjaiB0kR+nhMqwPOx5AKivlTDpiD 8nuKCv07EFfsuqFbcNLA8XeGPQDiUWHVAiVJ0RdSBp3n51w= X-Google-Smtp-Source: AMsMyM4m2q4Yo5UalCZbjTLttwjOoAe9p71C5l5il0jTEz7lgPRIaG6loGoCtvm5WSFr+B1+yIW+W8dJo1PIpIRAo10= X-Received: by 2002:a17:907:3f20:b0:782:2626:c665 with SMTP id hq32-20020a1709073f2000b007822626c665mr12628774ejc.38.1664717835826; Sun, 02 Oct 2022 06:37:15 -0700 (PDT) In-Reply-To: <83ill2agtf.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=yandros@gmail.com; helo=mail-ej1-x635.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:296607 Archived-At: --000000000000417a3505ea0d5373 Content-Type: text/plain; charset="UTF-8" On Sun, Oct 2, 2022 at 2:19 AM Eli Zaretskii wrote: > Again, I don't see why tree-sitter should be handled differently from > other optional libraries. > I'm not sure if this is Yuan Fu's concern, but for me: If I want to build a changed tree-sitter language definition myself, the second-ish step is "install Node.js", and I stop there. (Whether this is a sign of taste or curmudgeonliness is left as an exercise for the reader. :-) On Sun, Oct 2, 2022 at 2:19 AM Eli Zaretskii wrote: > 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. This is an excellent point; it seems likely that we can gain useful experience with tree-sitter in emacs without having pre-built a distribution channel for version-specific binary pieces. In practice, I suspect that the concern is responding to the current situation, where tree-sitter experimentation is largely confined to people who already hack on tree-sitter itself (rather than just wanting to use it), OR to people who, in practice, download pre-compiled binaries from github. At least, that's the situation I find myself in. For now, I suspect that something akin to the Windows snapshots on alpha.gnu.org might be a workable compromise if the problem actually comes up. Hope that helps. ~Chad --000000000000417a3505ea0d5373 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Oct 2, 2022 at 2:19 AM Eli Zarets= kii <eliz@gnu.org> wrote:
Again, I don't see = why tree-sitter should be handled differently from
other optional libraries.

I'm not s= ure if this is Yuan Fu's concern, but for me:

= If I want to build a changed tree-sitter language definition myself, the se= cond-ish step is "install Node.js", and I stop there. (Whether th= is is a sign of taste or curmudgeonliness is left as an exercise for the re= ader. :-)

On= Sun, Oct 2, 2022 at 2:19 AM Eli Zaretskii <eliz@gnu.org> wrote:
We might discover good reasons for that after we gain= some actual
experience, but up-front I see no reason to assume any spec= ial issues.
IOW, I think we are "putting the cart before the horse&= quot; here.

This is an excellent point; it = seems likely that we can gain useful experience=C2=A0with tree-sitter in em= acs without having pre-built a distribution channel for version-specific bi= nary pieces. In practice, I suspect that the=C2=A0concern is responding to = the current situation, where tree-sitter experimentation is largely confine= d to people who already hack on tree-sitter itself (rather than just wantin= g to use it), OR to people who, in practice, download pre-compiled binaries= from github. At least, that's the situation I find myself in.

For now, I suspect that something akin to the Windows snap= shots on alpha.gnu.org might be a work= able compromise if the problem actually comes up.

= Hope that helps.
~Chad
--000000000000417a3505ea0d5373--