oak icon indicating copy to clipboard operation
oak copied to clipboard

Embed Wasm engine using wasm-c-api

Open tiziano88 opened this issue 7 years ago • 3 comments

wasm-c-api

Provide[s] a "black box" API for embedding a Wasm engine in other C/C++ applications.

There should be prototypes of V8 implementing this interface, and hopefully also other Wasm engines; not sure if wabt, which we are currently using, also implements this.

This should also help with #74 (in fact I would say this is a prerequisite).

cc @hansman

tiziano88 avatar Jul 02 '19 09:07 tiziano88

Note that as of v7.5 wasm-c-api is included in V8, and there are no other runtimes exposing this API, so this issue is effectively a duplicate of #74.

cc @jakobkummerow

PiotrSikora avatar Jul 03 '19 02:07 PiotrSikora

It is my (possibly incorrect) understanding that other runtimes (at least wabt and WAVM, maybe others) are either already working on implementing the wasm-c-api, or planning to; but I don't know any timelines.

At any rate, switching to the wasm-c-api sounds like a good idea; and so does switching to V8 IMHO :-)

jakobkummerow avatar Jul 03 '19 08:07 jakobkummerow

If the wasm-c-api is implemented in V8 only, probably we can use this issue as a first import of the V8 engine replacing wabt. Each enclave would run a V8 instance using the existing design before switching over to V8 isolates as described in https://github.com/project-oak/oak/issues/74.

hansman avatar Jul 11 '19 09:07 hansman