4 ms·
There are a bunch of libraries that will do this - here's one example of a python one: https://github.com/yuce/pyswip https://github.com/yuce/pyswip - and a rub
by dflock 11mo ago
There are a bunch of libraries that will do this - here's one example of a python one: https://github.com/yuce/pyswip https://github.com/yuce/pyswip - and a ruby one: https://github.com/preston/ruby-prolog https://github.com/preston/ruby-prolog
- zemptime 11mo agoI did try ruby-prolog. The deeper issue is that its just not prolog. Writing in actual prolog affords a lot of clarity and concision which would be quite noisy in ruby-prolog. To me, the difference was stark enough it wasn't worth any convenience already being in ruby was worth.
- dragonwriter 11mo agoPorolog might be more to your liking. https://www.rubydoc.info/gems/porolog#porolog-wiki https://www.rubydoc.info/gems/porolog#porolog-wiki