Comparison to waPC? (and other WASM RPC tools?) #495
-
Hi there, I discovered wRPC recently but have previously used waPC, so was wondering if someone could compare/contrast the two? And possibly other such WASM RPC tools Afaict, wRPC is grounded in the component specification and WIT, so using newer standards. I'm primarily looking at this in the lens of compatibility, composition, and cross-platform usability between various WASM tools and have been contributing to the ecosystem a bit to improve that EDIT: Also linked this in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have just learned about waPC and took a very brief look at the spec - from what I currently understand, waPC project only focuses on Wasm module <-> host communication. Note, that as written in the spec, the protocol is fundamentally incompatible with component model for Wasm component <-> host communication, due to the lack of shared memory access, at least today. It seems that waPC is, in fact, competing with component model, since there appears to be no need for waPC for Wasm components wRPC is a general purpose RPC framework, Wasm component <-> host communication is out-of-scope (but possible) for wRPC, on the contrary, wRPC is mostly useful for the hosts themselves, but Wasm components could use it as well. A typical use case would be a Wasm component using component model to call a host export and the host itself calling some other party using wRPC to provide an implementation (e.g. a plugin). wRPC, built on WIT, provides a direct mapping of the component call to the remote call allowing for optimized and ergonomic data transfer. TL;DR |
Beta Was this translation helpful? Give feedback.
I have just learned about waPC and took a very brief look at the spec - from what I currently understand, waPC project only focuses on Wasm module <-> host communication. Note, that as written in the spec, the protocol is fundamentally incompatible with component model for Wasm component <-> host communication, due to the lack of shared memory access, at least today. It seems that waPC is, in fact, competing with component model, since there appears to be no need for waPC for Wasm components
wRPC is a general purpose RPC framework, Wasm component <-> host communication is out-of-scope (but possible) for wRPC, on the contrary, wRPC is mostly useful for the hosts themselves, but Wasm compon…