Re:LogicJS adds logic programming to JavaScript
by the_watcher on Tuesday August 16, 2016 @02:36PM
(#12299537)
Could you describe a classic use case? I'm also interested in learning some logic programming, but it's hard for me to conceptualize a use case that isn't already covered by the languages I regularly use.
Re:LogicJS adds logic programming to JavaScript
by romaniv on Tuesday August 16, 2016 @05:42PM
(#12300855)
Back in the day the two common use cases were expert systems and natural language processing (which are somewhat related). In this day and age I would most likely use Prolog for rule-based simulations or high-level game AI.
http://www.amzi.com/AdventureInProlog/advtop.php
There was a great PDF that explained how unification and substitution of symbols worked in a concise and readable fashion, but I can't find it right now. Hm, maybe this one:
http://www.cs.ubbcluj.ro/~gabis/plf/Doc/SWI-Prolog/AnIntrodu...