Coder Social home page Coder Social logo

How to run clj-3df? about clj-3df HOT 7 OPEN

theronic avatar theronic commented on May 31, 2024
How to run clj-3df?

from clj-3df.

Comments (7)

bachdavi avatar bachdavi commented on May 31, 2024

The examples are not up-to-date with changes from a few months ago.
We are now exclusively using core.async channels for communication between the server and Clojure.
I'll create an issue and fix the examples soon.

from clj-3df.

theronic avatar theronic commented on May 31, 2024

Thanks! Could you provide minimal instructions to get started with a pub/sub so I can play around a bit over the weekend? :)

from clj-3df.

bachdavi avatar bachdavi commented on May 31, 2024

Yeah sure!
We should update the readme too and provide some more instructions :)

When you have a look here in the core.cljc file you see an example:
https://github.com/comnik/clj-3df/blob/9d0352b49c2618d23641d8692779c4e6e924f9e9/src/clj_3df/core.cljc#L291-L320

from clj-3df.

bachdavi avatar bachdavi commented on May 31, 2024

If you use create-publication the conn map will contain a :pub key that has an async-pub which dispatches on the name of the registered query. In this case it would be "loans".
create-debug-publication will pipe every output that the server send also to the repl.

Hope that helps

from clj-3df.

bachdavi avatar bachdavi commented on May 31, 2024

The examples should work now.
For the example rga you need to use a different branch from the server.
ldbc requires you to have the data...

from clj-3df.

comnik avatar comnik commented on May 31, 2024

Hey yeah sorry for that, the examples are somewhat internal still. We will try and get some more usable ones out there. Lots of things are happening on the back-end right now, hard to keep up :)

(Keeping this open for now, until we have some more examples / @theronic confirms he's somewhat good to go)

from clj-3df.

halljson avatar halljson commented on May 31, 2024

... am running a differential dataflow server. ...

Just wanted to clarify that the running server needs to be the declarative dataflow server: https://github.com/comnik/declarative-dataflow/tree/v0.1.0#build--run

Also, the code snippet posted here is slightly out of date; looks like create-conn was renamed to create-conn! (among a few other small changes). https://github.com/comnik/clj-3df/blob/master/src/clj_3df/core.cljc#L292 appears to be up to date.

from clj-3df.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.