From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: VanL Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs Date: Sat, 04 Jan 2020 23:50:24 +1100 Organization: BMF Prizefighter 'President' Trump 2020 Keep America Great =?utf-8?B?yZnJmTBA?= Ultimat Fighting Cybr Message-ID: References: <83blrkj1o1.fsf@gnu.org> <41b3e9a0-2866-4692-a35c-6d9541bc3aaa@Spark> <83lfqnha8a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="164456"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 04 13:51:43 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iniu7-000gdn-9P for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 13:51:43 +0100 Original-Received: from localhost ([::1]:33716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iniu5-00075H-Re for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 07:51:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35016) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1initz-00075A-Cf for emacs-devel@gnu.org; Sat, 04 Jan 2020 07:51:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inity-00005F-8r for emacs-devel@gnu.org; Sat, 04 Jan 2020 07:51:35 -0500 Original-Received: from blaine.gmane.org ([195.159.176.226]:59452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1inity-0008RX-26 for emacs-devel@gnu.org; Sat, 04 Jan 2020 07:51:34 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1initv-000gU2-Qh for emacs-devel@gnu.org; Sat, 04 Jan 2020 13:51:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:kL9zyyopS0mflE0G5cVswYCLB3I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243916 Archived-At: Eli Zaretskii writes: > E.g., step 1 is anathema to JIT font-lock: it would produce a long > delay in displaying a file's buffer when the file is first visited. > For example, think about visiting a large and complex source file such > as xdisp.c: even if it takes tens of milliseconds to parse all of it, > as some tree-sitter presentation claims, waiting for that long before > we even start displaying the first window-full would be an annoyance. > And that's even before we consider the time to compute all the face > text properties from the syntax tree, something that will also take > time. Is it possible to phase out the C part of Emacs over the present decade given [1] and can the approaches presented there foreshorten that wait time? Footnotes: [1] C is not a low-level language https://queue.acm.org/detail.cfm?id=3212479