You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: