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: Re: [SPAM UNSURE] Maybe we're taking a wrong approach towards tree-sitter Date: Wed, 28 Jul 2021 19:43:03 +0800 Message-ID: <87o8amy88o.fsf@163.com> References: <8735rzyzbz.fsf@163.com> <86v94v3xh9.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24258"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 28 13:44:28 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 1m8hz9-00063n-Mo for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 13:44:27 +0200 Original-Received: from localhost ([::1]:32892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8hz8-0000PK-3T for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 07:44:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8hxz-00083e-NR for emacs-devel@gnu.org; Wed, 28 Jul 2021 07:43:18 -0400 Original-Received: from m12-17.163.com ([220.181.12.17]:36243) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8hxu-00056j-74 for emacs-devel@gnu.org; Wed, 28 Jul 2021 07:43:13 -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=lyZzB kF3foVQNPN1scGXcOd8dJqhcUFg0U5z61MH3UI=; b=PcA6eN7D04kMdn+v+xWAQ pK3ckZXzIMO9/GnyUTloxFmCq0h1HxAFIabvwvI9z5XXRkVihlPCucK2JHnu7XvV GNnspFkp/s8c8A6c3phxnMeXGCE+ViwYtAtyee7/9hQF4yM9x7+IVDQVGcrwFsyz hH7HmQWFXALFPv29mdF0kA= Original-Received: from po-lus-librem-15 (unknown [61.172.31.87]) by smtp13 (Coremail) with SMTP id EcCowAAnE3vHQgFhHvThDA--.22489S2; Wed, 28 Jul 2021 19:43:03 +0800 (CST) In-Reply-To: <86v94v3xh9.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 27 Jul 2021 20:53:38 -0700") X-CM-TRANSID: EcCowAAnE3vHQgFhHvThDA--.22489S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GFWxZFW5Wr18tw43Aw43ZFb_yoWfAFX_ur 1DJr1kKrW3JF4ftw43Aa15uFW7XrWDA3Z7WrZYga4fKrn5XFWUJFs09FykuFWxGFWxXry2 gFnFyFWvg34a9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbVMNUUUUUU== X-Originating-IP: [61.172.31.87] X-CM-SenderInfo: rurskkarusmjiyx6il2tof0z/1tbiMgfdpFWBuzntKQAAse Received-SPF: pass client-ip=220.181.12.17; envelope-from=r12451428287@163.com; helo=m12-17.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, 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:271727 Archived-At: Stephen Leake writes: > The tree-sitter runtime, that Emacs would link with, it implemented in > C, partly for this reason. It would be compiled with whatever Emacs is > compiled with, or the system compiler. Interesting. I was not aware of that. > Some of the tree-sitter development tools are implemented in Rust; you > only need Rust if you are developing/fixing a grammar for a language. If I understand this correctly, it means one would require the Rust toolchain to support new languages in tree-sitter, or to improve existing support. Would that really fit Emacs? I think many people might not be comfortable learning such a large language and toolchain to develop editing tools for Emacs. Furthermore, is there any concrete reason this could not be done in Lisp? Note: Somehow I sent a reply earlier, and not a follow-up. I apologize for the duplicate.