Skip to content

Languages / Prolog

Prolog

A logic programming language based on formal logic and automated reasoning.

Learning and tools

Documentation, practical learning and development tools.

All Prolog resources →
Constraint answer-set programming system

s(CASP)

This SWI-Prolog port of s(CASP) provides goal-directed execution of answer-set programs with constraints. It supports exploring logical models and explanations through Prolog-based tooling. The repository documents its implementations and…

Explore project →
Web-based Prolog environment

SWISH

SWISH is a web-based environment for writing, running and sharing SWI-Prolog programs. Its Prolog backend works with a browser interface, and the project provides hosted and self-hosted options. Start with an example program and a query…

Explore project →
Graph database

TerminusDB

TerminusDB is a graph database whose core includes Prolog. It stores structured documents and supports revision history, branching and merging for data. Start with its document API and a small linked dataset, then explore queries and how…

Explore project →

Current & upcoming events

All language events →

No current or upcoming events listed. Explore past events or suggest one.

Follow Prolog jobs with Atom → Get updates in your feed reader.

No jobs listed right now.

There are still resources and organizations to explore. Browse all jobs.

The Simplicity of Prolog

Hacker News · Published January 26, 2025

A January 2025 Hacker News discussion on The Simplicity of Prolog generated over 120 comments debating the language's limitations and modern viability. Long-time practitioners criticized Prolog's abstraction features, first-class…

Ask HN: What's Prolog like in 2024?

Hacker News · Published July 18, 2024

A July 2024 Hacker News thread asking "What's Prolog like in 2024?" generated over 250 comments debating its modern relevance. Practitioners highlighted Scryer Prolog's strict ISO conformance and 24x memory efficiency for string…

The Power of Prolog

Hacker News · Published September 11, 2023

A September 2023 Hacker News discussion on The Power of Prolog garnered over 100 comments, with practitioners describing the language as a "mind bending" paradigm shift for constraint solving and symbolic AI. Multiple users cited…

About Prolog and its ecosystem

Prolog is a declarative programming language centered around logic programming and formal reasoning. Developed in the early 1970s, Prolog is widely known for its use in artificial intelligence, knowledge representation, and expert systems, where problems are solved through logical inference rather than step-by-step computation.

Prolog’s syntax is based on facts, rules, and queries, where developers define relationships and rules that describe how data is structured and how conclusions can be drawn. Its powerful backtracking mechanism automatically explores possible solutions, making it particularly well-suited for tasks like natural language processing, theorem proving, and pattern matching.

While not as widely used in mainstream software development, Prolog remains a valuable tool in academic, research, and specialized industries, particularly in domains that involve symbolic reasoning and complex problem-solving. Its unique approach to programming encourages a shift in mindset, allowing developers to focus on what they want to solve rather than how to solve it.

Suggest a project or resource

Share a useful Prolog project or resource.

Suggest a project →Suggest a resource →