I am having the lisp code that I found at the repository: https://github.com/JafferWilson/test-program
I am looking for compiling and running this code using the python code.
How can I make it possible? I have looked around but didn't find anything related.
Kindly, help me.
-
2Possible duplicate of stackoverflow.com/questions/27221781/… ?Keerthana Prabhakaran– Keerthana Prabhakaran2017-08-03 04:41:23 +00:00Commented Aug 3, 2017 at 4:41
-
you might want to try Hy (lisp to python compiler): github.com/hylang/hytaras– taras2017-08-03 04:45:10 +00:00Commented Aug 3, 2017 at 4:45
-
@TarasMatsyk Sorry but how you recoomend the link as I could not understand how to make it possible? Can you please explain that as an answer. If possible show me what need to be done to implement my lisp code.Jaffer Wilson– Jaffer Wilson2017-08-03 04:50:02 +00:00Commented Aug 3, 2017 at 4:50
-
1Two possible reasons to do this is either because you prefer language a but language b has a neat library you would like to access OR you have your program in language a but the tools don't compile to the target plattform and language b does. If it's the first you can switch it around and do python in CL with common-lisp.net/project/clpythonSylwester– Sylwester2017-08-03 12:58:30 +00:00Commented Aug 3, 2017 at 12:58
-
1I had a brief look at the repository and it appears to be Common Lisp. I think what you should do is run the Lisp program as a separate program. To do this you'll need to install a Common Lisp implementation (e.g. Sbcl) and then you can run the Lisp program like you would run any other process from python. If you want to pass data in and out of the Common Lisp program you may need to set up some serialisation/deserialisation and processing via I/O mechanisms to communicate with pythonDan Robertson– Dan Robertson2017-08-03 16:13:57 +00:00Commented Aug 3, 2017 at 16:13
|
Show 2 more comments