Prolog Coding Horror
37 points by RohanAdwankar 3 hours ago | 8 comments

rtpg 31 minutes ago
There's something quite illuminating with this first "horror", where they basically say "it's OK to report wrong answers, because you can check the answers".

I don't think I've ever felt like it's OK for my program to provide a list of answers where some are right and some are wrong, but reading this... and generally believing in P != NP.... maybe that's a decent way of looking at some stuff!

reply
DonHopkins 9 minutes ago
Sometimes the Biorhythm program on my Apple ][ failed to produce correct answers. But it sure was great for impressing cool hippie chicks.

https://www.youtube.com/watch?v=jYoY1cwAd90

reply
appil 2 hours ago
What do people use Prolog for in the real world? I learned about it on a university course and it seems so esoteric compared to other things on the course. Like something invented just for computer scientists to enjoy.
reply
radomir_cernoch 53 minutes ago
Some applications were discussed in https://news.ycombinator.com/item?id=40994552
reply
christophilus 56 minutes ago
Dunno about Prolog, but Datomic uses datalog for its query language, and it’s excellent. Datalog is a subset of Prolog.
reply
ted_dunning 14 minutes ago
Datalog may appear to be a subset, but it is quite distinct semantically.
reply
raffael_de 14 minutes ago
What is Datalog used for nowadays?
reply
crustycoder 2 hours ago
Mostly overblown.
reply