Skip to content

BINARYEN_IMPRECISE, on or off by default? #4625

Closed
@kripken

Description

@kripken

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions