←back to thread

Learn Prolog Now

(lpn.swi-prolog.org)
205 points rramadass | 5 comments | | HN request time: 0.236s | source
1. mattbettinson ◴[] No.45901799[source]
In university, Learning prolog was my first encounter with the idea that my IQ may not be as high as I thought
replies(3): >>45901997 #>>45902026 #>>45902202 #
2. ge96 ◴[] No.45901997[source]
intro to quantum physics for me (which is only sophomore) I noped out of advanced math/physics at that point, luckily I did learn to code on my own
3. chanux ◴[] No.45902026[source]
I thoroughly enjoyed doing all the exercises. It was challenging and hence, fun!

I don't think I ever learned how it can be useful other than feeding the mind.

4. vidarh ◴[] No.45902202[source]
I also found it mindbending.

But some parts, like e.g. the cut operator is something I've copied several times over for various things. A couple of prototype parser generators for example - allowing backtracking, but using a cut to indicate when backtracking is an error can be quite helpful.

replies(1): >>45903943 #
5. exasperaited ◴[] No.45903943[source]
"Keep your exclamation points under control. You are allowed no more than two or three per 100,000 words of prose."

Elmore Leonard, on writing. But he might as well have been talking about the cut operator.

At uni I had assignments where we were simply not allowed to use it.