From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Sat, 11 Sep 2021 08:51:00 +0300 Message-ID: <8335qbirsr.fsf@gnu.org> References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@gmail.com> <4E876354-10D1-46B3-8124-CAE916261F08@gmail.com> <0A3F5464-B90D-4D47-BBDD-CCA26D877F43@gmail.com> <83tuiys1y4.fsf@gnu.org> <835yvcpdip.fsf@gnu.org> <7B1F90DE-A992-4F51-B391-0A4E5A598780@gmail.com> <3E8CA8E4-E623-4051-A76D-508C6CF94B6A@gmail.com> <837dfpj5yf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ubolonton@gmail.com, theo@thornhill.no, cpitclaudel@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, stephen_leake@stephe-leake.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 11 07:52:16 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 1mOvw0-000266-5S for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Sep 2021 07:52:16 +0200 Original-Received: from localhost ([::1]:41146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOvvy-0002y5-7L for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Sep 2021 01:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOvv9-0002Id-21 for emacs-devel@gnu.org; Sat, 11 Sep 2021 01:51:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53722) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOvv5-00064M-Ig; Sat, 11 Sep 2021 01:51:19 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1805 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOvv4-000151-V2; Sat, 11 Sep 2021 01:51:19 -0400 In-Reply-To: (message from Yuan Fu on Fri, 10 Sep 2021 12:57:22 -0700) 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:274536 Archived-At: > From: Yuan Fu > Date: Fri, 10 Sep 2021 12:57:22 -0700 > Cc: Tuấn-Anh Nguyễn , > Theodor Thornhill , > Stephen Leake , > Clément Pit-Claudel , > Stefan Monnier , > emacs-devel@gnu.org > > > Sure. I guess we will have to have a database of module names for > > each programming language somewhere? > > My plan is to translate lisp names to C names by default, and have an override list for irregular names that can’t be translated correctly. What are "Lisp names" in this context? Are you saying that the name of a programming language, derived from the major mode, can be used to produce the name of the shared library programmatically? If so, how? > Just realized another problem, how do we make sure the loaded library is GPL-compatible? There certainly won’t be “plugin_is_GPL_compatible” symbol in them… And IIUC Emacs cannot load GPL-incompatible dynamic libraries? That's only needed for Emacs modules, not for external libraries that provide some extra functionality on the level of primitives. For those, we just make sure their license is compatible with GPL.