From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Wed, 11 Jul 2012 00:24:27 -0500 Organization: New Artisans LLC Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341984281 23052 80.91.229.3 (11 Jul 2012 05:24:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 05:24:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 07:24:39 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 1SopPi-00020a-N6 for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 07:24:38 +0200 Original-Received: from localhost ([::1]:33975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SopPh-0008Ds-Jc for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 01:24:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SopPe-0008DD-FK for emacs-devel@gnu.org; Wed, 11 Jul 2012 01:24:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SopPc-0001ck-K4 for emacs-devel@gnu.org; Wed, 11 Jul 2012 01:24:34 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:65275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SopPc-0001cf-Dw; Wed, 11 Jul 2012 01:24:32 -0400 Original-Received: by ghrr18 with SMTP id r18so927711ghr.0 for ; Tue, 10 Jul 2012 22:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:organization:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=DsuCgfwgslryS8REBACSRSvpVgiHUlKK/UchYMaOUMQ=; b=S59FhmiKe9m96ANfZKIc00rtE423R3lUK60+rcYLIsWQ9tKz2tRTIn9tNkYc7JPC7n 40EBg74X++Dcfh8RXs9rMl+kmuPAiWAOV3560tUtGtabhYkBebidd0OQSFHQ1rnrY5yj bt6RPvq/9mOENYwZ0PW/+htGuvmDkmhW6TjnLybGMuH9RhPKnZ5FTWOBNwFZ/FKsXvOI zv/Fo0DkJGeMnapToIUESaSO/zoF2cSe+RacYi17wAFj4jSMg2OlKGGRx2VUmMS4K07L h1+ktmZzLLHu4Gi9Ozznl/AXUrCXAzUwN92qNc/Pp6tGrymnQooX5MvfKOZZik7KJfR6 uFXg== Original-Received: by 10.42.155.200 with SMTP id v8mr24175958icw.12.1341984269622; Tue, 10 Jul 2012 22:24:29 -0700 (PDT) Original-Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net. [98.215.105.167]) by mx.google.com with ESMTPS id k6sm13594232igz.9.2012.07.10.22.24.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 22:24:28 -0700 (PDT) Original-Received: by vulcan.local (Postfix, from userid 501) id 3A6C4F3386B2; Wed, 11 Jul 2012 00:24:27 -0500 (CDT) Mail-Followup-To: Stefan Monnier , Glenn Morris , emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Wed, 27 Jun 2012 23:43:01 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 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:151524 Archived-At: >>>>> Stefan Monnier writes: >>> So if we update Dave's patch, it can be committed toward 24.2? >>> http://www.loveshack.ukfsn.org/emacs/dynamic-loading/ > Possibly, yes. I haven't looked at the code, so I can't whether I'd like it > or not, and we'd want someone willing to maintain it. I took a look at Dave's code, and it's not so much an FFI patch as a "writing Emacs Lisp functions in C" patch. A real FFI patch would let me dlopen any C library and call functions within it, such as openssl or zlib. Dave's patch is more like what Python allows: writing Emacs Lisp extensions in C that can be loaded as shared libraries. John