wasefire
wasefire copied to clipboard
Inter-applet communication
Design questions:
- We probably don't want to use WebAssembly linking, because we want each applet to have its own store (see #48). This means that data would need to be copied since one applet cannot access the memory of another applet.
- The applet could use the import and export functions mechanism. There would need to be a naming convention probably, like
ipc_prefix. Another option would be a generic IPC syscall. - How to deal with sending buffers? Probably another IPC to write or read a buffer to an index (shared with the other applet). The memory-control WebAssembly proposal seems to be a solution.
The multi-memory WebAssembly proposal might help avoiding copies for shared buffers.