From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.devel Subject: Re: Creating a paradigm for leveraging Tree Sitter's power Date: Sat, 24 Dec 2022 08:57:30 -0600 Message-ID: <26841F01-ADE5-422F-A0EC-0F0798EB40E5@easesoftware.com> References: <948662B3-F284-4E89-BFE2-4BCB5007D4EA@easesoftware.com> <78FAB063-180C-4700-81E8-81BC9D657D4A@thornhill.no> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Content-Type: multipart/signed; boundary="Apple-Mail=_6ABC27E0-AA55-42EC-B5EA-DBA00DAAEA5A"; protocol="application/pgp-signature"; micalg=pgp-sha256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6434"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Yuan Fu To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 24 15:58:30 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 1p95yn-0001Sn-0t for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Dec 2022 15:58:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p95yD-00086H-Gx; Sat, 24 Dec 2022 09:57:53 -0500 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 1p95yC-000867-C0 for emacs-devel@gnu.org; Sat, 24 Dec 2022 09:57:52 -0500 Original-Received: from chocolate.ash.relay.mailchannels.net ([23.83.222.35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p95y9-00014L-Ml for emacs-devel@gnu.org; Sat, 24 Dec 2022 09:57:51 -0500 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A9CA26C0974; Sat, 24 Dec 2022 14:57:44 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id A0D2F6C0AD6; Sat, 24 Dec 2022 14:57:43 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1671893863; a=rsa-sha256; cv=none; b=VV+X1iif3tKHiupkKMFdupuZjijdSfnVfxjWS3dnUPlSqarjaa3YxbZeU7w0fUtoOQ+PXb ZGT/wwPxvag7L12l1avwJzhor9WguTURDkUSA5fvpPVqDgeydeo4sr8Xz6OFcsUnQTF5qS eQPlltur1nq8lbrRlPosIM3S8bor5vMeKKlHxoZaDxOpxtnexI3FrnJFVWhSLOsHQRPAYd bNOn+CDOmjPkCpRlNsumbyf3KoBe+t+FL3Xdd9OXb1f8MgzSdqRly49fyUo+ti2KlRq1YL B0Fiav6Om+qvsnlM+0uN1uKxLNxWDbZF5SGUW/kJ2adIsT3fD2kLVApN0miNCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1671893863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jhoewRnr6A9lef/OPxPvp47oUzd7xUyAfJHTUItOALA=; b=EEpfy6eJVF8L+6IWOJDcJJ8evZuETfZo9eWNW5lZG/e0e0sRDzLQJCohgTUhlyurPfDzMO A6oASEkH6qBeIV4lNDciorD8y1BajXNrXZYhr16Ft6fb+eUcebEvQgiaVBNDWUnk+DvS/Z M7FMXHnK7yBdfG2FyqKwDRITfl6hH4Cov/Kl7lXTwlYu1S5e1djIa1k1K9k8k55BghAfXF 3FFy0huAhtqAECUcxzMv9HGDTD3oGaKBbndCpybDEJ5fheDljpS8XKQdmoWY+b+gzmIEx2 u2QHO9xkgfTxAAfTL4n/02cCbrPmrrsTQiv2+7G2jri1tJHCq7swG2GLtZstCw== ARC-Authentication-Results: i=1; rspamd-698c4479bb-dmgfb; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Tank-Bottle: 02bec7c6188306f9_1671893864256_3388981905 X-MC-Loop-Signature: 1671893864256:2762110404 X-MC-Ingress-Time: 1671893864255 Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.103.24.57 (trex/6.7.1); Sat, 24 Dec 2022 14:57:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id:Cc:Date:In-Reply-To :From:Subject:Mime-Version:Content-Type:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jhoewRnr6A9lef/OPxPvp47oUzd7xUyAfJHTUItOALA=; b=SibTWzkXl6+z/ea6LYLTxxhKIR 1XB03xhf9uNUC8QVnOKzjwSSETzbEeQ4inJKSO8mPKhYeH4zUzXMb+C9zQyCLV0Ka9C58Nx+uIG+B uihKW7zfMM1g9e9VGU3QxdvfmJi6sBNxlJC7Bekc7zaHIuWiyMvXLMSo90QvbEAdhJy+0k9PfKaI4 rVdqqAxRSbuDgJSsXIndvwpRnZulOE6oEkXBkRf35b1qmvM2PysMfUQFZ3EGfGTU1a92n6C4lXJ/Q gYCufVwkItmJZ2Ifou+qu/H9H8EfTyE1Fvjy1lH9siZDUwkHhSS+uHICD5KAyCyVx17H/HFbozdkv 9BTwErDg==; Original-Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:56527 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p95y2-002AxN-Gq; Sat, 24 Dec 2022 09:57:42 -0500 In-Reply-To: <78FAB063-180C-4700-81E8-81BC9D657D4A@thornhill.no> X-Mailer: Apple Mail (2.3731.200.110.1.12) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.222.35; envelope-from=pedz@easesoftware.com; helo=chocolate.ash.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301848 Archived-At: --Apple-Mail=_6ABC27E0-AA55-42EC-B5EA-DBA00DAAEA5A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 24, 2022, at 04:07, Theodor Thornhill = wrote: >=20 > Yeah. One shortcoming of tree-sitter imo is that the parser author = decides what the nodes are named. So I think we need to create a = framework so that every mode can map over ast-names to Emacs concepts. = The goal must be for the normal Emacs things to require little to no = changes, but get the benefits from treesit. To me, in my brain, Tree Sitter is far more expressive and powerful than = existing concepts. =E2=80=9CLittle to no changes=E2=80=9D to me implies = fitting a much larger concept into a smaller container and sacrificing = the possible expressiveness and power. > I think we should just start doing that immediately on the master = branch and allow for "big" changes going forward. We should settle on = something good for Emacs 30, hopefully. >=20 > I'm a little worried we feel we need "complete" proposals too soon. >=20 > Let's get all good ideas on the table, implemented and installed, then = we can consolidate after we discover pain points etc. >=20 > I'm working on changing the forward/backward thing and transpose. Not = only for tree-sitter, but for others as well :) >=20 > What do you think? Yes. I completely agree. I guess for others, you can take my initial = post as =E2=80=9Cthis is the direction I=E2=80=99m exploring in=E2=80=9D = but it is helpful to get feedback of new ideas and experiences from past = mistakes. --Apple-Mail=_6ABC27E0-AA55-42EC-B5EA-DBA00DAAEA5A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmOnE1oACgkQjxzk9yzE +MCtEg/8D/NloGFzpGiEaeXPaEgRbr8I6ShGSzzsavIFJY0MsrgKXo6nGaaG5xQS MqTgtYAHZoDVvIUbbPYeYP9vSxqc9GLmMjldSyFmleDKnupqRefvkWEjimjTbQWA jHUbs238i0Roca93T1GvOtO08DsAaA/+3dcPftdnfdXnoF4AKPPnVs39/VY3RhX7 FR6w327RUVXOEsh6ToAyTl3q17SVpCLaHahWr8z9OwWMbth9ArJycp4g3iAlEUdQ LHxeOIWH1tpOzUGeRUdI/VPoK3/mKW2yCOqtKaAvXDzfomQc2/KYuznCsE3md48i 8lFUi+ZdGwKjzYpB5XS1l6Dkhzt6n8HaTepAgd50IRiktDCSW4REeqYs2Y/UbL9V M2aoExC30J7unZIKNeC6MYylBDsNoznLmB/oK2fpz8ULCIFwYrSwS0i+RXvEkOGZ CHFvfwTsxPYjS63MAdveE6QrAQwNwk5uPvHFcr3GI+vNKPLAMWSJGTGshMs4wxJX cW0TuuKAYIA7NW6MoPSezqD8Ab5Jn1T17jnCueFrz+3lNNqMHm44eIJctTo27FJi +/HNMU+fYY2cLUevIcGT9HeJH/1z/oUSPXgqo2Ju32WKecXkPrko9BFjF90LcKVW chWtZX+vhpLECfH8ndwd4CNif1cAbIOaEBGxrrklzZmGDwTyo8E= =RDCD -----END PGP SIGNATURE----- --Apple-Mail=_6ABC27E0-AA55-42EC-B5EA-DBA00DAAEA5A--