From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Fri, 01 Apr 2022 09:56:21 +0800 Message-ID: <87tubdin22.fsf@yahoo.com> References: <87a6gq5mxl.fsf@gmail.com> <877dbu5mgj.fsf@gmail.com> <0BB906F7-BD3A-41CC-9783-19AA16934497@gmail.com> <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> <83ilvbpsvl.fsf@gnu.org> <4A6F417A-EF74-40B6-9517-6C0947AB87A6@gmail.com> <83wnjmiork.fsf@gnu.org> <6D1CD758-2C6F-4843-9739-F2A5D5591648@gmail.com> <67183EAB-5D98-4211-B71B-4618D6266A15@gmail.com> <83lews90ft.fsf@gnu.org> <32CE637B-B9A6-4E1A-A6C5-B6A930D34299@gmail.com> <83h77g892o.fsf@gnu.org> <825205B8-238F-4772-A497-634F3F37D49B@gmail.com> <83pmm27ket.fsf@gnu.org> <87ee2i8jdf.fsf@gnus.org> <1935bcb9111df1e489b20b957e6aaa34@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: John Yates , Yuan Fu , Richard Stallman , ubolonton@gmail.com, Emacs developers , Eli Zaretskii , yoavm448@gmail.com, Lars Ingebrigtsen To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 01 03:58:04 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 1na6Y7-00038l-VO for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Apr 2022 03:58:04 +0200 Original-Received: from localhost ([::1]:60358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1na6Y6-00077L-I0 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Mar 2022 21:58:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1na6Wh-0006PT-O9 for emacs-devel@gnu.org; Thu, 31 Mar 2022 21:56:35 -0400 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:40152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1na6Wf-0008WP-BK for emacs-devel@gnu.org; Thu, 31 Mar 2022 21:56:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648778191; bh=v8k3SuueHbFm047ZjHiXQUCQysgIWLsZUYwX6pNJDN4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=PjsmyvWyx78HEL55Mbo4heiSeVgZDUHSr9vO0Fr5LWHQSZCtb66ncSE0lJlE2PtNLIvUB0crZueTpLANGfQZSaY7UzRtKbusgb6NvOI9fESXiGhItNVpYixbHjdwMHq5U6sjBBgSXC3NJir7u9aN/i0Oj1yTH9EiPz5JCQD0LgxM7Hc/qMSr5guyZ1z7UO+d4jKhVMtA3cl7WQ/XBFz5BjRaGdtW4Pus52niaX+PpDvPqXREDJWKmdwuhmt37vIbvn+wELiz0DfKlN2pPVvEUavNG2BLDO3FPm3zU3mgyF2n+fZTZVjP4OyLUfDgBHNIixO1bMJmB06P8GpeZReGjA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648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YHniQxAKTT5a6Vt9zf4PJ.3zkecHj7cr hoo42oeNa1SvgqywHBoxzYh1lUuMTGRzWAJsdqUOprI.yH7vnZEt2QQbD0K_Ejp2FvqcW2OibUoe VMPUhMJICH5XZk9DI2l35GyuVnLO3y0G5jxVY61B_9RX7c3NPL4aLSZpckYPxyAqEUAv3q.yhJNj LbHj.CGmCK1BmmaZ6W7hn8ms07fcnk8upvNGaE1DnX X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Fri, 1 Apr 2022 01:56:31 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-srcdp (VZM Hermes SMTP Server) with ESMTPA ID 9feb43c0c9fc240e1f71fdb62afc69fd; Fri, 01 Apr 2022 01:56:26 +0000 (UTC) In-Reply-To: <1935bcb9111df1e489b20b957e6aaa34@webmail.orcon.net.nz> (Phil Sainty's message of "Fri, 01 Apr 2022 06:37:56 +1300") X-Mailer: WebService/1.1.20001 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.206; envelope-from=luangruo@yahoo.com; helo=sonic310-25.consmr.mail.ne1.yahoo.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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:287653 Archived-At: Phil Sainty writes: > Unfortunately "tree" is an extremely generic term and on > its own doesn't suggest the very specific functionality > provided by tree-sitter. > > "trees" just looks like the plural of "tree" rather than > "tree"+"s"[itter], and so I would expect that to be for > manipulating some general-purpose tree data structures > before I thought of "an incremental parsing library" for > programming languages. > > Conversely the "sit" part of the name, whilst not > suggestive of being connected with trees of some kind, > *is* very suggestive of the actual library which is being > integrated. > > I.e. tree-sitter itself may not* be about "sitting"; but > the Emacs integration is very specifically about a thing > called "tree-sitter" rather than just about trees. > > (*) Or maybe it is. I don't understand that part of the > name (and I can't find any documentation explaining it) > -- but it *is* the name. > > > -Phil "treesit" sounds rather ambiguous and ugly, while "treesitt" is only 3 letters away from "tree-sitter". Instead of bikeshedding over a name, why not use shorthands to refer to "tree-sitter" in files where the column number limit is actually important? Isn't that what shorthands were intended to solve? Thanks.