From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: eglot's interface for major modes Date: Wed, 12 Apr 2023 16:06:28 -0700 Message-ID: <86mt3cu2dn.fsf@stephe-leake.org> References: <874jpr35eh.fsf@mailbox.org> <86v8i7tmda.fsf@stephe-leake.org> <87mt3i3ebu.fsf@mailbox.org> <86r0suu0mn.fsf@stephe-leake.org> <87edou3ad9.fsf@mailbox.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="23924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Sebastian Poeplau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 13 01:07:37 2023 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 1pmjYt-0005yN-Fv for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Apr 2023 01:07:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmjY1-00072m-N1; Wed, 12 Apr 2023 19:06:41 -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 1pmjXz-00072W-Kh for emacs-devel@gnu.org; Wed, 12 Apr 2023 19:06:39 -0400 Original-Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmjXx-00074a-2r for emacs-devel@gnu.org; Wed, 12 Apr 2023 19:06:39 -0400 Original-Received: from cmgw14.mail.unifiedlayer.com (unknown [10.0.90.129]) by progateway6.mail.pro1.eigbox.com (Postfix) with ESMTP id 6241B10042E4A for ; Wed, 12 Apr 2023 23:06:29 +0000 (UTC) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id mjXppHObgQloTmjXppx25J; Wed, 12 Apr 2023 23:06:29 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=cOMlDnSN c=1 sm=1 tr=0 ts=64373975 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=dKHAf1wccvYA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=b3CbU_ItAAAA:8 a=Ah4nHrAWC728zup1o5IA:9 a=Rv2g8BkzVjQTVhhssdqe:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From: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=Y5uozRo+/2sdVCwNMf1EEGUn6rqUJzVfudzauFvdu0k=; b=aBncJT4ga/lG1gB6sGn5VXXTW4 0yYRtw3WzGxYBlU2npaTs4PBJDIY3lfbFUCHzlwOeLmfZQ05DpLBEmvA3Q4vjQIt1Ga4ARcPhk4ij UVUyliKfHrwpwjO+uD7O3R1rMzx0TQ7FzWdBvmt1Ht0LrBcSKV1U+EEeB+Ui1ftfpYKnfHEvIJ6d3 myLGVVPD7l9IkEgcSRmBDwR5dSGi7CHnlehIt+9IRXxZ9rNSEn3THC0uoH/aadzhMAv0MLRa+ti7h LBsrGHXfCLOFp7Nu4WBS4gP/GpD9atnWCk+FgOBa0x3X5GMCBuYvYFHCagQr856qzcLTnkw2yXDGk nD7WRAlg==; Original-Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:50990 helo=DESKTOP-G20DCG1) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pmjXo-002h2e-Oc; Wed, 12 Apr 2023 17:06:28 -0600 In-Reply-To: <87edou3ad9.fsf@mailbox.org> (Sebastian Poeplau's message of "Sat, 08 Apr 2023 12:53:53 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1pmjXo-002h2e-Oc X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (DESKTOP-G20DCG1) [135.180.197.170]:50990 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 2 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: pass client-ip=69.89.23.142; envelope-from=stephen_leake@stephe-leake.org; helo=gproxy4-pub.mail.unifiedlayer.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.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:305276 Archived-At: Sebastian Poeplau writes: >>> The approach is probably inferior to the tree-sitter support for Ada >>> that you and others are working on, >> >> Why do you think that? ada_language_server does some semantic analysis >> (mostly name resolution), so the results are more precise than a syntax >> parser like wisitoken or tree-sitter can provide. ada_language_server is >> not incremental, but it's _very_ fast, so you have to have _very_ large >> files to notice a delay while editing. > > My point was more about the out-of-process nature of language servers. > Having to send JSON messages back and forth on every buffer change to > support fontification seems less efficient than having a good in-process > parser, even if the message format compresses the data like LSP does > with semantic tokens. Yes, LSP moves more electrons than the tree-sitter module interface. I doubt the difference is measurable in battery life or watt-hours. What matters most is that the response time be imperceptible in typical use. In my limited use of ada-language-server via eglot, it is fast enough (when it's not broken, which is often :(). -- -- Stephe