3 ms·
Beside dependent types, bidirectional (~relational) programming is the only thing that amaze me. Dan Friedman gave talks about [mini]kanren, see https://www.yo
by agumonkey 12y ago
Beside dependent types, bidirectional (~relational) programming is the only thing that amaze me.
Dan Friedman gave talks about [mini]kanren, see https://www.youtube.com/watch?v=5Q9x16uIsKA https://www.youtube.com/watch?v=5Q9x16uIsKA
I couldn't find the one where he asks (eval exp '()) to be 6 and gets many results such as
6
;; duh
(let ((_ 5))
((lambda (x) (+ x 1)) _))
;; better
Here's an example involving cons cells only https://www.youtube.com/watch?v=kS_2_-E_JjU https://www.youtube.com/watch?v=kS_2_-E_JjU