Show HN: Cozo – new Graph DB with Datalog, embedded like SQLite, written in Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cozo

    A transactional, relational-graph-vector database that uses Datalog for query. The hippocampus for AI!

  • In short: yes, but not right now. See this issue: https://github.com/cozodb/cozo/issues/2. Also in this case you are not really using it as an embedded database anymore, which is our original motivation. We currently also provide a "cozoserver", but it is pretty primitive at the moment. "Big data" capabilities, when they arrive in Cozo, will probably go into the server instead of the embedded binaries.

  • datascript

    Immutable database and Datalog query engine for Clojure, ClojureScript and JS

  • This look nice !

    Datascript seems to be another Datalog engine (in memory only)

    https://github.com/tonsky/datascript

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • snakelog

    A Datalog Framework for Python

  • Very cool! I love the sqlite install everywhere model.

    Could you compare use case with Souffle? https://souffle-lang.github.io/

    I'd suggest putting the link to the docs more prominently on the github page

    Is the "traditional" datalog `path(x,z) :- edge(x,y), path(y,z).` syntax not pleasant to the modern eye? I've grown to rather like it. Or is there something that syntax can't do?

    I've been building a Datalog shim layer in python to bridge across a couple different datalog systems https://github.com/philzook58/snakelog (including a datalog built on top of the python sqlite bindings), so I should look into including yours

  • souffle

    Soufflé is a variant of Datalog for tool designers crafting analyses in Horn clauses. Soufflé synthesizes a native parallel C++ program from a logic specification.

  • Very cool! I love the sqlite install everywhere model.

    Could you compare use case with Souffle? https://souffle-lang.github.io/

    I'd suggest putting the link to the docs more prominently on the github page

    Is the "traditional" datalog `path(x,z) :- edge(x,y), path(y,z).` syntax not pleasant to the modern eye? I've grown to rather like it. Or is there something that syntax can't do?

    I've been building a Datalog shim layer in python to bridge across a couple different datalog systems https://github.com/philzook58/snakelog (including a datalog built on top of the python sqlite bindings), so I should look into including yours

  • differential-datalog

    DDlog is a programming language for incremental computation. It is well suited for writing programs that continuously update their output in response to input changes. A DDlog programmer does not write incremental algorithms; instead they specify the desired input-output mapping in a declarative manner.

  • This is amazing!

    Have you looked at differential-datalog? It's rust-based, maintained by VMWare, and has a very rich, well-typed Datalog language. differential-datalog is in-memory only right now, but could be ideal to integrate your graph as a datastore or disk spill cache.

    https://github.com/vmware/differential-datalog

  • pycozo

    The Python client and Jupyter helper for CozoDB

  • For folks looking for documentation or getting started-examples, see:

    - The tutorial: https://nbviewer.org/github/cozodb/cozo-docs/blob/main/tutor...

    - The language documentation: https://cozodb.github.io/current/manual/

    - The pycozo library README for some examples on how to run this from inline python: https://github.com/cozodb/pycozo#readme

  • blog

    Some notes on things I find interesting and important. (by frankmcsherry)

  • Oh, cool!

    And yeah, licenses can be challenging and frustrating, especially the first time you release a major project.

    I am really super excited by the idea of embedded Datalog in Rust. I run into a lot of situations where I need something that fits in that awkward gap between SQL and Prolog. I want more expressiveness, better composability, and better graph support than SQL. But I also want finite-sized results that I can materialize in bounded time.

    There has been some very neat work with incrementally-updated Datalog in the Rust community. For example, I think Datafrog is really neat: https://github.com/frankmcsherry/blog/blob/master/posts/2018... But it's great to see more neat projects in this space, so thank you.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts