News for hackers. Stuff that matters.
Re:Logica, a novel open-source logic programming language by cpdean on Wednesday April 14, 2021 @10:43AM (#26807759)
> ...or why one should use it over plain Datalog...

I have been looking for examples of how to use a practical implementation of Datalog for years and the closest I've come to is actually miniKanren instead. Could you point me to codebases that productively use Datalog internally?

Re:Logica, a novel open-source logic programming language by hcarvalhoalves on Wednesday April 14, 2021 @11:52AM (#26808775)
Re:Logica, a novel open-source logic programming language by ghusbands on Thursday April 15, 2021 @08:53AM (#26819834)
I feel your parent post was probably looking for software that successfully uses datalog to fetch/query its data, not one that provides data through datalog. User, not provider.
Re:Logica, a novel open-source logic programming language by cpdean on Thursday April 15, 2021 @12:58PM (#26823094)
Yep, thanks!

I'm well aware of datomic family databases, but it's the part about solving interesting problems with them that interests me, not that someone has implemented another one ;)

Re:Logica, a novel open-source logic programming language by rafaelferreira on Friday April 16, 2021 @12:38PM (#26836055)
Have you seen this presentation about NuBank's usage of datomic https://youtu.be/7lm3K8zVOdY ?
Re:Logica, a novel open-source logic programming language by kovvy on Wednesday April 14, 2021 @08:19PM (#26814786)
Re:Logica, a novel open-source logic programming language by RBerenguel on Wednesday April 14, 2021 @11:40AM (#26808617)
What example with miniKanren have you found? This is an area I have a passing interest but never find the time to delve deep enough to find anything shiny enough
Re:Logica, a novel open-source logic programming language by cpdean on Wednesday April 14, 2021 @01:04PM (#26809884)
The most interesting open source example I have found is a hy-lang minikanren that implements a tree-rewriter which lets you encode equivalent implementations of code snippets. It's a code-linter that will automatically simplify code you write via higher-level rules written in mk

https://github.com/algernon/hydiomatic

I've heard informally there are many companies relying on clojure/core.logic to rewrite complicated business rules for the sake of filtering and constraint solving problems in applications, but I do not know of any open source examples to reference.

edit: i accidentally linked to a dependency of the project i meant to link to. originally linked to the mk implementation: https://github.com/algernon/adderall

Re:Logica, a novel open-source logic programming language by RBerenguel on Wednesday April 14, 2021 @03:43PM (#26812076)
Thanks!