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: Sun, 2 Oct 2022 15:17:35 -0700 Message-ID: References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> <87pmfa4xib.fsf@yahoo.com> <83ill2agtf.fsf@gnu.org> <83sfk61gf8.fsf@gnu.org> <83a66e17gb.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: chad , Po Lu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 03 00:19:13 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 1of7In-0002Sf-KR for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 00:19:13 +0200 Original-Received: from localhost ([::1]:56180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of7Im-0008LN-H7 for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 18:19:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of7HJ-0007cY-Ae for emacs-devel@gnu.org; Sun, 02 Oct 2022 18:17:41 -0400 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:36489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of7HH-0003c7-KR; Sun, 02 Oct 2022 18:17:40 -0400 Original-Received: by mail-pf1-x431.google.com with SMTP id y136so8719122pfb.3; Sun, 02 Oct 2022 15:17:38 -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; bh=Q68q06LdERZm9QHH7F5jqC9mCoxFqOaO6LCNj1dr4fw=; b=owuTE/X99t0RYwtNY8DCB9visMnxKDh63tLyqAIZDylLuEC3tw5taRsvlVh41tOXWw vRO0SxFggm7nobBZjKW9/g/3IVDceqLfFYv9pCXO01EWkzb6fBARYJ6JiCynDcvEPWJP WtT26SwhVkMBY92F2AwSaBEtwQMuH3Imlxem7GmH3jjPBf5C66JxZSHLowLLomZxU9j5 WiJVVextVYfhPs5YPE75LyQy7KbH2GvP1VHw74h+y7udGhJS2NK5gRF8+wHbrDb9Gfbt Qarb1EL1wOXEvUocdCaesiXub+TxvOPO9cNNgmVyGQLXFbP8kePHqdlX3AvlIsphoPHR ptTQ== 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; bh=Q68q06LdERZm9QHH7F5jqC9mCoxFqOaO6LCNj1dr4fw=; b=yA54AmN0b76pKXtH15aOXYudnKeVVt5D2Ym/zdlkGBscOMrIGIC0EDLNgpvEG5xmkd Ma+WDqn8MHToE9g4A/ia2YwKUeZpK0zExnUG6h4Tfbx7TpkW1VsVmQ2QUwPjKb20YZKc leRSN85tjxzXA5XZD8MMLgXVQo8ptgmLrVnq+zMTLLvB+TZ073463YM4v35gw/44QafQ ZridSYzaQsFUZxLUeYbk5iae2PLXoAy3EqlKIM3g8YF4POHRgSe0qLF6YmGiqM+D5NU2 yZuVhaOf3iNabXS73LqT68gSELFTZVB/3BWn10d3prtpw+CroYMEb5yRie7VfDQ//0+Z 4ESg== X-Gm-Message-State: ACrzQf1czMxJ8Hk/GNh2oyhMR7wqo2HTjPiskkhDfT03Y3VIAADJrY/H m6lEnvQYd8B9Mxn3t5ndkXe94pgJA0Y= X-Google-Smtp-Source: AMsMyM5v0+o+5BLpBN5bWH+vOroAG2VZNA3wFUC0wSA+OU5TCB6gXbFsnuSHTL28DsZWBL45RQRJDQ== X-Received: by 2002:a63:2a57:0:b0:439:42f4:97e1 with SMTP id q84-20020a632a57000000b0043942f497e1mr16183180pgq.190.1664749057847; Sun, 02 Oct 2022 15:17:37 -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 e10-20020a170902b78a00b00168dadc7354sm5761822pls.78.2022.10.02.15.17.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2022 15:17:37 -0700 (PDT) In-Reply-To: <83a66e17gb.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=casouri@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:296712 Archived-At: > On Oct 2, 2022, at 10:06 AM, Eli Zaretskii wrote: >=20 >> From: chad >> Date: Sun, 2 Oct 2022 12:36:23 -0400 >> Cc: luangruo@yahoo.com, casouri@gmail.com, emacs-devel@gnu.org >>=20 >> On Sun, Oct 2, 2022 at 9:52 AM Eli Zaretskii wrote: >>=20 >> 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. >>=20 >> 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? >=20 > Yes, you can download the C source of the language definition and > compile it yourself. Yeah, for the record, you don=E2=80=99t need nodejs to compile the = language definitions, only a C compiler. (Sometimes a C++ compiler.) >=20 >> 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?=20 >=20 > 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. >=20 > 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. I brought this up because someone suggested to bundle language = definitions with Emacs for better access. If we decide to not provide = hand-holding, I don=E2=80=99t mind doing less work ;-) Yuan