m-ld / m-ld-spec

Platform-independent m-ld specification
https://spec.m-ld.org/
MIT License
24 stars 1 forks source link

Rust platform #54

Open dirvine opened 3 years ago

dirvine commented 3 years ago

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.

gsvarovsky commented 3 years ago

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: