TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Prolog Programming Language (1997)

61 pointsby bencevansover 10 years ago

5 comments

jplahnover 10 years ago
We had to use Prolog in my comparative languages class last semester and it was interesting, to say the least. With any class that brushes over a topic, I didn&#x27;t get a full appreciation for what it can do, but it was an interesting paradigm to be exposed to if nothing else.<p>I didn&#x27;t feel like I was doing &quot;real programming&quot;, which likely says more about what we&#x27;re taught than the merits of the language. I&#x27;d be interested to known how it&#x27;s being leveraged presently? I know a lot of the standard use cases, but is there anyone solving really unique problems with it?
评论 #8868948 未加载
评论 #8869652 未加载
评论 #8869674 未加载
评论 #8869772 未加载
评论 #8870040 未加载
评论 #8868804 未加载
评论 #8871200 未加载
tkosanover 10 years ago
I started learning how to program in Prolog a few years ago. I found Prolog to be very difficult to understand, mostly because I did not understand what symbolic logic was. I then purchased a significant number of books on symbolic logic and started studying them. I don’t think it is possible to understand Prolog without first understanding how symbolic logic works.<p>My recommendation for someone who is interested in learning how to program in Prolog is to start by reading “Logic for Problem Solving” by Robert Kowalski:<p><a href="http://www.amazon.com/Problem-Solving-Revisited-Robert-Kowalski/dp/3837036294/ref=oosr" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Problem-Solving-Revisited-Robert-Kowal...</a><p>I am currently about halfway through an earlier edition of this book, and it is the first book I have found that clearly explains the ideas upon which Prolog is based.
评论 #8871311 未加载
yarrelover 10 years ago
Prolog is one of those languages that&#x27;s worthwhile to learn even if you never use it.<p>Try the Zebra problem, Towers of Hanoi or a family tree example to get a feel for what it&#x27;s like.
评论 #8869045 未加载
JoelHobsonover 10 years ago
Are there any modern logic programming languages? I&#x27;ve tried looking for them before, but found nothing.
评论 #8868962 未加载
评论 #8870214 未加载
评论 #8868771 未加载
评论 #8869196 未加载
评论 #8869487 未加载
评论 #8868843 未加载
评论 #8869043 未加载
angersockover 10 years ago
The first time I read about Prolog, I thought to myself, &quot;Man, this is what computing was supposed to do for us! Look at it answering questions, doing planning...holy cow.&quot;<p>And in the last 40 years? Maybe Erlang (a Prolog descendant), Ruby (maybe the best successor to Lisp&#x2F;Smalltalk), or Elixir (an Erlang descendant looks like Ruby) is as impressive. The rest is either hacky (C++, Javascript, Perl), attempts to clean up hackiness (Java, D, Go, Rust, Clojure), unoriginal (Python, C#), or just plain wanky (OCaml, Haskell)--and that&#x27;s not counting ones that are beneath mention (PHP).<p>Don&#x27;t get me wrong...there are some languages that are actually quite beautiful in their implementation or use (Lua, Clojure, a few others), but the &quot;holy shit this is the future!&quot; feeling I get from looking at Prolog, Erlang, or Ruby is something I haven&#x27;t had in a while.<p>Instead, the future of practical programming languages is probably going to be yet another tepid iteration on Algol, with closures and memory safety and incorrectly-handled numerical safety and some lame concurrency story. Pattern matching if history is slightly kind to us, probably still no mandatory tail-call optimization. Sigh.<p>Go is the future, I guess?
评论 #8868713 未加载
评论 #8869372 未加载
评论 #8868677 未加载
评论 #8868858 未加载
评论 #8868714 未加载