From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Thu, 12 Jul 2012 13:01:17 -0400 Message-ID: <68D9077E-E4B1-4AB4-B176-ED2ED33F480D@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342112504 13122 80.91.229.3 (12 Jul 2012 17:01:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 17:01:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 19:01:44 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 1SpMln-0004YZ-VC for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 19:01:40 +0200 Original-Received: from localhost ([::1]:40668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMln-0002To-9x for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 13:01:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMlf-0002Th-V6 for emacs-devel@gnu.org; Thu, 12 Jul 2012 13:01:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpMlb-0001Xp-Pt for emacs-devel@gnu.org; Thu, 12 Jul 2012 13:01:31 -0400 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:59562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMlV-0001WO-AG; Thu, 12 Jul 2012 13:01:21 -0400 Original-Received: by qabg27 with SMTP id g27so4506962qab.0 for ; Thu, 12 Jul 2012 10:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=h6vRfsHtRXq3Wo5m4alTWwqQwHFeyo2ZUYfbySy6Kao=; b=FJO/UdodyBwlje9xnw0fZldwTHEcssNw8+89SoN/xYBZHJglWokvsHtVWIWqfl0Ufs X236KGzSUk4ym+G88eK4O5ZXiu4HiIhV6266WdhO0VOfBA+QzNxzy1bq+e1gIiDGXNqu bB+nnIqNA67iH8Ya0nBzo/yKyiXV0jLThDxivy19ygR8nipCm12RYFWGehfi698vsyWr nP3JFKMNuAc/YFItOElBaXhiZh9CDSepnmzWmatzdQjuRt0I9N4av0UxJd3vF5+xdtSg YPrduiGK7JJdBL2VyfUmWDy3Kp+pscPhCyym+JASFtDLHHBT5fP4q9sfxYLk/8UdgppK GjSA== Original-Received: by 10.229.136.130 with SMTP id r2mr28287561qct.132.1342112480863; Thu, 12 Jul 2012 10:01:20 -0700 (PDT) Original-Received: from [192.168.0.18] (207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com. [207.172.123.137]) by mx.google.com with ESMTPS id cz12sm7742013qab.5.2012.07.12.10.01.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 10:01:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.41 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:151565 Archived-At: On Jul 12, 2012, at 9:55 AM, Stefan Monnier wrote: >> 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. > > That sounds right, thank you. > > Just for the record: Emacs's FFI should not be able to open just any > random shared library. Only the ones that come with the needed extra > "I'm compatible with the GPL" branding (as attested by the > presence of the "plugin_is_GPL_compatible" symbol, IIRC). > > Hopefully, more and more libraries will come with such branding in > the future. What is the purpose of such a symbol? It sounds suspiciously similar to ...