Re:MiniKanren – An embedded DSL for logic programming
by jgalt212 on Wednesday October 01, 2014 @10:08PM
(#8399087)
What's the best use case for these sort of languages? My guess is rule-based expert systems, but I'd love to hear what the crowd suggests as well.
[ Parent
| on HN ]
Re:MiniKanren – An embedded DSL for logic programming
by kyllo on Thursday October 02, 2014 @01:41AM
(#8399549)
Solving constraint problems. Like a Sudoku solver: https://news.ycombinator.com/item?id=4325746
Re:MiniKanren – An embedded DSL for logic programming
by sklogic on Thursday October 02, 2014 @05:22AM
(#8399966)
This kind of languages is extremely useful, since many problems maps nicely to a logical or relational model.
I'm using a PAIP-style embedded Prolog and an optimised Datalog for fast prototyping compiler passes - things like alias analysis, implementing type systems (e.g., Hindley-Milner maps to Prolog naturally), constant folding, DCE, Array-SSA, and many more.
Harlan is using cKanren for region inference and some other passes.
A nice motivational paper (on Datalog): http://www.cs.cmu.edu/~aldrich/courses/654/tools/bierhoff-bd...