One thing I really miss when writing Common Lisp code is access to Python libraries, both standard library and third party modules. CLPython provides a limited subset of Python functionality which precludes the use of most libraries, so that's not really useful to me. I would like to be able to call Python code from Common Lisp such that it runs in a Python VM like CPython or PyPy.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
I know this are different languages, but why don't you give Clojure and Jython a try :) :)
Perhaps you find your self exactly where you want.
You may want to try burgled-batteries, a bridge between Python and Lisp (FFI bindings, etc.).
From the description, "
burgled-batteries
provides a shim between Python (specifically, the CPython implementation of Python) and Common Lisp."One solution is python-on-lisp. It should be ASDF-installable. It hasn't been maintained or updated for a couple years, so there may be something better available.
I would suggest writing an "exposer" interface for your code that takes text and writes text such that you can call it on the command line. Ideally, with a typical STDIN | STDOUT approach.
I believe that is typically the best approach for non-performance applications.
You might like async-process, which allows to send code to a running Python process. It is used in the Lem editor.
Example use: