4 ms·
Are there any WASM runtimes that give (back) C/C++ level performance today, other than V8? I'm talking about software stacks that exist today rather than hypoth
by repolfx 8y ago
Are there any WASM runtimes that give (back) C/C++ level performance today, other than V8? I'm talking about software stacks that exist today rather than hypothetical future runtimes. I mean, if you're going to compile to WASM then compile again to native, why bother - why not just compile straight to native? Compilers like LLVM can insert any bounds checks required or wanted.
- 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.