From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Fri, 14 Oct 2022 09:56:38 +0600 Message-ID: <87y1tjm51l.fsf@disroot.org> References: <8335c0p2fn.fsf@gnu.org> <83leproov6.fsf@gnu.org> <83fsfzonwn.fsf@gnu.org> <5a1e604c-4500-a476-da3d-259d9057a7f0@yandex.ru> <838rlromxu.fsf@gnu.org> <83h70dk3wf.fsf@gnu.org> <835ygqg1bh.fsf@gnu.org> <87ilkqbsp3.fsf@thornhill.no> <0ef04e1e-3f6c-31b6-4852-0c9c2c43b912@yandex.ru> <86h708ft1k.fsf@stephe-leake.org> <86bkqgdnz6.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake , Richard Stallman , Dmitry Gutov , eliz@gnu.org, emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 14 06:07:42 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 1ojBz3-00081F-Pt for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 06:07:41 +0200 Original-Received: from localhost ([::1]:57418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojBz2-00076z-DW for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 00:07:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojByD-0006Q7-L7 for emacs-devel@gnu.org; Fri, 14 Oct 2022 00:06:49 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:44652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojByB-0000Gg-5s; Fri, 14 Oct 2022 00:06:49 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CF92C4DCC0; Fri, 14 Oct 2022 06:06:42 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VL_Y8xkMDR7b; Fri, 14 Oct 2022 06:06:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665720401; bh=cxtM7uPttrGireXdexM+7OTQV0PZd7aMi0lr7NJ7vxY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Ed+f5YU5avGj3FsR0P6G56AjfvB8c0TnkrROoEm8pB3S0fe+ulT6IRq3Y57Ty4C1l KAErmRlsflZnFtSwgVjmHAne4JWj8TVIQnkyId7ez7gspqtpLIypm3Aw3zHuPL1ntP Oxviddqk6xjZOYFQja74phnlRD2JisN66rsrS9m6RGByoJ48xf/h2pGYF+TPjfADgd uza3wZxaMO+nEz4MUxmeEGsKC5xRCYyDmkJ/e7/adPaR3IqpXzpSIkZZqvJlo4Sk/f TSS3Sh3nxHKhZw/rC46jof4KpLVlKqOom4dr4/potLtRooEfx2DPbuXk8XWVD1mCqZ uKkO8Nn2kzv1w== In-Reply-To: (Theodor Thornhill's message of "Thu, 13 Oct 2022 18:11:40 +0200") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org 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, 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" Xref: news.gmane.io gmane.emacs.devel:297702 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Theodor Thornhill writes: > On 13 October 2022 12:20:13 CEST, Stephen Leake wrote: >>Theodor Thornhill writes: >> >>> On 13 October 2022 02:47:51 CEST, Stephen Leake wrote: >>>>Richard Stallman writes: >>>> >>>>> [[[ To any NSA and FBI agents reading my email: please consider ]]] >>>>> [[[ whether defending the US Constitution against all enemies, ]]] >>>>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >>>>> >>>>> > > Because all of the interaction between server and client in lsp= is json >>>>> > > there's a huge overhead with parsing and shipping things into t= he emacs >>>>> > > user interface. So IMO what tree-sitter is good at should be l= eft to >>>>> > > tree-sitter. >>>> >>>>Premature optimization. >>>> >>> >>> Why do you say that?=20 >> >>Because it gives a supposed cause without evidence of an actual problem. >> >>> I've been using lsp for a long time, and typing lag can get unbearable >>> with servers that sends too much stuff. When 20k completions >>> containing _full_ documentation for every result that json gets >>> humongous.=20 >> >>Ok, that's actual data. On the other hand, did you measure different >>parts of the process, so you are sure that the json is the bottleneck, >>and not something else? It's not clear just from this description that a >>tree-sitter implementation would be faster. >> > > Yes I did,at the time. Though I cannot find the issue at hand, but it was= related to Elm-language-server if memory serves me right.=20 > > >>In addition, LSP supports sending the documentation later, after the user >>has actually looked at a completion item, using a completionItem/resolve >>request. So this sounds like a specific client or server implementation >>problem more than an inherent LSP problem. >> > > Sure, but that's life. Nonconforming servers are everywhere, and these > issues are bound to happen. If something as important and simple as > colors and indentation would be unusable because of a bug in a > transitive dependency we have a much bigger problem, imo. Tree-sitter > will not cause us these headaches as easily. > > >>> Adding syntax highlights on top of that isn't advisable, considering >>> emacs nonmultithreaded nature. >> >>Syntax highlighting, mediated by font-lock, should only ever send small >>amounts of data; one screen full at a time. That is if the server >>supports the textDocument/semanticTokens/range request, and not just the >>textDocument/semanticTokens/full request. >> > > Yes, and yet again we are at the mercy of the specific server. Using > tree-sitter we can much more reliably resolve the situation on our > own. Of course, in both cases the tech is new and will mature, but to > me tree-sitter seems like the obvious winner. > LSP is too flexible to block the editor. =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmNI3fYACgkQVTX89U2I YWtjNg/+KT2g4sq7iF1VznNa4oUHokedwoJMwfb+XVeMnBiV5H5vYCxT9B06AvQD B87Zq3P3Zd48dbt7TQ/Q4QU7z0aKV9ztGKHJO5L8xQ6RIH/UZK+OPbieDtutHJsX JnrENCsyW7sWXYHXqgiqxKevkiNhUBkTGqrynnayYjUkgC9RZzRqGK6Q3zeTn+cW Bq+JS92SQDiet8fx07oIaGgMa1vEKpK+OtYuEkVuh/Pl5OEwoUkuK4wDgxpMIpSz ra1GuBJE0XzzZ2J8hz8I3rzQZAUY0nfWM3p6wD7k2nP7lo2NgJFiIiVcXPRUHTJH 8i9jvTfpWuslTrBSD/UECMsxLA/GTD2E8mR1J/d4kq1AV2rX7KnacZpcHAeQQDLO xr2Dp4ohs/bb1BL2QT6bfdTMvuxhhY3rYoZ5ZKSqSPwOViZPGvBfyc/QwsPyusKz kVcCmco05mk76ei3QG20/VzM/2LKvY4e50RIIrFNhYuMr6cVGDi656H3SsuX4Kwh ZI4+PNecxrdgLzJLkhZbufwETGeefC2rwoStolkJPHCCNyfpVi9O0nw/X3nOvfjw nl9/3+d/7eRb3rZUF1AdyogSVEH8k4s80eBCgfru6zrPYHKDcGkRr1+VaGnF8SSf Ecg/A0G44MaCg/13W52IwU5WtwfXjhFxKvxcmYuWZQa6iazQqzQ= =eZSW -----END PGP SIGNATURE----- --=-=-=--