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: Emacs crypto use cases Date: Tue, 08 Oct 2013 22:17:46 +0900 Message-ID: <87wqlnkikl.fsf@uwakimon.sk.tsukuba.ac.jp> References: <877gdqrc9u.fsf@flea.lifelogs.com> <87mwmmp05f.fsf@flea.lifelogs.com> <87fvsdpato.fsf@flea.lifelogs.com> <8738oc20xk.fsf@flea.lifelogs.com> <87d2ngzlyl.fsf_-_@flea.lifelogs.com> <87siwcxda7.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1381238284 1662 80.91.229.3 (8 Oct 2013 13:18:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Oct 2013 13:18:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 08 15:18:07 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 1VTXAt-0007OL-J2 for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2013 15:18:07 +0200 Original-Received: from localhost ([::1]:36866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTXAt-0002R1-4z for ged-emacs-devel@m.gmane.org; Tue, 08 Oct 2013 09:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTXAi-0002Qn-PQ for emacs-devel@gnu.org; Tue, 08 Oct 2013 09:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTXAb-0007FH-8X for emacs-devel@gnu.org; Tue, 08 Oct 2013 09:17:56 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:42297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTXAa-0007Ew-Uy for emacs-devel@gnu.org; Tue, 08 Oct 2013 09:17:49 -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 DFAAB3FA0973 for ; Tue, 8 Oct 2013 22:17:46 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id D04701A79FF; Tue, 8 Oct 2013 22:17:46 +0900 (JST) In-Reply-To: <87siwcxda7.fsf@flea.lifelogs.com> X-Mailer: VM undefined under 21.5 (beta34) "kale" 182d01410b8d XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:164002 Archived-At: Ted Zlatanov writes: > SM> Just write a .c file and matching .h that will be included in Emacs and > SM> that describe some functions exported from Emacs to the dynload modules. > SM> Then adjust your libnettle code to use those exported functions instead > SM> of the lisp.h macros. Then write a bit of package.el code that runs > SM> a C compiler for packages that include such C files. And finally add > SM> a `dynload' function that uses something along the lines of `dl_open'. > > I have no idea how that would work. Is there an example? And is this > anywhere close to usable? The FFI discussion thread hasn't indicated > it. If I'm to be the guinea pig, I'm not excited about it. It's worked well in XEmacs since 2000. If you want to use our code you'll need to get papers from J. Kean Johnston and Jerry James, and maybe Ben Wing. I don't know how hard that will be, finding Kean might be hard. Jerry's been pretty busy recently, but he might be willing to give advice if you go the roll-your-own route. Steve