Open niamtokik opened 1 year ago
At this time, Rustler is not compatible with Erlang for many reasons but rebar3_rust
is based on ecozodb project. I need to fork official cozodb project in my own space to inject some code and export data-structures and functions, modification will be done here for the moment: https://github.com/niamtokik/cozodb/tree/test/public-export-before-creating-custom-module
The current implementation is using
libcozo_c
, but this library has lot of limitation. Instead of passing a cozoscript query, we should pass a cozo query data-structure, based on Erlang syntax (or from something close to Erlang syntax).Cozo Rust Interfaces
A cozo core example can be seen in cozo bin source (REPL and server).
Cozoscript to Cozo bytecode
Erlang Terms to Cozo bytecode
Cozo bytecode to Erlang Terms
Erlang interfaces
Resources