4 ms·
It seems bizarre to me that someone could write an article about relational programming without even mentioning miniKanren, which can do things like find quines
by kragen 11y ago
It seems bizarre to me that someone could write an article about relational programming without even mentioning miniKanren, which can do things like find quines, given a relational specification for a language interpreter: http://webyrd.net/quines/quines.pdf http://webyrd.net/quines/quines.pdf — and it’s in the Clojure standard library as core.logic: https://clojure.github.io/core.logic/ https://clojure.github.io/core.logic/
miniKanren solves a lot of the limitations that systems like Prolog had, at the cost of some performance. The old miniKanren web page explains, "KANREN is a declarative logic programming system with first-class relations, embedded in a pure functional subset of Scheme. The system has a set-theoretical semantics, true unions, fair scheduling, first-class relations, lexically-scoped logical variables, depth-first and iterative deepening strategies. The system achieves high performance and expressivity without cuts."
https://stackoverflow.com/questions/28467011/what-are-the-main-technical-differences-between-prolog-and-minikanren-with-resp https://stackoverflow.com/questions/28467011/what-are-the-ma... talks a bit more about the differences.
(Also, the article didn't mention Prolog. What's up with that?)
(I don't have any experience with miniKanren myself.)
- ryanmarsh 11y agoI'm not sure whether you read the article or not, or if the author updated it in between the time you read it and posted your comment, but I finished reading it before your comment was posted and the author did, in that frame of reference, in fact mention miniKanren.
- harperlee 11y ago> Surprisingly, these six pieces are enough to make a simple relational language called μKanren. It was presented in a paper published only two years ago, in 2013, by Jason Hemann and Daniel Friedman. > μKanren is part of the miniKanren family of languages. The full miniKanren language has more complex primitives that can be built out of the μKanren ones I’ve shown you.
- skidr0w 11y agoThe article does mention miniKanren and μKanren briefly.
- davexunit 11y agoI was thinking the same but the article does very briefly mention miniKanren quite far into it.