My experience with WASM

Exporting classes...

wasm-pack

$ wasm new

Advantages of WASM

  • Deterministic performance
  • Manual memory management
  • Use WASM everywhere!

Disadvantages

  • Increased complexity.
  • The exported library can't make use of native language features (e.g. functions as arguments).
  • Rather complicated to setup.
    • Versions of wasm-pack are incompatible
    • Not just `npm i`. You need to install a load of experimental tools.
  • Hard to contribute.

Ywasm?

  • JavaScript's performance is close to native languages.
  • It's really just about manual memory management.
  • WASM can be included into PostgreSQL and CDNs

wasm-bindgen

By Kevin Jahns

wasm-bindgen

  • 229