[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FFI in Emacs
From: |
Michael Albinus |
Subject: |
Re: FFI in Emacs |
Date: |
Wed, 11 Jul 2012 08:43:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
"John Wiegley" <address@hidden> writes:
>>>>>> Stefan Monnier <address@hidden> 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.
Maybe it's worth to look on what the Guile folks have done.
<http://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html#Foreign-Function-Interface>
> John
Best regards, Michael.
Re: FFI in Emacs, Eli Zaretskii, 2012/07/11