按年被提到
20092017 · 4 次2026
开源书›编程语言·No.56·简称 LPN

Learn Prolog Now!

现在就学 Prolog
Patrick Blackburn, Johan Bos, Kristina Striegnitz

循序渐进的 Prolog 入门,每章有练习,例子轻松好懂

免费阅读 ↗
被推荐 · 26 人首次 2009-03-07 · 最近 2020-05-13官方免费在线(版权保留,作者或出版社免费放出)
26不同的人
25活跃月份
17有推荐的月份
29讨论串

Patrick Blackburn、Johan Bos、Kristina Striegnitz 写的 Prolog 入门教程,从事实、规则和合一(unification)讲起,逐步涉及递归、列表和算术,并介绍用 Prolog 描述语法的 definite clause grammar。每章有练习,例子里用了电影角色等轻松的题材。相比更偏工程或高级技巧的 Prolog 书,它定位明确,是让初学者建立逻辑编程直觉的入门读物。

HN 为什么推荐它

HN 上的人常把它推荐为学 Prolog 的首选在线资源:温和、清楚、对初学者友好,几个小时就能改变看待问题的方式;没有批评意见。

难度 2 / 5约 20 小时
适合谁

第一次接触逻辑编程的程序员或学生

读之前最好知道
1基本编程概念

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1装好 SWI-Prolog,边读边在里面试每个例子
  2. 2做每章的练习,逻辑编程只看不练很难入门
  3. 3读完前面几章后再看语法分析那部分
  4. 4想进阶时再找更深入的 Prolog 专著

HN 书评

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

“Learn Prolog Now is covers the basics better, IMHO”

认为它对 Prolog 基础讲得更好
A Prolog Introduction for Hackers原评论 ↗
推荐xel02 · 2010-01

“There is are a couple”

推荐作为 Prolog 的温和入门
A gentle introduction to Lisp原评论 ↗
推荐silentbicycle · 2011-01

“Also recommended: Learn Prolog Now!”

补充推荐它来学 Prolog
Prolog Introduction for Hackers原评论 ↗
推荐danieldk · 2011-08

“Learn Prolog Now! by Patrick Blackburn, Johan Bos, and Kristina Striegnitz provides an introduction to Prolog:”

推荐作为 Prolog 的入门读物
A Short Introduction to Prolog原评论 ↗
推荐GuiA · 2012-05

“this is a good start that will give you a good overview of how Prolog works:”

推荐它作为好的开头,能对 Prolog 如何工作有整体认识
Ask HN: Advise on building a Rules engine原评论 ↗
推荐nick_dm · 2013-12

“I recently started reading Learn Prolog Now! and the first few chapters have been excellent.”

说刚开始读,前几章非常好
Prolog for Programmers原评论 ↗
看全部 20 条 →
推荐nmk · 2013-12

“If you are looking for an on-line resource nick_dm's suggestion for Learn Prolog Now! is spot on.”

赞同别人的建议,推荐它作为在线 Prolog 资源
Prolog for Programmers原评论 ↗
推荐lars512 · 2014-09

“You could try Learn Prolog Now:”

建议试试它来学 Prolog
Rethinking Prolog [pdf]原评论 ↗
推荐Anilm3 · 2015-12

“Some interesting resources to learn Prolog:”

把它列为学 Prolog 的资源之一
Resolutions for programmers (2012)原评论 ↗
推荐GregBuchholz · 2016-06

“For those interested in parsing with Prolog, check out Definite Clause Grammars and The Craft of Prolog.”

为想用 Prolog 做解析的人推荐,与 DCG、The Craft of Prolog 并列
Show HN: Writing my first interpreter in C for fun原评论 ↗
推荐profquail · 2016-07

“I found "Learn Prolog Now" to be a simple, easy-to-read site for learning Prolog: Learn Prolog Now!”

觉得它是简单易读的 Prolog 学习网站
Writing custom type systems for Python in Prolog原评论 ↗
推荐HillRat · 2016-08

“You may wish to check out the (free) books Logic, Programming and Prolog ((链接)) or Learn Prolog Now!.”

把它和 Logic, Programming and Prolog 并列为免费书推荐
LogicJS adds logic programming to JavaScript原评论 ↗
推荐andai · 2017-04

“I like this one because it's beginner-friendly (and uses characters from Pulp Fiction as examples).”

喜欢它对初学者友好,还用 Pulp Fiction 角色做例子
The Power of Prolog原评论 ↗
推荐TuringTest · 2017-10

“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:”

建议用免费在线课程学,并说这门与自己笔记内容相近
Is Haskell the right language for teaching functional programming principles?原评论 ↗
推荐profalseidol · 2018-11

“Good fast tutorial for it.”

称它是快速上手 Prolog 的好教程
Who Killed Prolog? (2010)原评论 ↗
推荐stirner · 2018-11

“I found it to be pretty straightforward and helpful.”

觉得它直接易懂、很有帮助
Tau Prolog: A Prolog Interpreter in JavaScript原评论 ↗
推荐Gene_Parmesan · 2019-11

“I found this one to be pretty good back when I worked through it:”

说自己学过,觉得相当不错
Logic Programming in C++ (2018)原评论 ↗
推荐girzel · 2019-11

“It's much better than most of the tutorials I found out there, and provides a very gentle, very thorough introduction”

认为比多数教程好得多,介绍温和而透彻
Logic Puzzles with Prolog (2017)原评论 ↗
推荐ragebol · 2020-04

“Even is you just spend an evening going through Learn Prolog Now! that's a gain.”

说哪怕只花一个晚上读它也有收获
Guitar Chord Voicings with Prolog原评论 ↗
推荐philzook · 2020-05

“Learning prolog is pretty mind blowing Learn Prolog Now!”

觉得学 Prolog 令人大开眼界
Computational Category Theory in Python III: Monoids, Groups, and Preorders原评论 ↗