From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Hosting tree-sitter pre-built language definitions on ELPA? Date: Sat, 1 Oct 2022 22:57:41 -0700 Message-ID: <5E327D85-FFF2-4633-98B7-B53EC9A8038B@gmail.com> References: <6AC1140D-C4BA-4A39-9474-F127CF79DF28@gmail.com> <87pmfa4xib.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="13040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 07:59:19 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 1oes0V-0003BI-4r for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 07:59:19 +0200 Original-Received: from localhost ([::1]:47744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oes0U-0000a8-2J for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 01:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeryz-0007VO-Ng for emacs-devel@gnu.org; Sun, 02 Oct 2022 01:57:45 -0400 Original-Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:34498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeryy-0001Zp-81 for emacs-devel@gnu.org; Sun, 02 Oct 2022 01:57:45 -0400 Original-Received: by mail-pf1-x429.google.com with SMTP id f140so2385259pfa.1 for ; Sat, 01 Oct 2022 22:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=VV0DQmPQW6MqSw9nih+LWJszvCGduoKD24jZOFfymqI=; b=UCUGbH/7+xQdxnCbKNh2XA0fXtdpEObj/GatN94kGW5Uarxv8PaEXAWM9PbJ3FAc5i UEPhW/bUimdEFTfYfzQCcRM/Bu7UACPfNrqZDYgsTIqWkd12XXtwoW+ypzFm2CHZoQRF 6lOoyCBwD0W9nPXEijpd1ENp9gswqTE6va0+kj0lwmm9BlfNjo4J21bhVSX+BxXB7eD8 OfE8Sjs2lmOeM1dcxxRziGE7ngCyobkjW9qEmHacn5YkX3D0v1uUxcLZeHrA3h+gcG9P nquN9pwXsRVv68Deszpec+GtnkQ8g36KrkFB9oJXWKWIw45bvhJ4ncvorIObg0+Vq2/9 ELcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=VV0DQmPQW6MqSw9nih+LWJszvCGduoKD24jZOFfymqI=; b=vwiTpSd/sGsK2AZZBkXdtRtJMAjavTynH/dg+xhEL7D7RU7ckzX/mea5wMn9Jmzr1X 9om62E7lM2GgwzR20G6yMIDs+aXNhkv2/OQea9RuBPKoySLUg74pxpCMhABaMrDpUvkk pxOelRYeg6RuG96CWOgdvYQEVe3wYWO5i47kXINNcsnPog2Gm2dmkcXrEdcdIuD2IrML QYwqBtUJuD/vk5o0xJ7hHEh2j+Ip+ZeekREmSFZd84IXtvqhOnFSo2cgSPvPyPChUTIZ 8goIDrxkG+wFYYP2Dxo/TP8X6LTKQy9PGcV32vVDV1eQTDJ5lpMneA6U1Kx71mDMWJoL EHOQ== X-Gm-Message-State: ACrzQf2O0LlAB4TEzDqk+mCTRp3s4UDVW03kUgtUxOpDp9fymsMwQCwV /nucffKV/D12LkK1CJY1jDk= X-Google-Smtp-Source: AMsMyM6zc54V70xVhzgpDz3yc0Oqy7z/Er3gZSTUJb1ZVn9ijqh+VSges2fjGTU7N6sUSSPCDVX+FA== X-Received: by 2002:a63:85c3:0:b0:43a:e034:9e39 with SMTP id u186-20020a6385c3000000b0043ae0349e39mr14052292pgd.219.1664690262725; Sat, 01 Oct 2022 22:57:42 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id a4-20020a170902ecc400b00179f370dbe7sm4763881plh.287.2022.10.01.22.57.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2022 22:57:42 -0700 (PDT) In-Reply-To: <87pmfa4xib.fsf@yahoo.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=casouri@gmail.com; helo=mail-pf1-x429.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-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:296577 Archived-At: > On Oct 1, 2022, at 10:15 PM, Po Lu wrote: >=20 > Yuan Fu writes: >=20 >> Tree-sitter needs language definitions to parse different >> languages. These language definitions come in the form of dynamic >> libraries. We can=E2=80=99t bundle them with Emacs since their = version must >> match that of tree-sitter library, and we don=E2=80=99t bundle the = tree-sitter >> library; also they are machine-dependent. >=20 > If that's a problem, perhaps we could import the tree-sitter library > into the Emacs tree, like the XMenu library currently is. Tree-sitter is designed to be embedded, so it=E2=80=99s small and has no = dependencies. But tree-sitter could release a new version and then = language definitions now uses that new version, while Emacs is still = using the old version of tree-sitter. IMHO it is best to keep them = (tree-sitter library and language definitions) external since that=E2=80=99= ll be easier to maintain, and Emacs don=E2=80=99t depend on tree-sitter = to function. Yuan=