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: Mon, 30 Mar 2020 09:02:07 +0300 Message-ID: <364B2177-3E83-4230-A019-0BBD0F1151FB@gnu.org> References: <83o8sf3r7i.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="ciao.gmane.io:159.69.161.202"; logging-data="112348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: Andrea Corallo To: emacs-devel@gnu.org,Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 08:02:48 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 1jInVY-000T8U-9t for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 08:02:48 +0200 Original-Received: from localhost ([::1]:45322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jInVX-0006Vd-61 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 02:02:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46478) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jInV0-00065g-Bh for emacs-devel@gnu.org; Mon, 30 Mar 2020 02:02:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jInUz-0004Hg-5N; Mon, 30 Mar 2020 02:02:13 -0400 Original-Received: from [176.12.235.152] (port=34540 helo=[10.211.146.103]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1jInUx-0007lH-Ps; Mon, 30 Mar 2020 02:02:12 -0400 In-Reply-To: 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:245990 Archived-At: On March 30, 2020 6:35:08 AM GMT+03:00, Stefan Monnier wrote: > >> > 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=2E > > 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=2E >=20 > I'm not interested in changing the way grammars are *written*=2E > I'm proposing investigating if the tree-sitter run-time library can be > made to read an OS-and-architecture-neutral representation of > the grammar=2E What is "OS-and-architecture-neutral representation of the grammar" and ho= w it is different from what tree-sitter uses now?