Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Prolog is used and implement the real-world application [closed]

Tags:

prolog

I am curious about this. I must learn Prolog for my course, but the applications that I seen mostly are written using C++, C# or Java. Applications written by Prolog, to me is very very rare application.

So, I wonder how Prolog is used and implement the real-world application?

like image 570
Chin Avatar asked May 27 '12 08:05

Chin


People also ask

How is Prolog used?

The prolog programming mostly usable in artificial intelligence technology. This programming language uses for pattern matching using the parse tree feature. The prolog is used in the computation schematics. This programming uses in the problem-solving and understanding of the natural language.

Is Prolog used commercially?

Prolog was one of the first logic programming languages and remains the most popular such language today, with several free and commercial implementations available.

What is Prolog with example?

Prolog programs have a sequence of clauses. Facts or rules are described by these clauses. Example of facts is dog(rottweiler) and cat(munchkin). They mean that 'rottweiler is a dog' and 'munchkin is a cat'.

Why use Prolog language?

Prolog has been used largely for logic programming, and its applications include natural language understanding and expert systems such as MYCIN. Prolog is notably a so-called nonprocedural, or declarative, language in the sense that the programmer specifies what goals are to be accomplished but not…


2 Answers

SWI-Prolog website is served from... SWI-prolog, using just a small subset of the libraries available.

Well, it's not a commercial application, but it's rather real world.

Much effort was required to make the runtime able to perform 24x7 service (mainly garbage collection) and required performance scalability (among other multithreading).

Several libraries were developed driven by real world applications needs.

like image 149
CapelliC Avatar answered Oct 21 '22 12:10

CapelliC


I once asked my supervisor a similar question, when he is giving us a Prological lecture.

And he told me that people do not really use prolog to implement a whole huge system. Instead, people write the main part with other language(which is more sane and trivial), and link it to a "decision procedure" or something written in Prolog.

Not sure about other Prolog implementation, we were using BProlog and it provides C/Java interface.

like image 23
Jokester Avatar answered Oct 21 '22 11:10

Jokester