From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bolega Newsgroups: gmane.emacs.help Subject: A toy example of embedding C code in lisp and vice versa Date: Sat, 12 Jun 2010 12:08:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0d1dad3b-cd37-4bc3-b903-40ac6a53be32@j8g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291842178 32738 80.91.229.12 (8 Dec 2010 21:02:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 21:02:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 22:02:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQRA0-0002VB-By for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 22:02:48 +0100 Original-Received: from localhost ([127.0.0.1]:39631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQQjy-0002nj-A4 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 15:35:54 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!j8g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help, comp.lang.c, comp.lang.lisp, comp.lang.scheme, comp.lang.c++ Original-Lines: 20 Original-NNTP-Posting-Host: 75.28.103.27 Original-X-Trace: posting.google.com 1276369698 25448 127.0.0.1 (12 Jun 2010 19:08:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 12 Jun 2010 19:08:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j8g2000yqd.googlegroups.com; posting-host=75.28.103.27; posting-account=REkl4woAAABFXaU7nL79XtGpnmNCQ415 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178872 comp.lang.c:975911 comp.lang.lisp:288982 comp.lang.scheme:86968 comp.lang.c++:1040632 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76012 Archived-At: Here is a link to a thread that discusses this topic but there is no complete example. http://objectmix.com/lisp/362409-howto-use-lisp-scripting-language-within-c.html Lars Lune has a good section on code by searching this string "On Tue, 18 Mar 2008 01:16:00 -0700, Blackguester wrote:" but his code is replaced with smileys and even source shows it. I could not muster the confidence as a newbie to go into it by myself. Unless a guru can guide and explain. http://common-lisp.net/project/cffi/ http://common-lisp.net/project/cffi/manual/html_node/Tutorial.html http://www.sbcl.org/manual/Foreign-Function-Interface.html Should I pick SBCL or ECL ? I have a long term view.