L
levicc00123
is there a way to embed common lisp programs in python?
It depends on what you call "embedding" ... can you be more specifivis there a way to embed common lisp programs in python?
Your best bet is probably to look into your LISP environment's FFI
(Foreign Function Interface). Most LISP environments have some way to
call C code directly. Insofar as going back the other way... that I'm
a little more sketchy on. Guile (the Scheme compiler from GNU) is a
strong contender, though. It's not Common LISP, but it's a LISP with
copious documentation for how to call it from C.
I really can't see a reason to use Python as a glue layer. I'd
recommend rewriting your LISP code in Python before I'd recommend using
Python to interface between Common LISP and C.
[email protected] said:Your best bet is probably to look into your LISP environment's FFI
(Foreign Function Interface). Most LISP environments have some way to
call C code directly. Insofar as going back the other way... that I'm
a little more sketchy on. Guile (the Scheme compiler from GNU) is a
strong contender, though. It's not Common LISP, but it's a LISP with
copious documentation for how to call it from C.
I really can't see a reason to use Python as a glue layer. I'd
recommend rewriting your LISP code in Python before I'd recommend using
Python to interface between Common LISP and C.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.