Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

While usually using native syntax rather than strings, somethign like that exists for most languages of any popularity (and many obscure ones), in the form of miniKanren implementations.

https://minikanren.org/



If you really want something that takes Prolog strings instead (and want the full power of prolog), then there are bindings to prolog interpreters from many languages, and also SWI-Prolog specifically provides a fairly straightforward JSON-based server mode "Machine Query Interface" that should be fairly simple to interface with any language.

https://www.swi-prolog.org/pldoc/man?section=mqi-overview




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: