From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs-dynamic-module in Emacs Git? Date: Sun, 30 Nov 2014 09:08:42 -0500 Message-ID: References: <87wq6tu5m5.fsf@kima.orebokech.com> <85h9xwhpy9.fsf@stephe-leake.org> <87k32sh50f.fsf@lifelogs.com> <85tx1rg64e.fsf_-_@stephe-leake.org> <87siha7r3b.fsf@lifelogs.com> <87lhmz4mtj.fsf@lifelogs.com> <87sih575rc.fsf@lifelogs.com> <8361dyaqf1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417356570 20432 80.91.229.3 (30 Nov 2014 14:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2014 14:09:30 +0000 (UTC) Cc: =?windows-1252?Q?Aur=E9lien?= Aptel , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 30 15:09:23 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xv5Bg-00085r-PX for ged-emacs-devel@m.gmane.org; Sun, 30 Nov 2014 15:09:20 +0100 Original-Received: from localhost ([::1]:50567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xv5Bg-0007nB-3c for ged-emacs-devel@m.gmane.org; Sun, 30 Nov 2014 09:09:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xv5BK-0007n6-Qe for emacs-devel@gnu.org; Sun, 30 Nov 2014 09:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xv5BD-0004hk-Aj for emacs-devel@gnu.org; Sun, 30 Nov 2014 09:08:58 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xv5B5-0004hN-FH; Sun, 30 Nov 2014 09:08:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsUIAGA2ZVRFpaJS/2dsb2JhbABbgw6KYssMBAICgRwXAQEBAQEBfIQDAQEDAVYWCgMFCws0EhQYDSSISwnRBAEBAQcBAQEBHpEUB4RLBYwLpxeBdoQaH4J7AQEB X-IPAS-Result: AsUIAGA2ZVRFpaJS/2dsb2JhbABbgw6KYssMBAICgRwXAQEBAQEBfIQDAQEDAVYWCgMFCws0EhQYDSSISwnRBAEBAQcBAQEBHpEUB4RLBYwLpxeBdoQaH4J7AQEB X-IronPort-AV: E=Sophos;i="5.07,380,1413259200"; d="scan'208";a="99148805" Original-Received: from 69-165-162-82.dsl.teksavvy.com (HELO ceviche.home) ([69.165.162.82]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Nov 2014 09:08:42 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id A6C766626B; Sun, 30 Nov 2014 09:08:42 -0500 (EST) In-Reply-To: <8361dyaqf1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Nov 2014 19:05:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178510 Archived-At: > fail), unless we mark such exportable functions and build an > import library that will be passed to the linker when the module's > shared object is built. Likewise with global variables defined by > Emacs. Indeed, we'll have to define clearly what can be called. Basically, design an API for modules. > (In general, I question why "modules" that require such tight > integration with Emacs internals are a good idea: why not simply > add them to the Emacs core and be done with that? What do we gain > by having them as separate .so shared objects?) Because we want to provide the possibility to distribute dynamic moduless via GNU ELPA, MELPA, Marmalade, ... Stefan