Is this related to Datalog also? I've watched a few presentations by Rich Hickey (creator of the Clojure programming language) and I feel like he often name-drops Datalog as a great tool.
Ask HN: Production Prolog in 2020?
51–60 of 72 posts
Re: Ask HN: Production Prolog in 2020?
#52(Reminds me I've got to get to work on it! Anybody ping me if you want to help.)
Re: Ask HN: Production Prolog in 2020?
#53Re: Ask HN: Production Prolog in 2020?
#54Re: Ask HN: Production Prolog in 2020?
#55Earlier quoted context omitted.
LINQ is just in-language SQL with type checks, unless I'm ignorant of a bunch of its functionality (which I really hope is true, now).
There's a lot more to LINQ than that. LINQ is extensible and you can connect it to arbitrary data sources by writing a query provider. awesome-linq[0] has some examples of what can be done with it. [0] https://github.com/aloisdg/awesome-linq
Re: Ask HN: Production Prolog in 2020?
#56Earlier quoted context omitted.
Yes. Logic wasn't conjured up from abstract ideas, but from a concerted effort to distill the essence of what humans (regular, average people) find reasonable and convincing. (To mention just one example, there is a reason one of George Boole's major works is called "The Laws of Thought".) Our strategies for understanding language also involve inference and unification that is similar to logic programming. This is no…
I have no doubt that human or other intelligences can emulate and even to some extent intuit these rules. If you believe that's a _requirement_ for their intelligence, I think that's a stronger claim. Not one I'd vehemently argue against, but not one I'd personally be comfortable making.
"Intelligence" is a vague term, but if you mean the ability to act rationally or even in a coherently self-interested way, then surely logic has something to do with it.
Re: Ask HN: Production Prolog in 2020?
#57Kind of offtopic, but does anyone know a good resource around implementing a simple prolog/similar language? My previous attempts at learning logic programming have failed, and it just _feels_ like a thing that becomes clear after you've seen how it works under the hood.
Re: Ask HN: Production Prolog in 2020?
#58Earlier quoted context omitted.
Yes. Logic wasn't conjured up from abstract ideas, but from a concerted effort to distill the essence of what humans (regular, average people) find reasonable and convincing. (To mention just one example, there is a reason one of George Boole's major works is called "The Laws of Thought".) Our strategies for understanding language also involve inference and unification that is similar to logic programming. This is no…
Plotkin's thesis! You had an interview with Kowalski ? Wow :)
Re: Ask HN: Production Prolog in 2020?
#59Our pay software at work needs a Prolog engine (SWI). I think it's exactly where it shines : a complex logic with a lot of small rules that would be a nightmare to implement and maintain with a if / else logic.
At this point, I feel like it is verging into lost knowledge territory, but that use case is almost the exact use case for the Rete Algorithm. As long as your rules fit in memory and are not recursively applied, rule application is an O(1) operation. https://en.wikipedia.org/wiki/Rete_algorithm