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: FFI again Date: Sun, 06 Oct 2013 23:29:31 -0400 Message-ID: References: <87iox9luwa.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381116588 10190 80.91.229.3 (7 Oct 2013 03:29:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 03:29:48 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 05:29:51 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 1VT1W2-0002dy-Ry for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 05:29:50 +0200 Original-Received: from localhost ([::1]:57221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT1W1-00032l-TZ for ged-emacs-devel@m.gmane.org; Sun, 06 Oct 2013 23:29:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT1Vs-00032L-2m for emacs-devel@gnu.org; Sun, 06 Oct 2013 23:29:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT1Vk-00013F-PD for emacs-devel@gnu.org; Sun, 06 Oct 2013 23:29:40 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:60760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT1Vk-000138-L0 for emacs-devel@gnu.org; Sun, 06 Oct 2013 23:29:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="34901811" 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; 06 Oct 2013 23:25:55 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5CBD7AE4CB; Sun, 6 Oct 2013 23:29:31 -0400 (EDT) In-Reply-To: <87iox9luwa.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Mon, 07 Oct 2013 10:41:41 +0900") 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:163934 Archived-At: > libxml, maybe. libgnutls I would continue to provide a dedicated > wrapper for. It's very tricky to get the Lisp-to-C type matching > robust in an FFI, and if there's a problem in the FFI you probably > break all existing modules by fixing it. In the meantime, if the FFI IIUC this is the kind of problem I was referring to, which would be mostly avoided by using an FFI system based on hand-written C wrappers: you don't have to export to Lisp all the C-level details. Stefan