core-logic

bajrachar 2018-08-11T02:43:32.000014Z

Does core.logic take advantage of concurrency/parallelization ?

bajrachar 2018-08-11T02:44:18.000059Z

I notice that it isn't making use of all the cores when it is running

bajrachar 2018-08-11T02:45:14.000048Z

Also was wondering if anyone has experience with working with the parallel version of core.logic using fork/join --> http://www.clojure.net/2012/10/02/More-core.logic/

bajrachar 2018-08-11T02:54:05.000027Z

@norman - I was wondering if I could go about parallelizing query in pldb code by using reducers or pmap in the fact search portion or if this is more of a issue with unification side

bajrachar 2018-08-11T02:54:29.000029Z

it seems more of the latter

2018-08-11T02:54:51.000038Z

I doubt it, given the way queries evaluate

bajrachar 2018-08-11T02:56:39.000030Z

Currently I've managed to represent a graph using pldb - and when I query for path that are two step [depth = 2] - it takes a long time

bajrachar 2018-08-11T02:57:04.000050Z

and I notice it isn't taking advantage of all the cores in the machine

2018-08-11T02:57:33.000046Z

Yes, I believe that

2018-08-11T02:57:53.000063Z

the execution model of core.logic is probably not very amenable to parallelization

bajrachar 2018-08-11T02:58:02.000003Z

I also noticed a slightly older post from jim deuy on using fork/join with core.logic --> http://www.clojure.net/2012/10/02/More-core.logic/

2018-08-11T02:58:57.000024Z

Yes, you’d have to fundamentally change the execution moel

bajrachar 2018-08-11T02:59:36.000080Z

hmm ... ok ... sounds like a interesting challenge to try out over the weekend 🙂

bajrachar 2018-08-11T03:00:11.000018Z

will try to use the jim duey's branch and see if it helps

bajrachar 2018-08-11T03:06:30.000051Z

@norman - what is the current state of core.logic and it's roadmap?

2018-08-11T03:10:05.000049Z

It’s not being actively developed

2018-08-11T03:10:37.000031Z

Unless it’s spun out of clojure core, I’m not inclined to contribute further

☝️ 1