From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: c-ts-mode Date: Fri, 8 Sep 2023 21:27:51 +0100 Message-ID: References: <5F73CB5D-DB00-439F-AD7C-7E209EC83A35@gmail.com> <83jzt2z5mk.fsf@gnu.org> <83y1hhykni.fsf@gnu.org> <877cp1lvih.fsf@gmail.com> <83v8clyhqi.fsf@gnu.org> <83tts5ygv2.fsf@gnu.org> <83msxxxkc0.fsf@gnu.org> <871qf9ktxd.fsf@gmail.com> <838r9gykia.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , theo@thornhill.no, casouri@gmail.com, spacibba@aol.com, emacs-devel@gnu.org To: Petteri Hintsanen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 22:28:58 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 1qei66-0005HX-BN for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 22:28:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qei5K-0000vI-9R; Fri, 08 Sep 2023 16:28:10 -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 1qei5I-0000vA-V0 for emacs-devel@gnu.org; Fri, 08 Sep 2023 16:28:08 -0400 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qei5G-0000cn-Hb; Fri, 08 Sep 2023 16:28:08 -0400 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5007f3d3235so4094268e87.2; Fri, 08 Sep 2023 13:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694204884; x=1694809684; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YoMm0NCF5iYId8Sb7KBzb9VLxIVyMADJjJQxNxkcI0A=; b=VThMYpZSm6fN1DtfGtJgGbtkSyTEi6e7GlkWyNVNISEwJIOzpOlO6Yt3UyPvVtQCbl jeJKIJ3HdBdMpk0t78dwEYDSfEMyN+Dn9AOQKBpFZ9dKCxPOSL1oLCZG0YZuSs0b104u Dc9keXzXvSq7yvMX2CqXK0QUYNN4meeJd180TgpFGVql2bBRrL1C2boCa3B6Z4/JUjld kk+ShOlIVqlnMzAtFVz46h4PzS8PiBzByLfETHPlCcdWPQX678zkYPSYUGe/Jx6mADnK WANYdqyqwZ50Huv/bIWOqzLK1Wp6BJCbbjUjPlcV/79KzhYDOg1X0yJtkYWAC1M58fXz 9/GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694204884; x=1694809684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YoMm0NCF5iYId8Sb7KBzb9VLxIVyMADJjJQxNxkcI0A=; b=T/eiKjFkOF1wMGbHhn6ahCMIcLun78hq75eLHWJrGKO96d6ifN5YZhgJTyAL3Oejgx Y3xoggjS51WyBPUebgnWac9MlYOhp/m0EqcfJK6kDoW1ENTNbHNL5G5220bzLlrgn6Ff Dmx6LN6WwLb90+Cet4+FSIavzxDA4/8unlBCspHaT1qiPOdtzuzfstozW6pcSLxAsGFt IzlIbGyyQzXbNvRYL73q+SIJcA2qAFJUs1aqX7MgcpeUXnCbVOjfffm/FcTihntExpC3 icM0UJXULjfqrzbB8DMM5ozA0p67a+KqgJIjkCq0Ke7U/6fjerIVwE1EcI/voGjqgsrP yUVw== X-Gm-Message-State: AOJu0YwIXWBm7aO4wdv6/8rTNqh+SAhmBkZ0c7lhJtpEjsadW8U07uTe wJQVMZe1ZdTcgQrAQtq9/nmUkysmBpFhjAElwDg= X-Google-Smtp-Source: AGHT+IHGYTtB87IFoPNXC/9UNNAASawxVhTmA7kN6GDkdpXHg1TriONy/LDnpnb0dM2+w+tSdK+YEI7myp+glynF8EE= X-Received: by 2002:ac2:48b4:0:b0:500:ac0b:8d51 with SMTP id u20-20020ac248b4000000b00500ac0b8d51mr2267187lfg.37.1694204883522; Fri, 08 Sep 2023 13:28:03 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x131.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.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:310367 Archived-At: On Fri, Sep 8, 2023 at 8:58=E2=80=AFPM Petteri Hintsanen = wrote: > It is great that Emacs is able to leverage the power of third party libs > and tools, but I think this should not come at the expense of built in > functionality. Of course the rant above was a rhetoric exaggeration, > but still it is perhaps something to keep in mind when designing for the > future. It was an interesting rant IMO :-) I very much agree with some points, such as this last one about keeping a clean Emacs functional (which is also why I like having things in core). I haven't made LSP-mandated syntax highlighting a priority for Eglot precisely because Emacs does it quite well already. The point I definitely don't agree with is about the "editing experience". Editing and comprehension of complex C++ code for example is hugely augmented by LSP (not necessarily clangd). These tools are here to stay hopefully. I can't go back to the days of cscope and grep (as for CEDET, it never worked at all for me beyond toy tricks). Other than that, I can see your point about clangd as a gateway to external tools that Emacs already does very reasonably well, such as formatting code. But the reality is not everyone in the world uses Emacs, and you have to work with them and their code. Even different Emacs users will have different C/C++ styles. > [*] e.g. clangd eats regularly gigabytes of memory, has tons of > dependencies, and needs tunings for the build and sysroot and whatnot I built clangd from source the other day, didn't notice that many dependencies (just LLVM which is pretty big I guess). By the way building from source is a sometimes a way to bypass "admin rights" bothers. I didn't install clang-format or clang-tidy separately, they are already included. As for huge size, you get what you pay for, IMO. I think you can tweak it down to just a code analyzer (but analyzing lots of code code accurately takes a lot of resources yes -- look I didn't invent templates ;-) ). Jo=C3=A3o