From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Call for volunteers: add tree-sitter support to major modes Date: Tue, 11 Oct 2022 18:19:58 +0530 Message-ID: <87pmeycyo9.fsf@gmail.com> References: <83czb1jrm3.fsf@gnu.org> <878rlo7on0.fsf@thornhill.no> <83o7uki5ol.fsf@gnu.org> <87tu4c5g9j.fsf@thornhill.no> <87k057j7gn.fsf@yahoo.com> <8D3026E9-D8A4-46EC-816B-1F7A3458DC02@gmail.com> <87czaykj2o.fsf@yahoo.com> <83fsfug75q.fsf@gnu.org> <87r0zeiysu.fsf@yahoo.com> <83bkqig4xl.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="blaine.gmane.org:116.202.254.214"; logging-data="10782"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , casouri@gmail.com, theo@thornhill.no, acm@muc.de, emacs-devel@gnu.org, jostein@kjonigsen.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 17:42:37 2022 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 1oiHOv-0002fa-PJ for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 17:42:37 +0200 Original-Received: from localhost ([::1]:36894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiHOu-0005Zk-96 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 11:42:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiEi8-0002or-VC for emacs-devel@gnu.org; Tue, 11 Oct 2022 08:50:17 -0400 Original-Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:33414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiEi3-0005mF-Vw; Tue, 11 Oct 2022 08:50:13 -0400 Original-Received: by mail-pj1-x1044.google.com with SMTP id n18-20020a17090ade9200b0020b0012097cso1515038pjv.0; Tue, 11 Oct 2022 05:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bj08tvH66wkXEAIaquAalQXou34MLtmTU1LTRKjDXJU=; b=kb9Z/cCnKbBhalZ+m39Eqn6GVkP8ibQUkGkgLoJUa++FhiWjGMAFeNqKRUeYUMxQ2i Q4nfBi3ukuu4RZ6O8iMJ5n20mpJf1CArKLEBcwJwEr9lZBmQJH/bBmrOfMwUXBEexCN8 04DDweqNHDEXLmFk5wPSTFuHoC5J4k9r8GZm3axRfjTYKM902mMr+4J6pC8LSv2NmNIn cU5zmALNiO7wcf8pQOekuRMDJyX94j7+Y7DZVZJD6buwZctEWd3u5ZRwXj6IKoS/yBNx w106WhakQydiBzDYMVRuHcBRL3qVAo7eNd0zp6jgXbRyNJTezmY/+sOZw4Z4O/itl7rM yFww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Bj08tvH66wkXEAIaquAalQXou34MLtmTU1LTRKjDXJU=; b=3Qq0+v20ff+q6G9Y42GFauFhxBJxw5IOHS47Rt3J1ZXqR5uHDnGHXlTex6RG8SFT0Q H8h8KdceorOtiN9wyGpcZ6oXUhFpfh5ocsLM/ARtFDterI06lNP0+p+a+vQ8duPYgtEZ bqXoDrHdUgHHCU7uhfe9UjXqDN7Ss3AQXdrCqmRPvM6hf4asov8JUEsuF0e3L3FlBeBD MHhGm9VgKwV/1o3MLgOSMfHkE+iLS6ab/XEiYCQIaUE9qSpIdblXUgGQRwLEpvDF2ZIc mGihN2DdsALpGCF8i2UHntiMwqFP/kYgm1kqiMI+AGeWSUYHXf23sKMTCsjklKyRCnyU DGfA== X-Gm-Message-State: ACrzQf1vtiCIaWV2T5efFE3kQwr2OslnftFxmAi6la2itxDQgaP5b1/x ryCaah0gmGn0Jqc8GvOie1qH7jS17TI= X-Google-Smtp-Source: AMsMyM4VW1YnON1zbwMcZYB4n0kVHq7XI06pxfbFDerhPz2L9sYLXj9O19r7xiwlqNZFMAw602Rl/w== X-Received: by 2002:a17:90b:2547:b0:20a:78c1:8966 with SMTP id nw7-20020a17090b254700b0020a78c18966mr37333862pjb.61.1665492608246; Tue, 11 Oct 2022 05:50:08 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id e2-20020aa798c2000000b005631a40a00bsm5760152pfm.139.2022.10.11.05.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 05:50:07 -0700 (PDT) In-Reply-To: <83bkqig4xl.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Oct 2022 11:06:30 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1044.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, 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-Mailman-Approved-At: Tue, 11 Oct 2022 11:30:33 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:297494 Archived-At: [=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D = =E0=AE=85=E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 11= , 2022] Eli Zaretskii wrote: >> [...] >> Besides, HarfBuzz is arguably a system library. Modern GNU/Linux >> systems cannot provide text display without it at all. > > The same will arguably happen with tree-sitter, once Emacs starts > using it seriously. > > [...] > >> we even have builds that do not support it at all. > > We will also support a build without tree-sitter. It will lack > important features, exactly like builds without the other optional > libraries lack important features. But it will allow one to edit > program source files. I've read the rest of this thread and understand the argument but how memory hungry does Emacs get when enabling tree-sitter? As far as I vaguely remember from the original tree-sitter inclusion discussion, tree-sitter used about the same memory as the buffer did for smallish files. Even more vaguely, I remember opening xdisp.c with tree-sitter enabled shot up the memory usage to an unacceptable limit by my computer's standards. As someone with a mere 4G of RAM and 4G of swap space, I'm wondering if enabling tree-sitter will make my laptop even more memory hungry than it already can be when stressed [1]. [1] This happens when I have a lot of tabs open in Chromium+a handful of 20~100M PDF files opened in Emacs via pdf-tools.