58 points · by mindcrime · 9y ago · 11 comments
According to one speaker/panelist, "Prolog is almost unknown in the U.S., outside of academic circles". Is this really the case?
Also of practical interest (to me at least):
> "Warren asks, “In a multi-language, multi-software ecosystem, what are the roles of logic programming languages?"
I will admit I'm not a fan of using Prolog for general-purpose programming. But Jan Wielemaker (of SWI Prolog fame) argues otherwise, and I think it shows in SWI Prolog's somewhat procedural library collection. For example, SWI Prolog has primitives for explicit multi-threading.
In my immediately prior job I had to deal with some convoluted XML standards called OVAL and XCCDF (from the same general folks that bring you the term "CVE" for computer vulnerabilities) that express "rules" for gathering data from systems and analyzing the data to determine whether the remote system conformed to security best practices. I wish those developing the standards had dealt before with Prolog because the rules and engine could so much more easily have been split into (a) a Prolog-based rule engine; and (b) a low-level telemetry component to gather data from the remote system(s). The XML-based "reproduction" of a subset of Prolog was very limited, not very expressive, and artificially constrained a rule writer to not be able to deal effectively with many conditions you'd naturally want to check for. Also, to extend this standard to look beyond the scope of a single machine will be very hard -- people these days naturally want to evaluate conditions across an entire group of related machines, cloud accounts, containers, VMs, etc. There's no way XCCDF or OVAL will deal effectively with that any time soon, whereas Prolog + telemetry would have addressed that very easily.
We licensed a very good engine for dealing with the XCCDF/OVAL execution (look up "jOVAL"). However I think wistfully back to the first days at that startup and think that with a good computing foundation our lives could have been so much easier. The company was a ... mess ... in other ways and will visit Mr. Joyboy soon https://www.youtube.com/watch?v=-edybFkBiO4 .
(Hmmm, Prolog + XCCDF turned up something interesting since I last checked a long time ago: http://www.academia.edu/20069871/SCAP_based_configuration_an...)
I also often wondered why folks spend big time on "rules engines" (glorified RETE forward-chaining engines) but don't consider Prolog, it being an ISO-standard language with multiple mature implementations.
https://dtai.cs.kuleuven.be/CHR/files/Elston_SecuritEase.pdf
EDIT: I looked on YouTube for videos of the panel discussions and couldn't find any. Any links to panel videos!