From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Elisp LSP Server Date: Fri, 15 Oct 2021 20:54:07 +1100 Message-ID: <87tuhiy5hl.fsf@gmail.com> References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <87ee99dv34.fsf@gmail.com> <07cf50ddddb5a9556aa94201a7ac88c9@webmail.orcon.net.nz> <87r1d0562u.fsf@yahoo.com> <87r1cz7qcd.fsf@posteo.net> <87bl4367av.fsf@yahoo.com> <87fstf7kz4.fsf@posteo.net> <87o8814q1v.fsf@yahoo.com> <87r1cs9faa.fsf@yahoo.com> <87a6jdqz4k.fsf@yahoo.com> <83wnmhnlp6.fsf@gnu.org> <83o87qkd7v.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="33704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 28.0.60 Cc: philipk@posteo.net, rms@gnu.org, psainty@orcon.net.nz, mardani29@yahoo.es, luangruo@yahoo.com, joaotavora@gmail.com, emacs-devel@gnu.org, agzam.ibragimov@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 15 12:03:05 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 1mbK3M-0008Zo-C8 for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 12:03:04 +0200 Original-Received: from localhost ([::1]:53398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbK3L-0004IO-Cp for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 06:03:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbJyr-0007DQ-Sf for emacs-devel@gnu.org; Fri, 15 Oct 2021 05:58:26 -0400 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:40851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbJyp-0001WX-Kf; Fri, 15 Oct 2021 05:58:25 -0400 Original-Received: by mail-pj1-x1029.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so8951938pjb.5; Fri, 15 Oct 2021 02:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=CWgC8CfnEVCLBGqkTvcstLp4LHIZaZVugej2dB/8LwU=; b=fONQt+rsHztB6S7NPvDtSmfa4UbWp0wz+DoczabOEk0eIONamXfuGZIgOv9DVPJM1y 0dkF18R3m6LObd30xrNG4HIQSPPjdgWfjo8db4duICMHzGTzCHC2zmpcNztBeutXK7jv DzIBmmcab+SpBhyc5GbDh0RZpK/2CI8MvW3Ha6aNhwawvBpc9Y6iW7DGIUcV9h/Pfkgu qomTiO1Hitl42F4xULzNx/m4DAZziOVFY7Lv1QHv+N6cwVMtZxgC+yHVy9XyndpVtAvc w5Ok3tJEBNr+dSELe+BR0zieZ6nNHUJxlX75u5+2XRP+63MpUyOEH25SP5Fi0h4Pyxuk fnUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=CWgC8CfnEVCLBGqkTvcstLp4LHIZaZVugej2dB/8LwU=; b=bFU8Icm1QQcqbl6o/ch2BNFXAKkSjJ/VbR8R36mYJMepeutTZ921pL6AIyl5ECKPOI B6t2UwO+CIaz1tQ7ehrxdsRkivS6AuFpcaM1wwnWKhSEunyhbuKTqLuYYJO+SkNcHaz4 Zqox4dC+IgBH8jxTbuziMBiCRMxSaOpUAAXLMVGJoMKw25BE0T4oDBx1jfhjrweqQ6Bv lkU0Hyndi3JOuH/YKiSP8KF05EoOZn3c4oCbjbUW1PTiIfgNjywsm/YyLFduC6jRrR0M P2/o4q5gHPY3bMoHNZ362WLwUCuq7Oe1sjFL6da8W9/0rRLxW+PFShDWmQGCw4rGiXIS pryQ== X-Gm-Message-State: AOAM530O1EK1x5VCz3TOXLXsOBp6Tw8Nwy92Wbb8M4vWhfbtzaRNIoJk wjK/LWWRsaJdx6ogqOUjOnTP7hK9hgkGfQ== X-Google-Smtp-Source: ABdhPJzpdsU42+GnU2UMmxeu/XOJgxwikNegEhMEkKNVDw58IZHLB6t3nuUDUPzpMpe42rzc7mrHdQ== X-Received: by 2002:a17:90b:4c0f:: with SMTP id na15mr12658003pjb.200.1634291900679; Fri, 15 Oct 2021 02:58:20 -0700 (PDT) Original-Received: from tim-desktop ([124.149.107.119]) by smtp.gmail.com with ESMTPSA id x20sm4513231pjp.48.2021.10.15.02.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 02:58:20 -0700 (PDT) In-reply-to: <83o87qkd7v.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1029.google.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, 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.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:277096 Archived-At: Eli Zaretskii writes: > Doing that in the same process will make Emacs slower, because Emacs > is fundamentally single-threaded. On modern systems that routinely > have 8 or 16 execution units, off-loading some of the processing to > asynchronous code that exploits additional execution units is a > significant advantage, and allows us to be much more scalable. If > Emacs had true concurrency, we could do that in the same process by > arranging for additional threads. But since that is not available, > running a language processor in a separate process is the next best. > And since a protocol for that already exists, reusing the protocol in > this case sounds like an idea worth exploring. That is an aspect I hadn't considered. Given the number of desktop systems sitting there with most cores doing nothing, this could be a useful addition indeed. > Of course, if it turns > out the LSP protocol doesn't help much, we could always implement our > own protocol (which would then solve the fear of VSCode using that, > although I think that's us being haunted by the shadow of a dwarf). I love that expression - it succinctly sums up my feelings concerning the fears raised in this thread.