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: DSO-style FFI Date: Tue, 08 Oct 2013 22:40:59 -0400 Message-ID: References: <877gdqrc9u.fsf@flea.lifelogs.com> <87mwmmp05f.fsf@flea.lifelogs.com> <87fvsdpato.fsf@flea.lifelogs.com> <8738oc20xk.fsf@flea.lifelogs.com> <87d2ngzlyl.fsf_-_@flea.lifelogs.com> <87siwcxda7.fsf@flea.lifelogs.com> <87zjqjfz36.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381286482 30815 80.91.229.3 (9 Oct 2013 02:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 02:41:22 +0000 (UTC) Cc: jerry.james@xemacs.org, emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 09 04:41:24 2013 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 1VTjiF-0006AE-SF for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2013 04:41:23 +0200 Original-Received: from localhost ([::1]:39928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTjiF-00056p-F8 for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2013 22:41:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTji5-0004xE-2R for emacs-devel@gnu.org; Tue, 08 Oct 2013 22:41:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTjht-0007OU-UT for emacs-devel@gnu.org; Tue, 08 Oct 2013 22:41:12 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTjht-0007M8-QD for emacs-devel@gnu.org; Tue, 08 Oct 2013 22:41:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBrEfkA6RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBrEfkA6RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="35076327" Original-Received: from 206-248-175-45.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.175.45]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Oct 2013 22:37:17 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 90DE1AE215; Tue, 8 Oct 2013 22:40:59 -0400 (EDT) In-Reply-To: <87zjqjfz36.fsf@fleche.redhat.com> (Tom Tromey's message of "Tue, 08 Oct 2013 11:32:13 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:164030 Archived-At: > This approach seems very weird to me. Yup. > I don't understand why it is preferable to a libffi-based FFI. I don't claim it's a better solution, really. I just don't see anny movement towards providing libffi support (other than people saying we should do it). I think the reason is that I don't know anyone who's willing/able to add libffi support to Emacs and write the corresponding code to link to (say) libgnutls. Whereas the path I suggest only involves steps which I'm pretty sure many people here can do without much trouble. Stefan> One issue will be compatibility of various kinds of dl_open Stefan> mechanisms on various OSes, but you should find lots of help for Stefan> that here, so the first version can focus on supporting only Stefan> GNU/Linux. > GNU already has libltdl. See, "you should find lots of help for that here". Stefan