kuzudb / kuzu

Embeddable property graph database management system built for query speed and scalability. Implements Cypher.
https://kuzudb.com/
MIT License
1.07k stars 77 forks source link

WASM Support #3400

Closed justin0mcateer closed 2 weeks ago

justin0mcateer commented 2 weeks ago

Kuzu seems to be supported in a number of environments, including NodeJS. Is there any intention or desire to support running in the browser via WASM? Is there any reason this can't be compiled using Emscripten?

prrao87 commented 2 weeks ago

Hi @justin0mcateer, the information in #3327 might be useful - we do intend to support running in the browser via WASM, but it's not on the immediate roadmap. As mentioned in @mewim's comment, there was some preliminary work done to enable WASM support for Kùzu, with the following roadblock:

but it does not quite work right now as Kùzu’s current buffer manager uses memory mapping and requires support of MADV_DONTNEED

I believe there were also some roadblocks related to 32-bit compilation which weren't resolved, but from a technical perspective, are doable. As for compiling with Emscripten, @mewim will get back to you on this. Feel free to drop any more comments in the linked discussion and upvote it over there too.

justin0mcateer commented 2 weeks ago

Sorry for the dupe. I searched a few terms, but I was searching issues, not discussions.