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

FFI callouts to WASM #178

Open
codefrau opened this issue Jul 16, 2024 · 0 comments
Open

FFI callouts to WASM #178

codefrau opened this issue Jul 16, 2024 · 0 comments

Comments

@codefrau
Copy link
Owner

An interesting project would be to compile a C library to WASM and call its functions from the image via FFI, just like other VMs do. That might enable the use of a wide range of existing libraries.

The C source code would be compiled into a WASM module, and then we would need some boilerplate code that would expose the functions inside the WASM as JS functions useable by the FFI plugin (which would hopefully be generated by the compilation process).

The FFI test library would be a good candidate for compiling because it uses all kinds of parameter passing etc. So instead of reimplementing it in JS as #177 suggests, it would be compiled to WASM and then called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant