logoalt Hacker News

appilyesterday at 10:13 PM6 repliesview on HN

What do people use Prolog for in the real world? I learned about it on a university course and it seems so esoteric compared to other things on the course. Like something invented just for computer scientists to enjoy.


Replies

bmitch3020yesterday at 11:38 PM

20+ years ago, it was the backend for the business rules engine that processed various logging and monitoring events. The concept was interesting, the performance was terrible, and businesses mostly didn't want to touch it. After I setup clients with a generic set of rules that worked on Prolog facts, most all of my clients were happy to limit their changes to only those fact files.

radomir_cernochyesterday at 10:33 PM

Some applications were discussed in https://news.ycombinator.com/item?id=40994552

christophilusyesterday at 10:30 PM

Dunno about Prolog, but Datomic uses datalog for its query language, and it’s excellent. Datalog is a subset of Prolog.

show 3 replies
AdieuToLogictoday at 12:57 AM

> What do people use Prolog for in the real world?

Here[0] is an example of using Ruby and Prolog to solve a real-world AWS management problem.

0 - https://web.archive.org/web/20190525163234/https://dev.to/da...

show 1 reply
segmondytoday at 12:14 AM

Everything, you heard the joke about those who don't know Lisp end up reinventing it, well, the same can be said for Prolog.

show 1 reply