Sell Back Your Copy
For a $0.99 Gift Card
Trade in
Have one to sell? Sell yours here
The Craft of Prolog (Logic Programming)
 
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

The Craft of Prolog (Logic Programming) [Hardcover]

Richard O'Keefe (Author)
4.4 out of 5 stars  See all reviews (7 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Hardcover --  
Paperback $30.02  
Unknown Binding --  

Book Description

0262150395 978-0262150392 June 19, 1990
Hacking your program is no substitute for understanding your problem. Prolog is different, but not that different. Elegance is not optional. These are the themes that unify Richard O'Keefe's very personal statement on how Prolog programs should be written. The emphasis in The Craft of Prolog is on using Prolog effectively. It presents a loose collection of topics that build on and elaborate concepts learned in a first course. These may be read in any order following the first chapter, "Basic Topics in Prolog," which provides a basis for the rest of the material in the book.

Richard A. O'Keefe is Lecturer in the Department of Computer Science at the Royal Melbourne Institute of Technology. He is also a consultant to Quintus Computer Systems, Inc.

Contents: Basic Topics in Prolog. Searching. Where Does the Space Go? Methods of Programming. Data Structure Design. Sequences. Writing Interpreters. Some Notes on Grammar Rules. Prolog Macros. Writing Tokenisers in Prolog. All Solutions.


Editorial Reviews

About the Author

Richard A. O'Keefe is Lecturer in the Department of Computer Science at the Royal Melbourne Institute of Technology. He is also a consultant to Quintus Computer Systems, Inc.

Product Details

  • Hardcover: 411 pages
  • Publisher: The MIT Press (June 19, 1990)
  • Language: English
  • ISBN-10: 0262150395
  • ISBN-13: 978-0262150392
  • Product Dimensions: 9.4 x 7.3 x 1.1 inches
  • Shipping Weight: 2.2 pounds
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon Best Sellers Rank: #1,926,410 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

7 Reviews
5 star:
 (6)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.4 out of 5 stars (7 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

15 of 16 people found the following review helpful:
5.0 out of 5 stars Indispensable Classic, December 1, 1999
This review is from: The Craft of Prolog (Logic Programming) (Hardcover)
This book, although not an introductory text, is widely considered the indespensable classic in writing good Prolog code. Try searching for it in the newsgroup comp.lang.prolog some time on DejaNews.

Prolog does a wonderful job of hiding what is really going on. This book reveals the wonderous truth.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


11 of 11 people found the following review helpful:
5.0 out of 5 stars "Where to go next" in your quest for prolog mastery, October 30, 2004
This review is from: The Craft of Prolog (Logic Programming) (Hardcover)
The spirit of this book is exemplified by this quote: "If your Prolog code is ugly, the chances are that you either don't understand your problem or you don't understand your programming language, and in neither case does your code stand much chance of being efficient."

This book is O'Keefe's attempt to wipe out both root and branch of bad prolog code. A close reading of this book will not only give you a deep understanding of prolog and logic programming, but it will put you into mental contact with O'Keefe's profound insights into the kind of thinking necessary for being a topflight progammer.

I should mention that this book is not just for prolog programmers. It contains mindbending observations on programming available absolutly nowhere else. Unfortunately, like the scholar of the middle ages who had to master Latin and greek, you'll have to learn prolog before this book will yield up its treasures.

As O'Keefe unambiguously states in the opening paragraphs, this book should NOT be your first, or even your second, book on Prolog. There's no royal road to knowledge; you'll have to pay your dues. But after you've achieved a good foundation, this is the way forwared to enlightenment.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 6 people found the following review helpful:
5.0 out of 5 stars a definitive resource, June 21, 2009
A common opinion nowadays, I suspect, is that Prolog is a neat hack that ran wildly out of control. And it is an opinion that is easy defend, and one with which I even have a lot of sympathy: not only does Prolog have substantial and not-really fixable problems as a 'serious' programming language, but it was also, in the aftermath of the 5th-generation hype, the inspiration for a lot of embarrassingly bad theoretical and quasi-theoretical research on 'logic' programming in the late 1980's and early 1990s. On the other hand, Prolog is also distinguished by some of the best books on progamming I have ever read: not just O'Keefe's 'The Craft of Prolog', but also, e.g., Sterling and Shapiro's 'Art of Prolog' crowd into the (depressingly small) queue formed behind the likes of 'Structure and Interpretation', 'the Science of Programming' and 'Programming Tools'. The existence of such books means that Prolog must have gotten _something_ substantial right.

Further, while in theory I divide the the set of all programming languages into clean Lisp dialects (i.e. scheme, ml, haskell) on the one hand, and other programming languages that are inadequate to the extent that they diverge from the Scheme/ML model on the other, I find that a lot of the time it is actually Prolog that provides the best tool for modelling the transaction-handling systems that I have to deal with in the course of earning my bread.

Whether you use Prolog or not, if you are serious about programming then you want to have a copy of this, simply because it shows how a world class programmer negotiates an unusual, but interesting, programming paradigm. And, as O'Keefe himself is, or at least used to be, fond of pointing out, your skill as a programmer is substantially correlated with the number of different such paradigms that you understand properly, and not very much with anything else.

Highly recommended if you are really interested in advanced programming.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews





Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
ancestral cuts, last call optimisation, accumulator pair, current input stream, principal functor, naïve reverse, strict inputs, proper list, data structure design, logarithmic method, depth bound, larger algebra, cons cells, copy stack, iterative deepening, ordered representation, local stack, auxiliary predicate, conventional variable, proof tree, left identity
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Quintus Prolog, Methods of Programming, Basic Topics, Writing Interpreters, Some Notes, Common Lisp, Mac Prolog, Prolog Professional, David Warren, Definite Clause Grammar, Pruning Alternative Solutions, Set-Union Predicate
New!
Books on Related Topics | Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:




What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject