From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Wed, 11 Jul 2012 08:43:00 +0200 Message-ID: <87r4sibxxn.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341989004 21132 80.91.229.3 (11 Jul 2012 06:43:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 06:43:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 08:43:22 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 1Soqds-0002zB-Dx for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 08:43:20 +0200 Original-Received: from localhost ([::1]:42416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soqdr-0007hA-8p for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 02:43:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soqdo-0007gn-7g for emacs-devel@gnu.org; Wed, 11 Jul 2012 02:43:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Soqdj-00074t-24 for emacs-devel@gnu.org; Wed, 11 Jul 2012 02:43:15 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:59518) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Soqdi-00074W-ND for emacs-devel@gnu.org; Wed, 11 Jul 2012 02:43:10 -0400 Original-Received: (qmail invoked by alias); 11 Jul 2012 06:43:08 -0000 Original-Received: from p57BB9387.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.147.135] by mail.gmx.net (mp024) with SMTP; 11 Jul 2012 08:43:08 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19jxUopiy9j9SK6lcAU25DQ61BQDP7yYhOcUjEUvU 0roVz8HNsaHMQS 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-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:151526 Archived-At: "John Wiegley" writes: >>>>>> Stefan Monnier writes: > >>>> So if we update Dave's patch, it can be committed toward 24.2? >>>> http://www.loveshack.ukfsn.org/emacs/dynamic-loading/ > >> Possibly, yes. I haven't looked at the code, so I can't whether I'd like it >> or not, and we'd want someone willing to maintain it. > > I took a look at Dave's code, and it's not so much an FFI patch as a "writing > Emacs Lisp functions in C" patch. > > 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. Maybe it's worth to look on what the Guile folks have done. > John Best regards, Michael.