To those that don’t know what Python::HTTPd is, it’s a simple web server designed for quickly being able to test and develop RiveScript bots from your local computer, especially in the context of web application-based bots.
The HTTP daemon was originally written in Perl, but now I rewrote the daemon in Python. The old legacy Perl version is still available in the “_perl_legacy_” folder in the github repo, but it will probably be going away soon.
https://github.com/kirsle/rivescript-httpd
Reasons for replacing the daemon with Python:
* Python is easier to compile into an EXE for Windows
* The code is cleaner and easier to maintain
* When I was testing the Perl version on Windows, it was having trouble spawning the subprocesses to handle CGI scripts. The Python version does this just fine.
So, shortly now I’ll use py2exe and get a stand-alone exe version of the HTTP daemon zipped up for end users to play around with. The exe version will be capable of running the Python CGI scripts on the web server by executing them itself, but Perl will need to be installed separately for the Perl CGI scripts to work. The JavaScript client of course works everywhere without needing Perl or Python.