3 ms·
> Are there any WASM runtimes that give (back) C/C++ level performance today, other than V8? People are currently working on them. Also 100% performance is not
by vardump 8y ago
> Are there any WASM runtimes that give (back) C/C++ level performance today, other than V8?
People are currently working on them. Also 100% performance is not always necessary, getting to 50%ish shouldn't be that hard. That's plenty for a scripting engine replacement scenario, for example. Or for bit banging some GPIOs on a microcontroller.
I think Mozilla's WASM engine is somewhat faster than WASM module in V8. The point is regardless you won't need a Javascript engine in the first place.
> why not just compile straight to native
To be able to run validation checks on the bytecode, so that you can still execute programs that are trusted only to a certain point.
And to support multiple platforms.
There are also a lot of platforms that aren't supported by LLVM or are not first tier targets.