Turbo Prolog is a version of the logic programming language Prolog that was developed by Borland for the IBM PC and compatible computers. Turbo Prolog was one of the first Prolog systems to integrate a graphical user interface, a compiler, a debugger, and a large library of built-in predicates.
Introduction to Turbo Prolog by Carl Townsend is a book that teaches the basics and applications of Turbo Prolog. The book covers topics such as facts, rules, variables, recursion, arithmetic, lists, strings, windows, graphics, sound, and file operations. The book also includes several examples of programs that demonstrate the power and versatility of Turbo Prolog.
The book was published in 1986 by Sybex and Tech Publications. It is available for free download from the Internet Archive[^1^] and the National Library Board of Singapore[^2^]. It is also cited by Semantic Scholar as a relevant source for logic programming[^3^].
If you are interested in learning Turbo Prolog or want to refresh your knowledge of this classic language, you may find this book useful and informative.Advantages and Disadvantages of Turbo Prolog
Turbo Prolog has some advantages and disadvantages compared to other Prolog systems. Some of the advantages are:
It is easy to install and use on a PC.
It has a fast compiler and a friendly debugger.
It has a rich library of predicates for various tasks.
It has a graphical user interface that supports windows, menus, dialogs, buttons, etc.
It has features for sound and graphics programming.
Some of the disadvantages are:
It is not compatible with the ISO standard for Prolog.
It is not supported or updated by Borland anymore.
It has some limitations in memory management and data structures.
It does not support some advanced Prolog features such as modules, meta-programming, constraint logic programming, etc.
Turbo Prolog is a good choice for beginners and hobbyists who want to learn and experiment with logic programming. However, for more serious and professional applications, it may be better to use a more modern and standard-compliant Prolog system.Examples of Turbo Prolog Programs
Turbo Prolog comes with a number of example programs that illustrate the syntax and features of the language. Some of these examples are:
Family: A program that defines and queries a family tree using facts and rules.
Eight Queens: A program that solves the classic puzzle of placing eight queens on a chessboard without any two attacking each other.
Life: A program that simulates the cellular automaton known as Conway's Game of Life.
Towers: A program that implements a graphical version of the Towers of Hanoi puzzle.
Music: A program that plays musical notes and chords using the PC speaker.
These examples can be found in the Examples folder of the Turbo Prolog installation. They can be loaded and executed using the Turbo Prolog editor and compiler. They can also be modified and extended by the user to create new programs.
Turbo Prolog is a historical and influential version of the logic programming language Prolog. It was one of the first Prolog systems to offer a graphical user interface, a compiler, a debugger, and a large library of predicates. It was designed for the IBM PC and compatible computers and was popular in the late 1980s and early 1990s. It is still available for free download from various sources and can be used for learning and experimenting with logic programming. However, it is not compatible with the ISO standard for Prolog and does not support some advanced features of the language. Therefore, for more serious and professional applications, it may be better to use a more modern and standard-compliant Prolog system. 248dff8e21