Re:The Power of Prolog [video]
by falsissime on Monday May 11, 2020 @12:57PM
(#23144281)
In fact, you can do this with Prolog already, however, you have restrict yourself to the pure monotonic subset. Many parts of Prolog the do not fit can be replaced by purer counterparts. See library(si), library(reif), library(clpz) for such attempts.
I'm quite happy with picat, which supports traditional if and loops. It's also fast and supports some solvers, recursive backtracking is optional.
Skipping an expr by cut is in every prolog, but loops not.
In SQL you don't change the database simply because you want to run a different query. You manipulate the query, the indices and the query hints.