From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Wed, 9 Jun 2021 13:07:17 -0700 Message-ID: References: <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <83o8cge4lg.fsf@gnu.org> <62e438b5-d27f-1d3c-69c6-11fe29a76d74@dancol.org> <83fsxsdxhu.fsf@gnu.org> <83pmwudgw3.fsf@gnu.org> <179f21d7780.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f2fa2905c45ad2b3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7944"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , EMACS development team , martin rudalics , Stefan Monnier , Alan Mackenzie , Eli Zaretskii To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 22:08:27 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 1lr4V0-0001mP-KL for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 22:08:26 +0200 Original-Received: from localhost ([::1]:51790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr4Uy-00073Z-NO for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 16:08:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr4UA-0006N7-W3 for emacs-devel@gnu.org; Wed, 09 Jun 2021 16:07:35 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:34566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lr4U8-0003lQ-UT; Wed, 09 Jun 2021 16:07:34 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id f30so40000495lfj.1; Wed, 09 Jun 2021 13:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SKuck7XaRzB7s+42YCYFrlv68Hh0KD2oWE5dpVD4P8w=; b=IkBu8PiPXHaD6sBh0yzJLMeh3iESWqorKO7sm48eH4w+QcYu4ssnQG4rK3ZnQHOyqc bvaqoLv11oL/xTgPpkM9kzazI/wPorc3+1ywOiPLysDOwiP4AJyJzXJwVJdGfQ1wuuYq SciAg549HO+1pAy1M4AwY89dYFObTNI2X/LBdvZ9YIzt0pU639C71r9mrpmuaKpUktCm SmXWjSh4NlcGff0Y7xs9L3GIKp3xlmSVOJwJmi6TDaGe7xVIJ6pLXd46tAKEUI8haOqp sJ6gn4C9UPI8VgSgblcWjHPnTxcoA2DDnzN07r94yY5ZgI3bHm/CEGJ9YUpVLEIro+Oz beJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SKuck7XaRzB7s+42YCYFrlv68Hh0KD2oWE5dpVD4P8w=; b=heXsRkU/5YSqInKW2XEYZXERgASgG99QVeLLn1lcjw1LDxEY3TueA8htF0eAi7JlXU 2QBN+PUVXSMB722xCFhb6b+fE7avfc/7OP3pk/UtAnkvQjKxAGYHoO7pRDbAhhfb+rsO +Gz5blbLhMDiLN2cA1nphsXuAfe+0iMwMcMqdUC/Y6QeLgLVGnIhCIrPJo7OOfk4KDcM WxG4oNFHaDT+YjUBvV8WvZJUm9euHDZ9BUeNQUpgb7/BfQzjJS1A+3+GGldHwzUteIUN lf5dya8+WqqYnZte6ok2TWrsJsdrWkapk74C5yuT43Iea1CxGZNhNvVRzGxYgJNdLUKj L6Xg== X-Gm-Message-State: AOAM530ryWvY3LO+LgpKMXtlgDhdrVQ8/iptS4KR0x4HNMPP7c2yrlYe ga5P18Hs98nUoYke2EjPTBOKBNqOHttOfrK0cYg= X-Google-Smtp-Source: ABdhPJyXVxOuflRo56KlDI9Tg5vNHp8eQhp3VnOvjHA3oJCsvslwnHRQkWe+9sWoMzkiOaVBrhA+Ho5MhPjbMxyRWVc= X-Received: by 2002:a19:dc08:: with SMTP id t8mr738495lfg.503.1623269248792; Wed, 09 Jun 2021 13:07:28 -0700 (PDT) In-Reply-To: <179f21d7780.2816.cc5b3318d7e9908e2c46732289705cb0@dancol.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=yandros@gmail.com; helo=mail-lf1-x12e.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, HTML_MESSAGE=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:270610 Archived-At: --000000000000f2fa2905c45ad2b3 Content-Type: text/plain; charset="UTF-8" On Wed, Jun 9, 2021 at 11:56 AM Daniel Colascione wrote: > It should be fast enough for all modes. This isn't 1985. Computers in > general are *several orders* of magnitude faster than needed to do real > time syntax highlighting in general. Other editors don't seem to > struggle. > Tree sitter is very fast. If regular editing is stuttering because of > fontification, we have bad data structures, algorithms, or architectures > --- that is, bugs. And we shouldn't add user options to paper over bugs. > That's ridiculous. I can't believe we really want to propose a "please > make > syntax highlighting wrong" user option. > I'm all for keeping context in mind, and I think that part of that is Eli's unusual circumstances: running unoptimised builds with extra checking enabled. I don't know what his particular hardware is like, but my laptop is a medium-spec i5 from ~4 generations back running debian inside a lightweight VM, and I can both scroll from top to bottom of src/xdisp.c and open the file and immediately Esc-> to the end without (being aware of?) font-lock falling behind. Are other people having much worse experiences than this? Is there some other situation where emacs developers are frequently seeing problems? I don't do anything with C++ anymore, and I haven't bothered setting up LSP here. Thanks ~Chad --000000000000f2fa2905c45ad2b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Jun 9, 2021 at 11:56 AM Daniel Co= lascione <dancol@dancol.org>= wrote:
It shoul= d be fast enough for all modes. This isn't 1985. Computers in
general are *several orders* of magnitude faster than needed to do real time syntax highlighting in general. Other editors don't seem to strugg= le.=C2=A0
Tree sitter is very fast. If regular editing is stuttering because of
fontification, we have bad data structures, algorithms, or architectures --- that is, bugs. And we shouldn't add user options to paper over bugs= .
That's ridiculous. I can't believe we really want to propose a &quo= t;please make
syntax highlighting wrong" user option.

I'm all for keeping context in mind, and I think that part of tha= t is Eli's unusual circumstances: running unoptimised builds with extra= checking enabled. I don't know what his particular hardware is like, b= ut my laptop is a medium-spec i5 from ~4 generations back running debian in= side a lightweight VM, and I can both scroll from top to bottom of src/xdis= p.c and open the file and immediately Esc-> to the end without (being aw= are of?) font-lock falling behind.=C2=A0

Are other= people having much worse experiences than this? Is there some other situat= ion where emacs developers are frequently seeing problems? I don't do a= nything with C++ anymore, and I haven't bothered setting up LSP here.= =C2=A0
=C2=A0
Thanks
~Chad

=
--000000000000f2fa2905c45ad2b3--