capnproto / node-capnp

Cap'n Proto bindings for Node.js
BSD 2-Clause "Simplified" License
258 stars 35 forks source link

WASM for hybrid implementation? #72

Open Ledenel opened 1 year ago

Ledenel commented 1 year ago

It seems like this implementation is suffering from the bad interaction between c++ and javascript. FWIW, it may be possible to compile the serialization and rpc core to WASM (maybe some extra c++ wrapper code here?), then the interfaces are exposed natively to javascript.

zenhack commented 1 year ago

Have you had a look at https://github.com/jdiaz5513/capnp-ts/ ?

...rpc support is still not finished (but partially implemented), but that's going to be the better way forward.