m-ld-spec icon indicating copy to clipboard operation
m-ld-spec copied to clipboard

Rust platform

Open dirvine opened this issue 5 years ago • 2 comments

If possible it would be amazing to see a rust version as it's also a great way to get slim wasm binaries. I think this allows code checking (rust compiler is great at enforcing mem safety etc.) and it's quite easy to get a C API (ffi) at the same time.

dirvine avatar Dec 17 '20 22:12 dirvine

Having C and Wasm from one lean and optimisable codebase seems great.

It looks like there are RDF libraries.

https://github.com/pchampin/sophia_rs looks particularly promising & active.

(In-browser) persistence supporting strong consistency guarantees needs looking into. It seems possible to use IndexedDB through JS interop, but we already have a performance problem with IndexedDB. Note, a blazing fast non-persistent clone engine would still be useful.

Persistence on native platforms would ideally use an embedded triplestore:

  • TerminusDB is Rust-native. Can it be embedded? GPL. Rather overkill, since it has a branch/merge concurrency model.
  • Other C/C++ options are GPL or Commercial licence

gsvarovsky avatar Dec 18 '20 08:12 gsvarovsky