Experience with web assembly consistency across different browsers

Hi,

Just wondering if those of you using web assembly for front end projects, experience a consistent experience across different browsers. More interestingly, I am wondering whether the experience is more consistent than pure JavaScript across different browsers.

What do you mean by consistency?

Like sometimes the same code works in Chrome but not in Firefox. Wondering if the same is true for WASM or if it's better or worse.

The major difference between WebAssembly implementations in different browsers is their support for experimental features, which you can see here: Roadmap - WebAssembly

You may notice when compiling your Rust code that you may need to enable specific features, like theading. That means you'll have to change the rustflags section in your Cargo.toml. The set of features is AFAIK undocumented, but there are a few hints here and there:

https://doc.rust-lang.org/rustc/platform-support/wasm64-unknown-unknown.html#requirements

https://rustwasm.github.io/wasm-bindgen/examples/raytrace.html

Good luck in the rabbit hole!

3 Likes

Thanks for the info. Seems like a rabbit hole indeed.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.