4 ms·
I was thrilled when I read about CPS, now my favorite "crazy thing" is logic embedded eval, see evalo (eval embedded in minikanren logic) http://youtu.be/fHK-uS
by agumonkey 13y ago
I was thrilled when I read about CPS, now my favorite "crazy thing" is logic embedded eval, see evalo (eval embedded in minikanren logic) http://youtu.be/fHK-uS-Iedc?t=27m35s http://youtu.be/fHK-uS-Iedc?t=27m35s giving you naive bidirectional evaluation. Too funky.
- endergen 13y agoLooked that up, head exploded. Generates quines!?!! http://en.m.wikipedia.org/wiki/MiniKanren http://en.m.wikipedia.org/wiki/MiniKanren
- agumonkey 13y agoAnd the aside question 'which program will output X'.
- beering 13y agoConstraint-based logic programming is actually pretty straightforward. You just define a constraint, and it tries to go and find things that fit. Quines is as simple as saying that you want eval(x)==x, and it will try to fill in answers for x. It's a bit underwhelming, though, to realize that it will tell you that "5" is a quine, since eval(5)==5.