From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= Newsgroups: gmane.emacs.devel Subject: [NonGNU ELPA] New packages proposal: tree-sitter Date: Fri, 27 Aug 2021 17:48:11 +0700 Message-ID: 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="20388"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 27 12:49:21 2021 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 1mJZQH-00053j-6X for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Aug 2021 12:49:21 +0200 Original-Received: from localhost ([::1]:40400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJZQF-00019V-Tf for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Aug 2021 06:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJZPU-0000Sk-B9 for emacs-devel@gnu.org; Fri, 27 Aug 2021 06:48:32 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:53828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJZPS-0003p0-Kq for emacs-devel@gnu.org; Fri, 27 Aug 2021 06:48:32 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id j1so4246191pjv.3 for ; Fri, 27 Aug 2021 03:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=S4Ra6mYRS/Dn3WpuxGDEaywVjIwhwXeGxfiLMX6sJNY=; b=N2j6FVlzFwnDwE9JpqG4Zd30ah3Ls2CW6iYT6EXLHiHAzp3yMDEApiX7ydit6jXpwa hhoYPqtFjXmEF+ejlpoSA+D6kQ7/9PR7kXIMMnGe+yEMqEeCMCFdgX48lMFddRoz/ZIy RseHXRy/1WtAX3v2KqdOpTb0JveYCoty2haUnBWiHyOx8KNK2PXHOinhHNtx4fxZ5hRr MXKHU6UgwOIVHN+snsf7BmNnvyyzBvkV8IbeoLRAZs7KEivFCa1Ui6GA/VXLCIogctRi cft/ZHmMAY9BCWDe/YNZcuq2yMghRhqv2wsYsJFnwCHS662xJc7INKyeX7Ds4z52VW7+ 327A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=S4Ra6mYRS/Dn3WpuxGDEaywVjIwhwXeGxfiLMX6sJNY=; b=pWVA/JykiXYxMXKeCj9V79DA1oZ0p8XJYgXGnV3/gNm31jTrDjvAZO9Y/m8WnRZIe3 Wf3x/tKJrPjj+xRGj/Hngw2m+FZHaODBXZlXFqAiwm4etlVnWYgnNPJ1EqUaBb3stBe1 PiidwsgAEmIJcFUgLcEHhBVOB1Drj2ad1M3jQaoB//MhrEG2wq+It4FD+Lp+lOi0+Nas EwGrwUDN/tA9uMjRv1cfoFqCrMkG8My+RsANbxVtw8ZbcH2ikHVqw0oMXfrpzsOr2IVn DvwoWOhG3hue5+Mg8uRxQmwnNSA7Ax6hPlgbTIyLuaqFXtHoHR/ll1Z70HzZLqKTQpbU ULOg== X-Gm-Message-State: AOAM531Uh6Mjl+anTOQQEov9Oh1p1YH4g4EsrzrIAXLSGh+0FTAWUb7P ICFANWNyVvT6nV+79PRIAs/NLKg/t/iQzHKYSsSg4VeTyBDyZQ== X-Google-Smtp-Source: ABdhPJwnP2usHcUx4hRqx5442ktaLcnVo38dY2WQG09gt6PnQxu8yG8IGCbCGrnnW3n0yYb8S/3aObhxeu+ABrHLuXQ= X-Received: by 2002:a17:90a:19d0:: with SMTP id 16mr16437965pjj.4.1630061307896; Fri, 27 Aug 2021 03:48:27 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=ubolonton@gmail.com; helo=mail-pj1-x1034.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.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:273143 Archived-At: Hi, I want to add 3 Tree-sitter packages to NonGNU ELPA: - tsc: Low-level bindings of core tree-sitter functionalities, exposed to E= Lisp through a dynamic module, as well as facilities to compile that dynamic m= odule from source. - tree-sitter: High-level integration with Emacs's editing facilities, incl= uding per-buffer syntax trees and code highlighting mechanism. - tree-sitter-langs: Collection of language-specific highlighting patterns,= as well as facilities to compile/download language grammars. After checking the guidance, I see that the packages satisfy most of the ru= les, except for the following: 1. Copyright notices: I use the header SPDX-License-Identifier in each file= , instead of putting in the full text. Is this acceptable? 2. No code downloading over the Internet: Currently, on supported platforms (Linux/macOS/Windows on x86_64): - The tsc package would download the pre-compiled dynamic module from GitHu= b. - The tree-sitter-langs package would download an archive of pre-compiled grammars from GitHub (in the form of shared dynamic libraries). Note that the packages do provide facilities for users to compile the binar= ies on their own. (Documentation on how to do so is to be written.) The dynamic module's source would be included in the tar archive. The sources of langua= ge grammars would need to be obtained by other means, e.g. by downloading from various git repositories over the Internet. What's the best way to resolve this? I can think of several ways: a. Disable downloading of pre-compiled binaries entirely, and ask users to compile on their own. b. Include the pre-compiled binaries (for several platforms) in the tar archives. c. Host the pre-compiled binaries separately, on NonGNU ELPA server instead of GitHub. Are there other questions/comments/objections? Links: - Doc: https://emacs-tree-sitter.github.io/ - Source for tree-sitter and tsc: https://github.com/emacs-tree-sitter/elisp-tree-sitter - Source for tree-sitter-langs: https://github.com/emacs-tree-sitter/tree-sitter-langs -- Tu=E1=BA=A5n-Anh Nguy=E1=BB=85n Software Engineer