4 ms·
How come there is no SQLite of Datalog? You can find plenty of implementations of embedded datalog database in a specific language, where the query API is tied
by CGamesPlay 4y ago
How come there is no SQLite of Datalog? You can find plenty of implementations of embedded datalog database in a specific language, where the query API is tied to the language. I want to write text datalog queries and access my database from multiple languages. Why doesn’t this exist?
- carapace 4y agoIt's a superset, but couldn't you just use Prolog? E.g. GNU Prolog Compiler: http://gprolog.org/ http://gprolog.org/ > GNU Prolog accepts Prolog+constraint programs and produces native binaries (like gcc does from a C source). The obtained executable is then stand-alone. The size of this executable can be quite small since GNU Prolog can avoid to link the code of most unused built-in predicates. Beside the native-code compilation, GNU Prolog offers a classical interactive interpreter (top-level) with a debugger.
- CGamesPlay 4y agoI’m looking for more of a library that integrates with other programs, not a standalone program itself. I’ve seen other prolog implementations that fit the bill but they seem to rely on parsing program text from a clean state—they don’t “remember” facts on their own.
- hex9893628af 4y agoNo, the standard evaluation model of Prolog is top-down, while that of Datalog is bottom-up. As such, some queries will perform very differently between the two.
- samatman 4y agoMozilla was working on the opposite, a Datalog of SQLite, with Mentat, now abandoned: https://github.com/mozilla/mentat https://github.com/mozilla/mentat Strikes me as a basically sound idea and it would be lovely if someone picked up the ball.
- mhuffman 4y agohttps://xtdb.com https://xtdb.com maybe?
- alex_hirner 4y ago> write text datalog queries you may be interested in https://github.com/sqwishy/owoof https://github.com/sqwishy/owoof