From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrei Kuznetsov Newsgroups: gmane.emacs.devel Subject: Maybe we're taking a wrong approach towards tree-sitter Date: Wed, 28 Jul 2021 09:57:52 +0800 Message-ID: <8735rzyzbz.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17203"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 28 03:58:48 2021 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 1m8YqO-0004NG-EF for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 03:58:48 +0200 Original-Received: from localhost ([::1]:33130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8YqM-0003Vg-Rg for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Jul 2021 21:58:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8Ypm-0002NM-PC for emacs-devel@gnu.org; Tue, 27 Jul 2021 21:58:10 -0400 Original-Received: from m12-14.163.com ([220.181.12.14]:39790) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8Ypf-0003Ws-Nf for emacs-devel@gnu.org; Tue, 27 Jul 2021 21:58:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=InmFj LW3qbtgKoDMojUMya1aip9GKPCt5QvhzL0phUM=; b=LC5CLdc04ylm2aPBEwSNU 9TnLvwn1abRwlUCE7sknj8Cj46KQd76JJmzuuPLIHb+5Ok3F0l+veZcbqNXvxwi7 4FcmFyToQ+OcruDDJlAxXn6QdEJIJn6xHr9TLGe6hoJcVFwSJWKzcKEHuydynv0b 1OjF7i8rQACZMnlC72/Rlk= Original-Received: from po-lus-librem-15 (unknown [61.172.31.87]) by smtp10 (Coremail) with SMTP id DsCowABnkdOguQBhklKbDA--.42247S2; Wed, 28 Jul 2021 09:57:53 +0800 (CST) X-CM-TRANSID: DsCowABnkdOguQBhklKbDA--.42247S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZFyUJF4fWw1UKF1kWFyDWrg_yoWDXFgEkr Zaqr1Iyw1DWrs3X3Z3CayYgrZrWrZ7AFn7Xry8u3y7tryrJFZrGFsI9F93CF1Iq3WUtFnx Can3Ar18ua9rWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8J3kJUUUUU== X-Originating-IP: [61.172.31.87] X-CM-SenderInfo: rurskkarusmjiyx6il2tof0z/xtbB3RHdpGBHJyhWVAAAsf Received-SPF: pass client-ip=220.181.12.14; envelope-from=r12451428287@163.com; helo=m12-14.163.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_LOCAL_DIGITS=0.001, FROM_LOCAL_HEX=0.006, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 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:271715 Archived-At: I could not follow the conversation <> particularly well, as it seemed somehow disjoint in a manner I cannot explain, but it seemed as if consensus has been reached that Emacs will provide optional functionality integrating yet another external package, this time tree-sitter. Unlike features like native JSON, however, I believe tree-sitter is the first optional package providing notable functionality that would require a toolchain that depends on LLVM (that of Rust, which tree-sitter is implemented in), and is therefore inaccessible to people not running popular systems; I.E., how would one make tree-sitter work in MS-DOS (Emacs on FreeDOS is a must-have for me, and it would be a great annoyance if cc-mode, or similar external packages depend on tree-sitter in the future), or on an Itanium system running GNU/Linux? I think we should focus on portably reimplementing the relevant functionality within Emacs, preferably in Lisp.