I think Prolog and logic programming will have a second renaissance. I think at the very least a general artificial intelligence would require a logical inference engine similar to Prolog.
Ask HN: Production Prolog in 2020?
31–40 of 72 posts
Re: Ask HN: Production Prolog in 2020?
#32Our 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.
I implemented something similar to that at a payments company a while back, but not with prolog because I couldn't get buy-in. I wrote a rules engine expressed as SQL tables, and it was absolutely better than if-else or switch. It let us delete thousands of lines of code and also slap on a UI so that the people managing the payments rules could make changes themselves. Highly recommend.
Re: Ask HN: Production Prolog in 2020?
#33Our 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.
Re: Ask HN: Production Prolog in 2020?
#34Earlier quoted context omitted.
Do any of the non-artificial intelligences walking around out there contain a logical inference engine similar to Prolog?
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…
Re: Ask HN: Production Prolog in 2020?
#35There was a (unlikely to be merged at least in its current form) proposal for Kotlin -> https://github.com/Kotlin/KEEP/pull/199/files
Maybe LINQ from .NET could be included
There is also chalk from Rust https://github.com/rust-lang/chalk
Re: Ask HN: Production Prolog in 2020?
#36https://dev.to/arcanis/introducing-yarn-2-4eh1#workspace-con...
Re: Ask HN: Production Prolog in 2020?
#37Earlier quoted context omitted.
Do any of the non-artificial intelligences walking around out there contain a logical inference engine similar to Prolog?
Do any birds flying around have engines?
> Yes, they do have engines similar to those found in planes, cars, etc. and so do humans - fuel goes in, chemistry happens, and energy is provided for physical movement in the form of rotation, flapping, or one foot in front of the other.
Idk who I agree with, I suppose it's a fairly pointless exercise in 'how similar constitutes 'similar'' all the way down.