From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: 813gan <813gan@protonmail.com> Newsgroups: gmane.emacs.devel Subject: Re: emacspy dynamic module - support request Date: Wed, 28 Aug 2024 01:29:36 +0000 Message-ID: References: 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="19623"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 28 03:30:40 2024 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 1sj7WB-0004td-QI for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Aug 2024 03:30:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sj7VQ-0005rk-2o; Tue, 27 Aug 2024 21:29:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <813gan@protonmail.com>) id 1sj7VM-0005rB-VK for emacs-devel@gnu.org; Tue, 27 Aug 2024 21:29:48 -0400 Original-Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <813gan@protonmail.com>) id 1sj7VJ-00005i-V2 for emacs-devel@gnu.org; Tue, 27 Aug 2024 21:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1724808581; x=1725067781; bh=6BTxyiUEobI7g0d04VfNetWcRt2YdLTPYD5sTCONKzg=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=CEhtBRIp53Vyc2OuEN72Hx02Twv9J3q+BtHiP8qu2Z1jfem9BjFXbSVfetvf0ZoE8 4xjNof8vxGHSVusKOkk7lMbGr5r+93AZn/WlFhp4wJ5sUIic6s1u11u9oia5ApFidf hpgwnmODSsa3TPTBwbn3PLKw7o66uBT3msYhTLUkJ3y/gwqaUcLZYuYkLC5Z+VdAhY Zmc9h3BCdbRY6LrrmM3tmoADp6T0Wm5j3pyLC2hT2corlCkO3CvG9+iOPIPtZutTku bySIctI9lZMw6ad4KUT5VCg3CyXZBVFUe79HuKK8dbxXss4OocK1bL194lk+00kfjA j2l6ZBYLcMsmw== In-Reply-To: Feedback-ID: 117569825:user:proton X-Pm-Message-ID: 8017323682dd506cf73d0dccec92516fe2f8f9c8 Received-SPF: pass client-ip=185.70.43.22; envelope-from=813gan@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 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, FROM_STARTS_WITH_NUMS=0.738, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323146 Archived-At: > > My intention is to allow Emacs modes to use python modules including > > bindings of external libraries. >=20 > This sort of thing risks encouraging distributing software that > dynamically links Emacs with nonfree libraries. It is the same risk > that exists with dynamic modules written in C. >=20 > For dynamic modules written in C, we've taken some measures to > discourage thta. Does emacspy take the same measures? If not, > could you modify it to take them? Emacspy currently does not validate licenses of Python modules. I have plan to add hi-level Elisp API on top of existing C/cython functions= . Making such license validation would be easy to do inside this hi-level API= . I assume malicious users trying to bypass validation are not concern. > Could you possibly host your variant on a different repo site? Sure. I pushed https://notabug.org/813gan/emacspy