wasefire icon indicating copy to clipboard operation
wasefire copied to clipboard

Inter-applet communication

Open ia0 opened this issue 2 years ago • 1 comments

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.

ia0 avatar Mar 23 '23 16:03 ia0

The multi-memory WebAssembly proposal might help avoiding copies for shared buffers.

ia0 avatar Aug 21 '23 09:08 ia0