From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs (via: emacs rendering comparisson between emacs23 and emacs26.3) Date: Sun, 29 Mar 2020 22:18:25 +0300 Message-ID: <83o8sf3r7i.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="35709"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 29 21:18:56 2020 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 1jIdSR-0009Bu-EE for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 21:18:55 +0200 Original-Received: from localhost ([::1]:40730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIdSQ-0005ZG-Gb for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 15:18:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIdRt-00058H-Ma for emacs-devel@gnu.org; Sun, 29 Mar 2020 15:18:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIdRt-0000Id-9L; Sun, 29 Mar 2020 15:18:21 -0400 Original-Received: from [176.228.60.248] (port=3053 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIdRs-0007K1-HL; Sun, 29 Mar 2020 15:18:21 -0400 In-Reply-To: (message from Andrea Corallo on Sun, 29 Mar 2020 19:05:57 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:245970 Archived-At: > From: Andrea Corallo > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Sun, 29 Mar 2020 19:05:57 +0000 > > Stefan Monnier writes: > > > Maybe those grammars could be compiled to some other representation (I > > don't know if it is made mostly of data-tables or actual code or what)? > > IMO ideally should be lisp and we should leverage the native compiler > for that, but I understand we are not there. FWIW, it should indeed be possible to develop the grammars in Lisp, but that is not the first goal in bringing such a package to Emacs. Not even the second one. Because once such a package can be used with Emacs, and the results are significantly better than what we have today, you will see someone come up with a way of doing that in Lisp in no time. Making the connection happen, and coming up with a good design for that, should be the first goal. IMO, we should identify the features that can benefit from that (font-lock is just one of them, maybe not even the most important one), and design the interfaces and the infrastructure so that it could support them all (and then some). But I repeat myself.