←back to thread

Learn Prolog Now

(lpn.swi-prolog.org)
205 points rramadass | 1 comments | | HN request time: 0s | source
Show context
jackallis ◴[] No.45901786[source]
is prolog a use-case language or is it as versatile as python?
replies(4): >>45901913 #>>45901945 #>>45902960 #>>45902978 #
1. rramadass ◴[] No.45902960[source]
FWIK; You can't compare the two. Python is far more general and larger than Prolog which is more specialized. However there have been various extensions to Prolog to make it more general. See Extensions section in Prolog wikipedia page - https://en.wikipedia.org/wiki/Prolog#Extensions Eg. Prolog++ - https://en.wikipedia.org/wiki/Prolog%2B%2B to allow one to do large-scale OO programming with Prolog.

Earlier, Prolog was used in AI/Expert Systems domains. Interestingly it was also used to model Requirements/Structured Analysis/Structured Design and in Prototyping. These usages seems interesting to me since there might be a way to use these techniques today with LLMs to have them generate "correct" code/answers.

For Prolog and LLMs see - https://news.ycombinator.com/item?id=45712934

Some old papers/books that i dug up and seem relevant;

Prototyping analysis, structured analysis, Prolog and prototypes - https://dl.acm.org/doi/10.1145/57216.57230

Prolog and Natural Language Analysis by Fernando C. N. Pereira and Stuart M. Shieber (free digital edition) - http://www.mtome.com/Publications/PNLA/pnla.html

The Application of Prolog to Structured Design - https://www.researchgate.net/publication/220281904_The_Appli...