按年被提到
20172020 · 15 次2026
开源书›编程语言·No.46

The Power of Prolog

Prolog 的力量
Markus Triska

以现代视角讲 Prolog 纯逻辑编程、约束求解与调试

免费阅读 ↗
被推荐 · 51 人首次 2017-04-05 · 最近 2026-07-22官方免费在线(版权保留,作者或出版社免费放出)
51不同的人
46活跃月份
21有推荐的月份
71讨论串

Markus Triska 的在线教程,把 Prolog 当作一门现代的逻辑编程语言来讲,强调纯净、可声明式的写法,涉及 DCG、CLP(Z) 约束求解和调试纯 Prolog 程序。配有视频讲解,比传统厚重的学院派 Prolog 教科书更紧凑、更贴近现代实践。适合想真正理解 Prolog 思路的人,而不只是学语法。

HN 为什么推荐它

HN 上的人反复称赞它给出了 Prolog 的现代视角,在 DCG、约束编程和调试上讲得深;也常推荐其配套视频,说比传统教材好懂。有一条批评认为教学法上不算好,但承认作者很懂。

难度 3 / 5约 40 小时
适合谁

想学现代 Prolog 与逻辑编程的程序员

读之前最好知道
1递归(recursion)
2基本编程经验

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先看开头几章和视频,建立纯 Prolog 的写法习惯
  2. 2动手在 Scryer 或 SWI-Prolog 里跑每个例子
  3. 3DCG 和 CLP(Z) 部分结合自己感兴趣的问题练习
  4. 4卡住时回头看调试相关章节

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐sidkshatriya · 2021-10

“[1] The Power of Prolog by Triska (I highly recommend this resource)”

强烈推荐,用它学习调试纯 Prolog 的技巧
Scryer Prolog: A modern Prolog implementation written mostly in Rust原评论 ↗
强烈推荐ggzor · 2022-12

“I highly recommend it if you want to get the gist of Prolog and its modern features.”

强烈推荐,想掌握 Prolog 要点和现代特性就读它
Prolog at Work原评论 ↗
推荐xvilka · 2018-05

“I want to link a very good book about modern Prolog and its applications [1].”

推荐一本讲现代 Prolog 及其应用的好书
A relatively simple Datalog engine原评论 ↗
推荐rurban · 2018-08

“With prolog it's usually easiest to formulate a problem. Efficient solutions are a bit of a black art though: The Power of Prolog”

说 Prolog 易于建模但高效求解很难,推荐此书
Modern SAT solvers: fast, neat and underused原评论 ↗
推荐carapace · 2018-09

“Specifically, you're going to want to use Definite Clause Grammars (DCG):”

建议用 DCG 写编译器,并以此书为参考
Ask HN: What's a starting point for learning how to write programming languages?原评论 ↗
推荐sansnomme · 2020-02

“Most of the Prolog books are thick academic textbooks, for a more modern take with YouTube videos, take a look at The Power of Prolog”

推荐它作为更现代的 Prolog 入门,配有 YouTube 视频
Learn X in Y minutes Where X=Prolog原评论 ↗
看全部 20 条 →
推荐kccqzy · 2020-02

“Not sure if familiar you are with these tools, but here's a nice intro: The Power of Prolog”

推荐它作为 CLP(Z) 的不错入门
Learn X in Y minutes Where X=Prolog原评论 ↗
推荐Twisol · 2020-04

“First, I'd recommend checking out the website of HN user 'triska at The Power of Prolog -- there's more to Prolog itself than most people are ever made aware of.”

推荐作者网站,Prolog 的内容比多数人知道的更多
Ask HN: What are you learning?原评论 ↗
推荐simplify · 2020-04

“[1] is great when you have time to dive deeper.”

推荐有时间时用它深入学习 Prolog
Ask HN: How to rediscover the joy of programming?原评论 ↗
推荐klibertp · 2020-06

“it may be hard to get into without first going through something like The Power of Prolog”

认为不先读它打好基础,Logtalk 或 Mercury 很难上手
Ask HN: What language is the most fun to learn原评论 ↗
推荐hjek · 2020-12

“I found the Power of Prolog videos[0] easier for me to grasp than, say, The Reasoned Schemer.”

觉得它的视频比 The Reasoned Schemer 更容易理解
OpenSSL Security Advisory – EDIPARTYNAME null pointer de-reference原评论 ↗
推荐harperlee · 2021-04

“More prolog-related, The Power of Prolog The Power of Prolog has been praised here several times.”

提到它在 HN 上多次受到称赞,推荐一读
Logica, a novel open-source logic programming language原评论 ↗
推荐YeGoblynQueenne · 2022-01

“For a more in-depth, high-level, more computer-sciency view try Marcus Triska's pages:”

推荐作者的页面,以更深入的计算机科学视角看 Prolog
Dear sir, you have built a compiler原评论 ↗
推荐philzook · 2022-09

“For more on prolog generally, this is an excellent resource The Power of Prolog”

推荐它作为 Prolog 的优秀通用资源
The Ciao System原评论 ↗
推荐riesenheim · 2023-01

“I had the same troubles until I encountered Markus Triska's modern perspective on revitalizing Prolog: The Power of Prolog.”

称作者的现代视角帮自己重新捡起 Prolog
Tar.pl – A tar creator and extractor in approx. 100 lines of Prolog原评论 ↗
推荐jodrellblank · 2023-07

“Visit The Power of Prolog and marvel as a master deftly disecting problems”

称赞作者像大师一样熟练地剖析问题
Using Prolog in Windows NT Network Configuration (1996)原评论 ↗
推荐upghost · 2024-07

“I would check out Markus Triska's work to have your mind blown:”

推荐作者的作品,会让人大开眼界
Ask HN: What's Prolog like in 2024?原评论 ↗
推荐z5h · 2024-10

“watch all of Markus Triska's videos, read his book, and learn what Prolog could be in a perfect world.”

建议看完所有视频、读这本书,了解理想中的 Prolog
Use Prolog to improve LLM's reasoning原评论 ↗
推荐cess11 · 2025-03

“Either way it's a good idea to spend some time playing around with Scryer, (链接), and Markus Triska's crash course, The Power of Prolog.”

推荐配合 Scryer 学习作者的速成课
C Plus Prolog原评论 ↗
批评tom_mellior · 2018-11

“Although I don't think it's very good from a didactic point of view, many disagree, and at least the author really knows what they are talking about.”

批评教学上不算好,但承认作者确实精通
Who Killed Prolog? (2010)原评论 ↗