пятница, 24 ноября 2017 г.

Adventure in Prolog

Ever wanted to learn logic programming?
Wanna know how to program in Prolog?

Wanna know how to integrate Java with Prolog?

A lot of questions arise when we face with a "new" language such as Prolog.
After Java, Prolog looks like a fresh air. It has simple syntax, small number of concepts comparing to the OOP. For me the main advantage that it is a declarative language, not imperative.

If you deal a lot with business rules in your programs you know how ugly imperative implementations look like. This could be the opportunity for Prolog and constantly changing business world.

A lot of information exist about Prolog. What to start with?
IMHO Adventure in Prolog could be a good introduction to Prolog. All concepts are introduced and presented with examples and small tasks.

Examples could be run on almost any Edinburgh compatible Prolog. I use tuProlog. It runs on top of the JVM. Also it has a simple IDE, so you can just move straight to executing your code.

I also started a new repo on https://github.com/chernykhalexander/PrologExperiments for Prolog experiments.