From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Wed, 11 Jul 2012 11:40:14 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341999657 3432 80.91.229.3 (11 Jul 2012 09:40:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 09:40:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 11:40:57 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 1SotPc-0002z9-FH for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 11:40:48 +0200 Original-Received: from localhost ([::1]:48881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SotPb-0000DI-Hd for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 05:40:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SotPX-0000CJ-RT for emacs-devel@gnu.org; Wed, 11 Jul 2012 05:40:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SotPR-00059y-Dk for emacs-devel@gnu.org; Wed, 11 Jul 2012 05:40:43 -0400 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:52342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SotPR-00054V-7h; Wed, 11 Jul 2012 05:40:37 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 128D5D5500; Wed, 11 Jul 2012 11:40:31 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF3) Original-Received: from mf3.bahnhof.se ([127.0.0.1]) by localhost (mf3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dpi9KMMo-Ue5; Wed, 11 Jul 2012 11:40:25 +0200 (CEST) Original-Received: from exodia.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf3.bahnhof.se (Postfix) with ESMTP id BF024605051; Wed, 11 Jul 2012 11:40:25 +0200 (CEST) Original-Received: from chopper.vpn.verona.se (unknown [192.168.201.10]) by exodia.verona.se (Postfix) with ESMTP id 003BA4E0088; Wed, 11 Jul 2012 11:40:14 +0200 (CEST) In-Reply-To: (joakim@verona.se's message of "Thu, 28 Jun 2012 08:20:56 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 213.80.101.12 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:151529 Archived-At: joakim@verona.se writes: > Glenn Morris writes: > >> "John Wiegley" wrote: >> >>> So if we update Dave's patch, it can be committed toward 24.2? >>> >>> http://www.loveshack.ukfsn.org/emacs/dynamic-loading/> >> Obviously there are many factors that go in to answering that question. >> >> One to possibly bear in mind is that in recent years he no longer wants >> to assign his copyright to the FSF (IIUC). I don't know if that has any >> relevance to code previously written with the obvious intent of being in >> Emacs, but never actually committed. I guess not (?). > > If no existing patch can be used, I can write one. (I have experience of > libffi, etc) I'm currently looking at making the xwidget branch support Gobject Introspection(GIR), to a degree. This is not full FFI support, but it would have several interesting consequences: - Many more gtk widgets could be embedded in an emacs buffer(rather than the now hardcoded ones) - A number of interesting non-visual gnome libraries support introspection I think this would be nice and useful. GIR does use libffi under the hood. Anyway, that was just a heads up. Currently it's not going too well because I find the GIR documentation to be not so lucid in some areas. BTW a user reported success in running the xwidget branch on osx, with an embedded webkit! This semi-shows that the approach is viable on several plattforms. -- Joakim Verona