Visual Prolog

Programming language


title: "Visual Prolog" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["class-based-programming-languages", "borland-software", "integrated-development-environments", "multi-paradigm-programming-languages", "prolog-programming-language-family", "functional-logic-programming-languages", "object-oriented-programming-languages", "statically-typed-programming-languages", "programming-tools-for-windows", "programming-languages", "compilers"] description: "Programming language" topic_path: "technology/programming-languages" source: "https://en.wikipedia.org/wiki/Visual_Prolog" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Programming language ::

::data[format=table title="Infobox programming language"]

FieldValue
nameVisual Prolog
screenshotVisual Prolog IDE Screenshot.png
captionIDE Screenshot
paradigmmulti-paradigm: logical, functional, object-oriented, imperative, declarative, generic, concurrent
developerPDC A/S
latest release version11 build 1105
latest release date
typingstatic, strong, inferred
operating systemWindows
licenseProprietary
website
::

| name = Visual Prolog | screenshot = Visual Prolog IDE Screenshot.png | caption = IDE Screenshot | paradigm = multi-paradigm: logical, functional, object-oriented, imperative, declarative, generic, concurrent | developer = PDC A/S | latest release version = 11 build 1105 | latest release date = | typing = static, strong, inferred | operating system = Windows | license = Proprietary | website =

Visual Prolog, previously known as PDC Prolog and Turbo Prolog, is a strongly typed object-oriented extension of Prolog. It was marketed by Borland as Turbo Prolog (version 1.0 in 1986 and version 2.0 in 1988). It is now developed and marketed by the Danish firm PDC that originally created it. Visual Prolog can build Microsoft Windows GUI-applications, console applications, DLLs (dynamic link libraries), and CGI-programs. It can also link to COM components and to databases by means of ODBC.

Visual Prolog contains a compiler which generates x86 and x86-64 machine code. Unlike standard Prolog, programs written in Visual Prolog are statically typed. This allows some errors to be caught at compile-time instead of run-time.

History

|Version |New features |Version 11 |introduces suspending predicates for asynchronous programming

|Version 10 |introduces object expressions, support for master/slave processes, Microsoft Edge webView2 control and some support for Direct2D+DirectWrite+Windows Imaging Component.

|Version 9 |introduces bounded polymorphism, extension predicates, threadsafe lock free fact databases, named parameters.

|Version 8 |introduces presenters, for more user friendly data presentation in debugger and running program.

|Version 7.5 |contains http server and LALR(1) parser generator.

|Version 7.4 |can generate 64 bit windows code.

|Version 7.3 |introduced generic classes and interfaces (see Generic programming), guarded monitors.

|Version 7.2 |introduced anonymous predicates (a logical pendant to anonymous functions) and namespaces.

|Version 7.0 |introduced parametric polymorphism.

|Since version 6.0 |the language has been fully object-oriented.

Hanoi example

In the Towers of Hanoi example, the Prolog inference engine figures out how to move a stack of any number of progressively smaller disks, one at a time, from the left pole to the right pole in the described way, by means of a center as transit, so that there's never a bigger disk on top of a smaller disk. The predicate hanoi takes an integer indicating the number of disks as an initial argument.

::code[lang=visualprolog] class hanoi predicates hanoi : (unsigned N). end class hanoi

implement hanoi domains pole = left; center; right.

clauses hanoi(N) :- move(N, left, center, right).

class predicates move : (unsigned N, pole A, pole B, pole C). clauses move(0, _, _, _) :- !. move(N, A, B, C) :- move(N-1, A, C, B), stdio::writef("move a disc from % pole to the % pole\n", A, C), move(N-1, B, A, C). end implement hanoi

goal console::init(), hanoi::hanoi(4). ::

Reception

Bruce F. Webster of BYTE praised Turbo Prolog in September 1986, stating that it was the first Borland product to excite him as much as Turbo Pascal did. He liked the user interface and low price, and reported that two BYU professors stated that it was superior to the Prolog they used at the university. While questioning the market demand for the language, Webster concluded that "Turbo Prolog may be as significant a leap in software design as Turbo Pascal represented three years ago", and recommended it to those "at all interested in artificial intelligence, databases, expert systems, or new ways of thinking about programming". Another author in the magazine that month wrote that the language's nonstandard, more structured syntax as making "source listings much more readable than those of standard Prolog". While stating that it had "many good features", he stated that Turbo Prolog's "Turbo Pascal flavor in its compiler and strong data typing ... create an identity problem for the language". Describing it as "Turbo Paslog", the author concluded that he does "not recommend it if you are seriously considering becoming a Prolog programmer". The magazine in 1989 listed Turbo Prolog 2.0 as among the "Distinction" winners of the BYTE Awards, approving of how Borland had "developed a system for real-world applications programming".

Books about Visual Prolog

References

References

  1. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_11_New_Features Visual Prolog 11 New Features]
  2. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_10_New_Features Visual Prolog 10 New Features]
  3. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_9_New_Features Visual Prolog 9 New Features]
  4. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_8_New_Features Visual Prolog 8 New Features]
  5. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_7.5_New_Features Visual Prolog 7.5 New Features]
  6. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_7.4_New_Features Visual Prolog 7.4 New Features]
  7. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_7.3_New_Features Visual Prolog 7.3 New Features]
  8. [https://wiki.visual-prolog.com/index.php?title=Visual_Prolog_7.2_New_Features Visual Prolog 7.2 New Features]
  9. Webster, Bruce F.. (September 1986). "Two Fine Products".
  10. Shammas, Namir Clement. (September 1986). "Turbo Prolog".
  11. (January 1989). "The BYTE Awards".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

class-based-programming-languagesborland-softwareintegrated-development-environmentsmulti-paradigm-programming-languagesprolog-programming-language-familyfunctional-logic-programming-languagesobject-oriented-programming-languagesstatically-typed-programming-languagesprogramming-tools-for-windowsprogramming-languagescompilers