From: William Gardella <gardellawg@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using lisp code in emacs inside a C program
Date: Fri, 26 Oct 2012 01:59:57 -0400 [thread overview]
Message-ID: <87y5itg4de.fsf@gmail.com> (raw)
In-Reply-To: ed50901a-6455-491a-8002-d17672beed98@z2g2000yqj.googlegroups.com
Rivka Miller <rivkaumiller@gmail.com> writes:
> \begin{quotation}
> ECL (ECL for short) uses standard C calling conventions for Lisp
> compiled functions, which allows C programs to easily call Lisp
> functions and vice versa. No foreign function interface is required:
> data can be exchanged between C and Lisp with no need for conversion.
> \end{quotation}
>
> How did ECL achieve this?
>
> R
Not to oversimplify too much, but a compiled ECL function *is* a C
function. The Debian description of the package lists among its
features:
> ECL stands for Embeddable Common-Lisp. The ECL project is an effort to
> modernize Giuseppe Attardi's ECL environment to produce an implementation of
> the Common-Lisp language which complies to the ANSI X3J13 definition of the
> language.
> The current ECL implementation features:
> * A bytecodes compiler and interpreter.
> * A translator to C.
> ...
So it's like similar initiatives for Pascal, FORTRAN, etc.--the end
result is a C program that you can poke at with tools designed to work
with C (binutils, gdb, etc.) and which can communicate natively with C
functions. I've not used it and have heard mixed reviews (mostly on
#emacs) about its performance relative to other compiled CL
implementations. But if what you need is Lisp inside C, it seems this
is your bet--it can even be used to make C shared libraries, it looks
like.
Chicken, being an R5RS-to-C compiler, has similar aspirations for the
world of Scheme.
Best,
WGG
--
I use grml (http://grml.org/)
next prev parent reply other threads:[~2012-10-26 5:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 3:13 Using lisp code in emacs inside a C program gnuist007
2012-10-25 15:17 ` Sohail Somani
[not found] ` <mailman.11690.1351178239.855.help-gnu-emacs@gnu.org>
2012-10-25 15:46 ` gnuist007
2012-10-28 17:42 ` Pascal J. Bourguignon
2012-10-26 5:08 ` Rivka Miller
2012-10-26 5:59 ` William Gardella [this message]
2012-10-26 17:24 ` gnuist007
2012-10-26 21:03 ` Aurélien Aptel
2012-10-27 17:01 ` William Gardella
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5itg4de.fsf@gmail.com \
--to=gardellawg@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).