From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Wed, 11 Jul 2012 16:14:56 +0900 Message-ID: <877gua6a6n.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1341990931 2010 80.91.229.3 (11 Jul 2012 07:15:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 07:15:31 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: "John Wiegley" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 09:15:31 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 1Sor8z-0000uV-DZ for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 09:15:29 +0200 Original-Received: from localhost ([::1]:54227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sor8y-00078Z-EB for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 03:15:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sor8h-0006Q4-Qn for emacs-devel@gnu.org; Wed, 11 Jul 2012 03:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sor8b-0000E3-A8 for emacs-devel@gnu.org; Wed, 11 Jul 2012 03:15:11 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:38653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sor8b-0008Tg-13 for emacs-devel@gnu.org; Wed, 11 Jul 2012 03:15:05 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id E6C193FA0862; Wed, 11 Jul 2012 16:14:56 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id AA7BD1A355D; Wed, 11 Jul 2012 16:14:56 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" b4715fcbe001 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.223 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:151527 Archived-At: John Wiegley writes: > A real FFI patch Which both Python (aka the ctypes module) and SXEmacs have. http://www.sxemacs.org/ SXEmacs' implementation is about 5 years old, I believe, so the bugs should be pretty well worked out. It's not as elaborate as Python's ctypes, but quite usable. I don't see why such code would be particularly SXEmacs-specific (up to the difference in the DEFUN macro), so it should be fairly easily portable to Emacs on platforms that have libffi. It probably doesn't work on Windows (SXEmacs hasn't supported Windows for quite a while). I don't know if the authors would assign; it's easy enough to ask them, though. The VCS knows who they are. (It should be quite reliable as SXEmacs has always used a pull-style workflow based on a dVCS. You shouldn't have to worry about "committed on behalf of").