Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate wasm-c-api to allow other WASM backends #4024

Open
benvanik opened this issue Nov 28, 2020 · 1 comment
Open

Investigate wasm-c-api to allow other WASM backends #4024

benvanik opened this issue Nov 28, 2020 · 1 comment
Labels
enhancement ➕ New feature or request hal/cpu Runtime Host/CPU-based HAL backend

Comments

@benvanik
Copy link
Collaborator

https://github.com/WebAssembly/wasm-c-api/blob/master/include/wasm.h is an attempt at a standardized interface for WASM runtimes. There's a v8 implementation in-repo and the C API is implemented by WAMR (what the API is strongly inspired by), wasmer, and wasmtime.

If we were to base our HAL backend implementation on this it would give us the flexibility to plug in alternative backends based on scenario ("already have v8 linked into your app? use that" etc) and pit them against each other for performance/code-size/etc tradeoffs.

@benvanik benvanik added hal/cpu Runtime Host/CPU-based HAL backend enhancement ➕ New feature or request labels Nov 28, 2020
@syrusakbary
Copy link

I've just encountered the issue and it's great to see the use case for Wasm!

In case it's useful, at Wasmer we are pushing also the standard C++ API forward: we just merged a PR removing UB from the wasm C++ API, and we will have a C++ interface very soon in Wasmer itself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ➕ New feature or request hal/cpu Runtime Host/CPU-based HAL backend
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants