From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jostein_Kj=c3=b8nigsen?= Newsgroups: gmane.emacs.devel Subject: Re: Call for volunteers: add tree-sitter support to major modes Date: Fri, 21 Oct 2022 21:19:05 +0200 Message-ID: <345ac8af-f2a2-eb18-7536-6445725f78ed@secure.kjonigsen.net> References: <83czb1jrm3.fsf@gnu.org> <878rlo7on0.fsf@thornhill.no> <83k04y1gd2.fsf@gnu.org> <87wn8xbyr2.fsf@yahoo.com> <713135A0-FF74-43F5-969E-CECDF3C02DE6@gmail.com> <87sfjlbpw9.fsf@yahoo.com> <21B0931E-728E-4F17-8BC0-D8218BE65489@gnu.org> <87h701beqv.fsf@yahoo.com> <835ygh18w5.fsf@gnu.org> <87czan8hyn.fsf@yahoo.com> Reply-To: jostein@kjonigsen.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2969"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Cc: Eli Zaretskii , emacs-devel@gnu.org, casouri@gmail.com, acm@muc.de, theo@thornhill.no To: Stefan Monnier , Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 22 01:02:26 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 1om11y-0000Q8-N9 for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Oct 2022 01:02:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om0C8-00045O-8c; Fri, 21 Oct 2022 18:08:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olxYN-0008NW-8w for emacs-devel@gnu.org; Fri, 21 Oct 2022 15:19:38 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olxYJ-0003dy-EO; Fri, 21 Oct 2022 15:19:35 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 040DC5C012C; Fri, 21 Oct 2022 15:19:10 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 21 Oct 2022 15:19:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to; s=fm2; t=1666379949; x=1666466349; bh=Jl ssYiFNGBXfAMRen/enWMKsb8AYGJOE4hekefZqT7I=; b=H8GaN9nwqy3TLPJyHL 0isEalj1x9RnzEChwonudi5jttpXAcswn2gJFNGmsowvujiKrlcQbomDLd97fmN4 r10HWycMiB+wsKIV3/06YuOhRu6pFrOePIjeV5pY7jkViK4f9rs5pRg7W5u4yBgv 1aCD6/tA5qhNvFIFe0ngHHfwwKI6R8iJnSZAP7VMNEscNOfmemr8CcDAsCVk6n/3 Ws+WIWoflEiOQJfckTuB2Uixn8JL1usyiExS0JqXIh0ZaBHDr2EEf6r7kW6QqKrN zqY1BY5WAqCT0TKoCTZVXcKAIFioG0Z4xWO9jEO4KnxMvNVQpCG54fwhvLpEkkEB 3cmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1666379949; x=1666466349; bh=JlssYiFNGBXfAMRen/enWMKsb8AYGJOE4he kefZqT7I=; b=krkZ3A2EZOkyrkfTUFjTc+q4Lv+BAn9hsWPXi9n4J8iFf7hu6Ol vFN5h2tePbyskP9BtLGoCDzxJJZ7TkL+AJrogEitwrHaBnHjuhokihEU+zVw/DPG xFHKYSxM0AKNSzScx76WRJWA1V30Zf8IesMZiPYGQDUNxTSbfXkPuowhQGlcHCs8 VZWyq3HasOeiiu/79E5VIAwJt0yu/Zoj18wMUzjfBe/43qw9DOW9nMP9gRkW0LsO JTPnXsalpDOfRe15VjrT3VKSzZri/DIm5lj4skx+x7x6YqRj3gkzwCkVb+VvNZVI vADw8oguTp7RvkVtE+irYzhcQVhCGkHv27A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelkedgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfghruffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefl ohhsthgvihhnpgfmjhppnhhighhsvghnuceojhhoshhtvghinhesshgvtghurhgvrdhkjh honhhighhsvghnrdhnvghtqeenucggtffrrghtthgvrhhnpeevleduuddufedtjeefkeff vdejgedttefghfevhfeuffefieeigeekgedtiedugeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhsthgvihhnsehsvggtuhhrvgdrkhhj ohhnihhgshgvnhdrnhgvth X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Oct 2022 15:19:07 -0400 (EDT) Content-Language: nb-NO, en-GB In-Reply-To: Received-SPF: pass client-ip=66.111.4.25; envelope-from=jostein@secure.kjonigsen.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298237 Archived-At: On 20.10.2022 03:15, Stefan Monnier wrote: > Some people seem very optimistic about what tree-sitter will bring, yes. I may be one of those people. So for the record, I would like to make it absolutely clear that I think tree-sitter will bring improvements. Not unconditionally, but certainly it will help with some things. I know from experience that it will improve greatly upon the classic (cc-mode based) csharp-mode. typescript-mode is also suffering when encountering complex grammar, which tree-sitter seems to solve adequately. These are languages without the ambiguities of macros, and syntax can be parsed reliably based on single documents alone. These are perfect for tree-sitter. > I think our track record should be enough to reassure users that we > won't just throw away CC-mode if tree-sitter doesn't prove to be > a worthy replacement *and* that it won't be thrown away any time soon > even if tree-sitter is much better. Tree-sitter is just code, like all other code out there. It's not going to magically improve everything everywhere. But that should be OK, as long as the use of it is constrained to areas where its parsers are objectively superior. Even as one of the "tree-sitter advocates" in this thread, I don't see any value in shoehorning it into areas where it objectively doesn't provide us with anything. If cryptic, macro-ridden C is something it is bad at, then perhaps we shouldn't use it for that. But let's not dissuade people who want to try it out from seeing if we can get better results than Emacs currently provides :) > So, let's all take a deep breath and just wait to see how things play > out before we make any assumption or decision. Definitely this. We're trying out something new, to improve upon or support new languages we haven't been able to do perfectly so far. In my books that's exclusively a good thing. -- Jostein