“Learn Prolog Now is covers the basics better, IMHO”
Patrick Blackburn、Johan Bos、Kristina Striegnitz 写的 Prolog 入门教程,从事实、规则和合一(unification)讲起,逐步涉及递归、列表和算术,并介绍用 Prolog 描述语法的 definite clause grammar。每章有练习,例子里用了电影角色等轻松的题材。相比更偏工程或高级技巧的 Prolog 书,它定位明确,是让初学者建立逻辑编程直觉的入门读物。
HN 上的人常把它推荐为学 Prolog 的首选在线资源:温和、清楚、对初学者友好,几个小时就能改变看待问题的方式;没有批评意见。
第一次接触逻辑编程的程序员或学生
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1装好 SWI-Prolog,边读边在里面试每个例子
- 2做每章的练习,逻辑编程只看不练很难入门
- 3读完前面几章后再看语法分析那部分
- 4想进阶时再找更深入的 Prolog 专著
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“There is are a couple”
“Also recommended: Learn Prolog Now!”
“Learn Prolog Now! by Patrick Blackburn, Johan Bos, and Kristina Striegnitz provides an introduction to Prolog:”
“this is a good start that will give you a good overview of how Prolog works:”
“I recently started reading Learn Prolog Now! and the first few chapters have been excellent.”
看全部 20 条 →
“If you are looking for an on-line resource nick_dm's suggestion for Learn Prolog Now! is spot on.”
“You could try Learn Prolog Now:”
“Some interesting resources to learn Prolog:”
“For those interested in parsing with Prolog, check out Definite Clause Grammars and The Craft of Prolog.”
“I found "Learn Prolog Now" to be a simple, easy-to-read site for learning Prolog: Learn Prolog Now!”
“You may wish to check out the (free) books Logic, Programming and Prolog ((链接)) or Learn Prolog Now!.”
“I like this one because it's beginner-friendly (and uses characters from Pulp Fiction as examples).”
“However, I think you'd better off with some free online course. On a cursory examination, this one seems similar to the content in my notes:”
“Good fast tutorial for it.”
“I found it to be pretty straightforward and helpful.”
“I found this one to be pretty good back when I worked through it:”
“It's much better than most of the tutorials I found out there, and provides a very gentle, very thorough introduction”
“Even is you just spend an evening going through Learn Prolog Now! that's a gain.”
“Learning prolog is pretty mind blowing Learn Prolog Now!”