“[1] The Power of Prolog by Triska (I highly recommend this resource)”
Markus Triska 的在线教程,把 Prolog 当作一门现代的逻辑编程语言来讲,强调纯净、可声明式的写法,涉及 DCG、CLP(Z) 约束求解和调试纯 Prolog 程序。配有视频讲解,比传统厚重的学院派 Prolog 教科书更紧凑、更贴近现代实践。适合想真正理解 Prolog 思路的人,而不只是学语法。
HN 上的人反复称赞它给出了 Prolog 的现代视角,在 DCG、约束编程和调试上讲得深;也常推荐其配套视频,说比传统教材好懂。有一条批评认为教学法上不算好,但承认作者很懂。
想学现代 Prolog 与逻辑编程的程序员
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先看开头几章和视频,建立纯 Prolog 的写法习惯
- 2动手在 Scryer 或 SWI-Prolog 里跑每个例子
- 3DCG 和 CLP(Z) 部分结合自己感兴趣的问题练习
- 4卡住时回头看调试相关章节
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“I highly recommend it if you want to get the gist of Prolog and its modern features.”
“I want to link a very good book about modern Prolog and its applications [1].”
“With prolog it's usually easiest to formulate a problem. Efficient solutions are a bit of a black art though: The Power of Prolog”
“Specifically, you're going to want to use Definite Clause Grammars (DCG):”
“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”
看全部 20 条 →
“Not sure if familiar you are with these tools, but here's a nice intro: The Power of Prolog”
“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.”
“[1] is great when you have time to dive deeper.”
“it may be hard to get into without first going through something like The Power of Prolog”
“I found the Power of Prolog videos[0] easier for me to grasp than, say, The Reasoned Schemer.”
“More prolog-related, The Power of Prolog The Power of Prolog has been praised here several times.”
“For a more in-depth, high-level, more computer-sciency view try Marcus Triska's pages:”
“For more on prolog generally, this is an excellent resource The Power of Prolog”
“I had the same troubles until I encountered Markus Triska's modern perspective on revitalizing Prolog: The Power of Prolog.”
“Visit The Power of Prolog and marvel as a master deftly disecting problems”
“I would check out Markus Triska's work to have your mind blown:”
“watch all of Markus Triska's videos, read his book, and learn what Prolog could be in a perfect world.”
“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.”
“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.”