-
Notifications
You must be signed in to change notification settings - Fork 4
Description
We had several iterations of what kind of API should be exposed to Wasm, the most comprehensive one was: https://hackmd.io/CYVghsxgpgTAtNAzAY2PALARlugHBgOyHxIBmAnAAyRZkBs9SeQA
This is slightly different to what the hypervisor has in terms of instantiation and messaging.
There are two basic options:
a) expose the hypervisor's API as-is
b) take the above API from hackmd
Option a) makes the wasm-container operate 100% like the other containers, with all the ups and downs, including being very specific to this Javascript implementation of Primea.
Option b) makes the wasm-container operate on an API set which should be fairly easy to support in other implementations.
The downside of option b) is that a new layer must be introduced which translates between code storageRef and container type and actual code path.