From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: DSO-style FFI Date: Tue, 08 Oct 2013 11:32:13 -0600 Message-ID: <87zjqjfz36.fsf@fleche.redhat.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381253549 2601 80.91.229.3 (8 Oct 2013 17:32:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Oct 2013 17:32:29 +0000 (UTC) Cc: jerry.james@xemacs.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 08 19:32:32 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 1VTb95-0006Dx-F4 for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2013 19:32:31 +0200 Original-Received: from localhost ([::1]:38070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTb95-0007wC-1I for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2013 13:32:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTb8v-0007mq-OW for emacs-devel@gnu.org; Tue, 08 Oct 2013 13:32:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTb8p-0004Xm-Qv for emacs-devel@gnu.org; Tue, 08 Oct 2013 13:32:21 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:50796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTb8p-0004Xb-J5 for emacs-devel@gnu.org; Tue, 08 Oct 2013 13:32:15 -0400 Original-Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r98HWEwX017942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Oct 2013 13:32:15 -0400 Original-Received: from barimba (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r98HWD8G013033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 8 Oct 2013 13:32:13 -0400 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Tue, 08 Oct 2013 12:35:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 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:164012 Archived-At: Stefan> Well, it doesn't exist for Emacs, so you won't be able to use until you Stefan> write it. AFAIK it's been usable for a decade in XEmacs. This approach seems very weird to me. I don't understand why it is preferable to a libffi-based FFI. The main difficulty I see is that now you're either promising an internal Emacs ABI -- hard to do -- or you're requiring recompilations whenever Emacs changes -- hard on users. 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. Tom