UP | HOME

NOTE: Potential of Wasm

Each Wasm module instance is a verified and well scoped object, its memory can be defined and entries are its functions. Thus, the potential of Wasm module instance is they can be the unit in concurrent programming, since we can know how many resource each instance can take. This limitation became how we design our module, and compose them into a bigger scenario, over limitation means an obvious bug.

Now, we can consider some usage with such module instance, for example a neural network. Each layer can be a break down into a kind of module, then they can be consider all run concurrently, when a layer complete its task it can notify the next layer run up.

The go futher, runtime of Wasm should be able to transfer the instance since their internal state can be ensure, so runtime can transfer instance to another runtime instance. This means machine can be reused for these module instances, without knowing any dependencies, though the overhead isn't minimized.

Date: 2022-10-02 Sun 00:00

Author: Lîm Tsú-thuàn