bolega
6/12/2010 8:47:00 PM
On Jun 12, 1:10 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Now if your problem is to mix C code and Lisp code, the only question
> you may have to ask yourself is in what language the entry point will
> be written.
>
> If in Lisp, you can use any CL implementation that has FFI (or CFFI
> for the portability), and call any C code put in a library.
>
> If in C, then you will have to use ECL, which can be used embedded in
> a C program as a C library.
>
> Frankly, this is really a question of no relevance, since you can
> always s/int main/extern int my_application_main/ in your C sources
> and link it into a library instead of a program, to be loaded in SBCL
> or any other CL.
>
> Perhaps you could start to learn a use Common Lisp, so that you would
> provide us with more interesting questions?
Thats why I was asking for a toy example from someone who has done it.
I can download the programs ECL and Allegro. One toy example of each
paradigm, including the third one of the libraries you mention. Most
likely, it would be including some C/Python library for efficiency and
availability and reuse in Lisp code to avoid rewrite.