Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support STDIO interface in addition to sockets #6

Open
EricZinda opened this issue Oct 22, 2021 · 0 comments
Open

Support STDIO interface in addition to sockets #6

EricZinda opened this issue Oct 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@EricZinda
Copy link
Collaborator

From the SWI Prolog forum:

"Since this is a two-way, line-based text protocol, I think you’re missing something by not including a direct stdin/stdout interface. It should probably be the default for the arity-0 toplevel predicate unless you’ve specified otherwise in code, so you can use it as above. Requiring socket/network access to be able to use this makes for a significantly more difficult integration, depending on the language, but I can’t think of a single general-purpose language that doesn’t have a simple, builtin way to access standard input and output."

Initial thoughts:

  • It mostly doesn't complicate the interface since the library doesn't have to use it (unless the library supports both TCP and command line, which I suspect many might feel they have to...).
  • It can be added after V1 since it isn't a breaking change. Really it's just a way that might make it even easier for languages to integrate if they just choose that option.
@EricZinda EricZinda added the enhancement New feature or request label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant