The other comes with xsb and is fast, but currently works only in
linux.
There also is an xsb-calling-python interface, which comes with
xsb. That one is both fast and works in linux, mac, and windows.
--
--- michael
On 11/22/22 2:11 AM, chi wrote:
---
** [bugs:#254] How can I execute a program with command line or python directly**
**Status:** open
**Group:** Other
**Created:** Tue Nov 22, 2022 07:11 AM UTC by chi
**Last Updated:** Tue Nov 22, 2022 07:11 AM UTC
**Owner:** nobody
Hi,
How can I execute a program directly with command line or with python.
Such as, xsb example.P
or in python, result = runQuery("./example.P")
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/xsb/bugs/254/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
you can try
xsb -e "[foo.P], some_query_from_foo, writeln(done)."
There are two python-calling-xsb bridges. One is slow, but works both in linux, mac, and windows:
https://pypi.org/project/py-xsb/
The other comes with xsb and is fast, but currently works only in linux.
There also is an xsb-calling-python interface, which comes with xsb. That one is both fast and works in linux, mac, and windows.
--
--- michael
Thank you very much! I close this issue.