From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs Date: Sat, 11 Jan 2020 15:24:37 +0300 Message-ID: References: <83blrkj1o1.fsf@gnu.org> <838smfahbx.fsf@gnu.org> <83h8128m4r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="67756"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 11 13:25:30 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.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 1iqFpM-000F8O-BG for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 13:25:16 +0100 Original-Received: from localhost ([::1]:57056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqFpK-0000TZ-Qg for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 07:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41584) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqFoo-0008W6-2G for emacs-devel@gnu.org; Sat, 11 Jan 2020 07:24:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqFon-0007m3-0X for emacs-devel@gnu.org; Sat, 11 Jan 2020 07:24:41 -0500 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:40058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqFom-0007gQ-L4; Sat, 11 Jan 2020 07:24:40 -0500 Original-Received: by mail-lj1-x232.google.com with SMTP id u1so4940667ljk.7; Sat, 11 Jan 2020 04:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=78ZcnSI6oQgN8TTxx4i0uDAuavPvOlMw1PWZUywN/ro=; b=RTgoDVqGVHnVbmoSSbtP1bEBN9OVy1r9QL89JbmovB/SR05GL45KeeTkDtwBEdDP6+ S5FsD/Ihv+R/oOrybLSfUpfu2TBxnqeOIMeyuVyT+uUQbFFBc/hMlN5nG7tIH4vMmr57 RfeqAwDP2FkbpcBIjNeuMBJcov0DcFzgGDtYvRwv6GSj4R+tjHRjZhRE054eYApnJfWm 5Q8Up+Xp2AsStuYcgpTyVr1pwYeqocg4/WkCxUWSOK23Zsel/KSc5rtjzUOyYlOEcAOm yvKzoZZ/MRkR51nrijIR9rr80qN4CdhoFj0/kwT71EjeD5fIyBP8QaX/slsn2UI/qIAk zGxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=78ZcnSI6oQgN8TTxx4i0uDAuavPvOlMw1PWZUywN/ro=; b=Jy5l38JfVrWEiOCvkOdOVDXqEiMuYDIOxT8vQOdTKILMw6xa05MRlwLCnHozECPdY7 gFFWGdUvYqGvBAP8PKqyEgqGSYIAImVb8wNNlGY7yoOSPrN8FxBjRWGq0E7JJeCAuRsR jYM+iAp1MskZLCVYZ/QU23jH4mWqsovgf3nQvMyMP31wV7eNQEh6qPezvXoD1u582NJf +6BXK68I0clik1FZMIu4sCfsUntpcc6kfEeDyYqRj32NKVp2xjjkhm0bFQ0DQm/2dNYR wro+eAksdmRPGhZc/Gd5vRE41Q5C0OHXbzdWNUywxSNvNeZcYq8EcrBHPecciIWYUlJD CMxg== X-Gm-Message-State: APjAAAXo7WEHiYp5GRvTIOjb7T4s9FRX9KlOJVdyS/WKWjHG4i7Mq+AF WDQkhLs6cNl7vmlzZaTDP4f0ZJlc7PI= X-Google-Smtp-Source: APXvYqxnxQZhztG3G21yb+XgRU7fYLZbpq+PLQufDjwfdpKCZ7ETuarkX24FT8JQfLNYytpnzcilSA== X-Received: by 2002:a2e:858f:: with SMTP id b15mr3562089lji.275.1578745478882; Sat, 11 Jan 2020 04:24:38 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id l28sm2596963lfk.21.2020.01.11.04.24.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jan 2020 04:24:37 -0800 (PST) In-Reply-To: <83h8128m4r.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::232 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.org gmane.emacs.devel:244195 Archived-At: On 11.01.2020 9:53, Eli Zaretskii wrote: > Yes, users who want to compile their own parsers, or recompile > existing ones, will have to have a C compiler installed. Which is a > downside, but not a serious one in this case, IMO, because most users > will use existing parser tables. I'd expect most if not all of such > tables to come together with the Emacs-adapted Tree-Sitter package, or > be available on ELPA, or even (gasp!) in core. ELPA won't solve the necessity to have this code compiled for different platforms. If we go this route, then Tree-Sitter and some core grammars will have to be in the core for sure, I'm just worried about the ease of improving or developing new ones. Our users, compared to other editors, are probably the most spoiled (in a good way) in regards to development iteration speed. So, as outlined previously, we might even prefer 10x slower parsing speed if it comes with faster development cycle.