3 ms·
Also check out Anne Ogborn's tutorial "Creating Web Applications in SWI-Prolog" http://www.pathwayslms.com/swipltuts/html/ http://www.pathwayslms.com/swipltuts/
by carapace 7y ago
Also check out Anne Ogborn's tutorial "Creating Web Applications in SWI-Prolog"
http://www.pathwayslms.com/swipltuts/html/ http://www.pathwayslms.com/swipltuts/html/
Following that I made a very simple ("hello world" simple) server that serves Tau Prolog ( http://tau-prolog.org/ http://tau-prolog.org/ ) to the client and establishes a websocket connection between them.
It's here FWIW: https://git.sr.ht/~sforman/yrad-nettles https://git.sr.ht/~sforman/yrad-nettles (WARNING: it's not meant for public consumption, I think it might be broken at the moment because I was experimenting with serving prolog scripts like js scripts when I stopped working on it... I'm putting it out here in case you want to try to glean some insight from it. I was looking over it myself just now and I forget a lot about how it's supposed to work, so read it alongside Anne's tutorial, if at all. Cheers! Also, I should mention it depends on a whole different project, an implementation of Joy programming language, to actually do anything, because it's meant to act as a remote shell/UI for that language hosted in a Prolog server. So, yeah... you're gonna want to comment that out.)