core-logic

Jan K 2023-10-20T11:52:17.618029Z

@joshcho Much better to read The Reasoned Schemer if you can, while keeping this in mind: https://github.com/clojure/core.logic/wiki/Differences-from-The-Reasoned-Schemer

❤️ 1
joshcho 2023-10-20T14:26:46.779469Z

Thanks @jkr.sw!

joshcho 2023-10-20T14:27:10.523059Z

Started working through reasoned schemer

joshcho 2023-10-20T14:28:03.246489Z

My impression atm is that I have to be extra creative to apply relational programming to a problem

joshcho 2023-10-20T14:28:18.532449Z

But once I do, the how disappears and the what remains? Something like that

joshcho 2023-10-20T14:29:13.388679Z

Is this impression correct? Also, I am trying to use it to convert an ast into a list of facts (or the equivalent in minikanren), so that it’s easier to navigate (e.g. range query on all nodes between certain line numbers)

joshcho 2023-10-20T14:40:52.222589Z

Basically, this feels mind-blowing and very useful if creative, but needing some validation (since I am just dipping my toes in)

Jan K 2023-10-20T14:55:06.308989Z

Yeah logic programming isn't always a great fit for many problems, but where it works it can be really nice

❤️ 2
joshcho 2023-10-20T02:54:12.516219Z

Is it recommended to learn prolog before core.logic? I wonder if that will solidify the foundations