Developers Club geek daily blog

Prolog for programmers of the p. 2

1 year, 4 months ago
The publication of the first part (habrahabr.ru/post/274603) caused quite extensive and interesting discussion on different aspects of language of application the PROLOGUE.
The purpose was – to show experienced, and not really, to programmers that there is nothing difficult in the Prologue, and everyone can apply it in work.
For some reason there were no questions directly in the text of the publication. I will think that there everything is clear.
Let's start consideration of more practical aspects of programming in the Prologue language.

Read more »


PROLOG for programmers

1 year, 4 months ago
Language of logical programming PROLOG (further – the PROLOGUE) is represented to most of programmers something confused and of little use for practical application. At the same time, the Internet is based on the symbolic information therefore practically all modern programmers face need to process character data structures, and for this purpose and language of logical programming the PROLOGUE is intended. This language – ideal for work with character structures, text files and for creation of intellectual programs.

Read more »


Пролог – декларативный язык, способный решать любые ребусы и доказывать теоремы

2 years, 2 months ago
Представьте себе высокоуровневый язык, в котором не нужно указывать КАК получить результат, вместо этого нужно просто указать ЧТО вы хотите получить. При этом область применения языка не ограничена и язык способен решать те же задачи, что и любой другой высокоуровневый язык, наподобие JAVA. Кажется фантастикой, не правда ли? Однако такой язык есть и называется он PROLOG. Посмотрим как PROLOG справляется с этой задачей на примере загадывания прологу некоторых загадок и попросим PROLOG выдать доказательство теоремы.

image

Read more »


Настраиваем редактор исходных текстов SWI-Prolog (XPCE Emacs) для пользователя, не знакомого с клавиатурными комбинациями Emacs

2 years, 6 months ago
Приступающие к изучению и/или работе с SWI-Prolog (http://www.swi-prolog.org/) часто сталкивается зачастую с не очень ?дружелюбным интерфейсом командной строки вот в таком стиле:

dm@dms:~> swipl
% library(swi_hooks) compiled into pce_swi_hooks 0.00 sec, 3,856 bytes
% /home/dm/.plrc compiled 0.00 sec, 656 bytes
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 5.10.2)
Copyright (c) 1990-2010 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?- 


Даже сумев вызвать-таки редактор исходного кода, многие затрудняются с ним работать по причине того, что клавиатурные комбинации соответствуют достаточно харизматичному и отличающемуся от других редактору Emacs.

Как это исправить?

Наберите в командной строке ?help.?
?- help.

Read more »


Speech bot on php+prolog

3 years, 5 months ago

Introduction


Many considered that the programming language of prolog are especially scientific and out-of-date language for tutoring of students. The majority at university "strain" this language on subjects though there was some confidants to a subject of machine intelligence, this subject bypassing also me.

The standard task who getting to me – appearing so boring and widespread for this language that there were a temptation «to download ready free of charge without logging», but I deciding to carry out a maximum from this course and to turn a subject of a prologue, for writing something almost significant and interesting. Ha read a lot of different documentation including posts on habre about prolog, I coming to a conclusion that the prologue are the excellent tool for handling of sentences of the formal language. I deciding that would be abruptly – to write a bot, which were able to answer phrases (could be even harmoniously) in

Read more »


We done Refal on Prolog. Magic in seven lines

3 years, 7 months ago
If the recogniz machine on a picture of an elephant responded a signal "mess", on images of a camel — too "mess" and on a portrait of the visible scientist — besides "mess", it not mandatory meant that it are faulty. It could be simply philosophically adjust.
Vladimir of Savchenko, «Discovery of»


1. Fall in love with Refal. Immediately!



All it are known that there are such programming language — Refal. Refal are develop in 1966 by our compatriot Valentinom Turchinym. The destiny at Refala difficult, but language are live till now and developed. For the interested we will result some links:


Strongly exaggerat, it are possible to tell that Refal — are a compound of Lispa and the Prologue. In a language syntax there are an one interesting singularity — pattern matching are more so-called "direct output".

Read more »


How to explain to the younger sister (9 years) principles of logical programming?

4 years, 5 months ago
Kind time of days! I am the student of the second year of MAI, faculty of Applied mathematics.
Recently our curator, Soshnikov Dmitry, the coordinator of the academic programs of department of strategic technologies of Microsoft, setting for me the task to write article on a subject: «How to explain to the younger sister (9 years) principles of logical programming?». Here that from this quitting.

image

Hi, favourite little sister! Today I wants to tell to you that such logical programming.

Read more »


Prolog — grammar analysis and language problems

5 years, 4 months ago
Grammar analysis — a subject whom each programmer should know and be guided., because we applied it every day. Yes we done not write modern languages or we done not correct grammar every day, but we used the regular expressions, we reflected on complexity and computability, we thought of an amount of code lines that had a direct bearing to grammatikam.

The purpose of this article are attempt to show to communication in various knowledge domains as programming and mathematician, philosophy and logic, and as to show in operation one of most successful application fields of language of Prolog — grammar analysis.

Read more »


Prolog. We programmed automatic machines

5 years, 4 months ago
Ha read article about Prolog, I deciding to write small addition to it in the form of 2 small tasks.
Here they:
1. Interpreter of language of brainfuck
2. Machine of Turing

Read more »


The task Prima-Kraskala in language the Prologue

5 years, 7 months ago

Read more »