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: Elisp LSP Server Date: Thu, 14 Oct 2021 14:58:05 +0800 Message-ID: <87k0ignldu.fsf@yahoo.com> References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <87ee99dv34.fsf@gmail.com> <07cf50ddddb5a9556aa94201a7ac88c9@webmail.orcon.net.nz> <87fstf3god.fsf@fastmail.fm> <87ily2947q.fsf@yahoo.com> <87fst5ae2t.fsf@gmail.com> <87v920j0jx.fsf@fastmail.fm> <839638db-98e1-4669-1b7e-82c8e26ec4aa@yandex.ru> <87ee8obqyy.fsf@gmail.com> <83czo8m7nw.fsf@gnu.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="9903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Tim Cross , joostkremers@fastmail.fm, emacs-devel@gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 08:59:16 2021 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 1mauhw-0002EL-7X for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 08:59:16 +0200 Original-Received: from localhost ([::1]:37112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mauhu-0000BL-Ot for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 02:59:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mauh3-0007Cw-6L for emacs-devel@gnu.org; Thu, 14 Oct 2021 02:58:21 -0400 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:33811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mauh1-0006Ly-GL for emacs-devel@gnu.org; Thu, 14 Oct 2021 02:58:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634194697; bh=kDaIFI61KAPC+IpSF+8mz6lHu3qH7Ltq/fJB7+37cko=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=drEzpAjaeQ9O+LIsx0Y2GFA7JGXiFhRxEUpfOd6sLwtSka6fgvFFUy/1YfppmVHLEy0xp5UiPsdvJryJFmgZuJWjKeCmhMfskD0EtRsxOxkPKTW/p1OAspK6O/pVKIWIOaQV4AJMQdnRo1VMm64zAt+vJsGq1yDCfO5Ef20v6Lxwasb2WPfyc5zUEsMXIvogq6agTTzURXWP9rXL2XzTysFxU924KQCUKD4jttvd+CcbqoiHect2QYn6vsaTmo97mXPXlWdNBddr6+o1KUqThkijlxP81f4AUvSjLpmQHPPE3InAxViIaWHIXwiMu4t3k2T86aa9PTzaLCuhIEgyqA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634194697; bh=x6GSS8TKFgv1AEKpbPZWfLkpOpN3LfuZR665sjbrlvq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FwhuilWqDMRtMvjPXGFysmFAU1Y75g7+OVIfrsZHW09EDoHFeWlS8yZaTChatzyYFKvaS/KlaGEXTvNPAw/aPhSV/Wt41BnW3bHHs7eqm9ZyuF0pLOJM7BcrToASUquB/2Ns9dVeLP1iJcfqfyiX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.Usr X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Thu, 14 Oct 2021 06:58:17 +0000 Original-Received: by kubenode512.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8e51d54019839f3f564453b0800f1c08; Thu, 14 Oct 2021 06:58:14 +0000 (UTC) In-Reply-To: <83czo8m7nw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Oct 2021 09:39:47 +0300") X-Mailer: WebService/1.1.19116 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.206; envelope-from=luangruo@yahoo.com; helo=sonic312-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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:276967 Archived-At: Eli Zaretskii writes: > The main benefit, AFAIU, is to use the system's execution units more > efficiently by off-loading some of the CPU-intensive work to another > Emacs process. On the other hand, this doesn't require making the Emacs instance act as a language server, which will also come with the benefit of not having to use a mechanism as bloated as JSON RPC for communication. Implementing an entire Language Server when the goal is to offload work onto another execution unit seems overkill to me. > I'm surprised. How large are memory footprints of "other LSP language > servers", and how large do you envision the footprint of Emacs-based > server to be? Emacs has ceased to be THE memory hog long ago, it's > actually quite modest in its memory requirements nowadays. So I don't > see why this particular job would require Emacs to become such a > memory-hungry application. FWIW, CCLS, a popular language server for C/C++ code can easily take many gigabytes of RAM when working on relatively large C++ codebases. I don't remember exactly how much CCLS took on the Emacs codebase (everything in lib, lib-src, and src), but it was somewhere around 600 megabytes.