News for hackers. Stuff that matters.
Re:A Tour of Lisps by thuuuomas on Monday January 29, 2024 @05:03PM (#39183350)
Have you checked out any of the minikanren logic programming environments people have implemented in scheme?

The Reasoned Schemer is an accessible introduction to that space if you’re not put off by the socratic-themed dialogue.

& the Barliman demo is still pretty exciting even after LLM codegen.

https://youtu.be/er_lLvkklsk

Re:A Tour of Lisps by nerdponx on Monday January 29, 2024 @05:35PM (#39183705)
I'd like to see a practical use case for Minikanren other than quines. It's fun and interesting, but I'm not smart enough to go from "a tiny set of primitives" to "solving practical problems". I had trouble even implementing the basic "moses is a man" examples you see in Prolog tutorials.
Re:A Tour of Lisps by cmrdporcupine on Monday January 29, 2024 @07:16PM (#39184647)
Yeah me too I was just looking at an Elisp port (!) of minikanren the other day, and, yeah, all the examples were algorithmic puzzles, rather than solutions to problems.
Re:A Tour of Lisps by tmtvl on Monday January 29, 2024 @10:53PM (#39186217)
MiniKanren has been used in the medical world: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9562701/
Re:A Tour of Lisps by erichocean on Monday January 29, 2024 @09:54PM (#39185877)
It's also available in Clojure: https://github.com/clojure/core.logic

If you want to write one yourself, it's pretty easy: https://www.youtube.com/watch?v=y1bVJOAfhKY