Closed
Description
wasm will trap on e.g. 1/0 in integers, but asm.js didn't. Binaryen's asm2wasm can compile code in two modes, "precise" which should behave exactly like before (and exactly like a native build), by avoiding traps carefully, and an "imprecise" mode which ignores that things might trap, which is faster (but might trap).
- Precise by default (current setting) means people aren't surprised by correctness bugs, but are surprised by perf issues.
- Imprecise by default would mean people are surprised by correctness bugs, but are not surprised by perf issues.
- A third option might be to try to get the precise mode up to the same speed as imprecise.
No obvious answer what is better here. Thoughts?