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: FFI in Emacs Date: Thu, 12 Jul 2012 09:55:14 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342101343 10953 80.91.229.3 (12 Jul 2012 13:55:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 13:55:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 15:55:42 2012 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 1SpJrg-0004k7-36 for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 15:55:32 +0200 Original-Received: from localhost ([::1]:49623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpJrf-00025X-Bs for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 09:55:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpJrc-000258-W6 for emacs-devel@gnu.org; Thu, 12 Jul 2012 09:55:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpJrX-0003gg-CO for emacs-devel@gnu.org; Thu, 12 Jul 2012 09:55:28 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpJrT-0003fi-1K; Thu, 12 Jul 2012 09:55:19 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6CDtGU9019321; Thu, 12 Jul 2012 09:55:17 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5DDE3AE3BA; Thu, 12 Jul 2012 09:55:15 -0400 (EDT) In-Reply-To: (John Wiegley's message of "Wed, 11 Jul 2012 00:24:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4276=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4276> : streams <783342> : uri <1163399> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:151552 Archived-At: > A real FFI patch would let me dlopen any C library and call functions within > it, such as openssl or zlib. Dave's patch is more like what Python allows: > writing Emacs Lisp extensions in C that can be loaded as shared libraries. That sounds right, thank you. Just for the record: Emacs's FFI should not be able to open just any random shared library. Only the ones that come with the needed extra "I'm compatible with the GPL" branding (as attested by the presence of the "plugin_is_GPL_compatible" symbol, IIRC). Hopefully, more and more libraries will come with such branding in the future. Stefan