3 ms·
Only support extensions in Wasm? Change build tooling (I don't Ruby, I am sure it has an equivalent) so that setup.py builds the C extension into a Wasm module.
by sitkack 6y ago
Only support extensions in Wasm? Change build tooling (I don't Ruby, I am sure it has an equivalent) so that setup.py builds the C extension into a Wasm module.
Or grab the fn that the FFI points to and lightly decompile and inline into the interpreter?
Compile the typed subset of dynamic language of the day into Wasm and inline that into the interpreter?
I am sure something here is the Holy Grail of native-ish extension mechanism.
- chrisseaton 6y agoGraalPython and TruffleRuby are trying this exact idea, but with LLVM bitcode rather than WASM.